From 61a33b8f467eab8cb3ab740d7fb7e31643a03cd3 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 27 Feb 2024 18:34:05 +0100 Subject: [PATCH] dependencies: updating to `v0.20240227.1172434` of `github.com/hashicorp/go-azure-sdk` --- go.mod | 4 +- go.sum | 8 +- .../configurationstores/method_listkeys.go | 12 +- .../model_apikeylistresult.go | 9 -- .../configurationstores/predicates.go | 33 ++++- .../webhooks/method_listevents.go | 12 +- .../webhooks/model_eventlistresult.go | 9 -- .../2021-08-01-preview/webhooks/predicates.go | 8 +- .../fleets/model_fleethubprofile.go | 2 +- .../apikey/method_monitorslistapikeys.go | 12 +- .../apikey/model_datadogapikeylistresponse.go | 9 -- .../datadog/2021-03-01/apikey/predicates.go | 23 +++- .../hosts/method_monitorslisthosts.go | 12 +- .../hosts/model_datadoghostlistresponse.go | 9 -- .../datadog/2021-03-01/hosts/predicates.go | 8 +- .../method_monitorslistlinkedresources.go | 12 +- .../model_linkedresourcelistresponse.go | 9 -- .../2021-03-01/linkedresources/predicates.go | 8 +- .../method_monitorslistmonitoredresources.go | 12 +- .../model_monitoredresourcelistresponse.go | 9 -- .../monitoredresources/predicates.go | 28 +++- .../method_listsynchronizationdetails.go | 12 +- .../share/method_listsynchronizations.go | 12 +- .../share/model_sharesynchronizationlist.go | 9 -- .../share/model_synchronizationdetailslist.go | 9 -- .../datashare/2019-11-01/share/predicates.go | 121 ++++++++++++++++-- .../projects/model_projectproperties.go | 2 +- .../iotdpsresource/method_listkeys.go | 12 +- ...esssignatureauthorizationrulelistresult.go | 9 -- .../2022-02-05/iotdpsresource/predicates.go | 18 ++- .../2018-09-15/labs/method_listvhds.go | 12 +- .../2018-09-15/labs/model_labvhdlist.go | 9 -- .../devtestlab/2018-09-15/labs/predicates.go | 8 +- .../schedules/method_listapplicable.go | 12 +- .../schedules/model_schedulelist.go | 9 -- .../2018-09-15/schedules/predicates.go | 13 -- .../method_listbyvirtualnetwork.go | 12 +- ...alnetworkdnsforwardingrulesetlistresult.go | 9 -- .../dnsforwardingrulesets/predicates.go | 8 +- .../method_listbyvirtualnetwork.go | 12 +- .../model_subresourcelistresult.go | 9 -- .../2022-07-01/dnsresolvers/predicates.go | 8 +- .../apps/method_listtemplates.go | 12 +- .../apps/model_apptemplatesresult.go | 9 -- .../2021-11-01-preview/apps/predicates.go | 38 +++++- .../monitors/method_listmonitoredresources.go | 12 +- .../monitors/method_listuserroles.go | 12 +- .../model_monitoredresourcelistresponse.go | 9 -- .../monitors/model_userrolelistresponse.go | 9 -- .../logz/2020-10-01/monitors/predicates.go | 37 ++++-- .../method_listmonitoredresources.go | 12 +- .../model_monitoredresourcelistresponse.go | 9 -- .../logz/2020-10-01/subaccount/predicates.go | 28 +++- .../mysql/2022-01-01/configurations/README.md | 7 +- .../configurations/method_batchupdate.go | 7 +- .../model_configurationlistresult.go | 9 -- .../method_disconnectactivesessions.go | 12 +- .../bastionhosts/method_getactivesessions.go | 4 +- .../method_getbastionshareablelink.go | 12 +- .../method_putbastionshareablelink.go | 4 +- .../model_bastionactivesessionlistresult.go | 9 -- .../model_bastionsessiondeleteresult.go | 9 -- .../model_bastionshareablelinklistresult.go | 9 -- .../2023-06-01/bastionhosts/predicates.go | 89 +++++++++++-- .../method_getbastionshareablelink.go | 12 +- .../method_putbastionshareablelink.go | 4 +- .../model_bastionshareablelinklistresult.go | 9 -- .../bastionshareablelink/predicates.go | 18 ++- .../expressroutecircuitarptable/README.md | 7 +- ...method_expressroutecircuitslistarptable.go | 7 +- ..._expressroutecircuitsarptablelistresult.go | 9 -- .../expressroutecircuitarptable/predicates.go | 32 +++++ .../expressroutecircuitroutestable/README.md | 7 +- ...hod_expressroutecircuitslistroutestable.go | 7 +- ...pressroutecircuitsroutestablelistresult.go | 9 -- .../predicates.go | 37 ++++++ .../README.md | 7 +- ...ressroutecircuitslistroutestablesummary.go | 7 +- ...utecircuitsroutestablesummarylistresult.go | 9 -- .../predicates.go | 37 ++++++ .../README.md | 7 +- ...xpressroutecrossconnectionslistarptable.go | 7 +- ..._expressroutecircuitsarptablelistresult.go | 9 -- .../predicates.go | 32 +++++ .../README.md | 7 +- ...essroutecrossconnectionslistroutestable.go | 7 +- ...pressroutecircuitsroutestablelistresult.go | 9 -- .../predicates.go | 37 ++++++ .../README.md | 7 +- ...ecrossconnectionslistroutestablesummary.go | 7 +- ...connectionsroutestablesummarylistresult.go | 9 -- .../predicates.go | 32 +++++ .../2023-06-01/networkinterfaces/README.md | 14 +- .../method_geteffectiveroutetable.go | 7 +- ...thod_listeffectivenetworksecuritygroups.go | 7 +- ...effectivenetworksecuritygrouplistresult.go | 9 -- .../model_effectiveroutelistresult.go | 9 -- .../networkinterfaces/predicates.go | 26 ++++ ...virtualnetworkslistddosprotectionstatus.go | 4 +- ...irtualnetworkddosprotectionstatusresult.go | 9 -- .../2023-06-01/virtualnetworks/predicates.go | 36 ++++-- .../monitors/method_listappservices.go | 12 +- .../2022-07-01/monitors/method_listhosts.go | 12 +- .../monitors/method_listmonitoredresources.go | 12 +- .../monitors/model_appserviceslistresponse.go | 9 -- .../model_monitoredresourcelistresponse.go | 9 -- .../monitors/model_vmhostslistresponse.go | 9 -- .../2022-07-01/monitors/predicates.go | 54 ++++++-- .../querypackqueries/method_queriessearch.go | 12 +- ...el_loganalyticsquerypackquerylistresult.go | 9 -- .../2019-09-01/querypackqueries/predicates.go | 13 -- ...method_spacecraftslistavailablecontacts.go | 4 +- .../model_availablecontactslistresult.go | 9 -- .../orbital/2022-11-01/contact/predicates.go | 8 +- .../2022-08-29/globalrulestack/README.md | 42 +++--- .../method_listadvancedsecurityobjects.go | 46 ++++++- .../globalrulestack/method_listappids.go | 39 +++++- .../globalrulestack/method_listcountries.go | 46 ++++++- .../globalrulestack/method_listfirewalls.go | 39 +++++- .../method_listpredefinedurlcategories.go | 46 ++++++- .../method_listsecurityservices.go | 46 ++++++- .../model_advsecurityobjectlistresponse.go | 9 -- .../model_countriesresponse.go | 9 -- .../model_listappidresponse.go | 9 -- .../model_listfirewallsresponse.go | 9 -- .../model_predefinedurlcategoriesresponse.go | 9 -- .../model_securityservicesresponse.go | 9 -- .../2022-08-29/globalrulestack/predicates.go | 62 +++++++++ .../2022-08-29/localrulestacks/README.md | 42 +++--- .../method_listadvancedsecurityobjects.go | 46 ++++++- .../localrulestacks/method_listappids.go | 39 +++++- .../localrulestacks/method_listcountries.go | 46 ++++++- .../localrulestacks/method_listfirewalls.go | 39 +++++- .../method_listpredefinedurlcategories.go | 46 ++++++- .../method_listsecurityservices.go | 46 ++++++- .../model_advsecurityobjectlistresponse.go | 9 -- .../model_countriesresponse.go | 9 -- .../model_listappidresponse.go | 9 -- .../model_listfirewallsresponse.go | 9 -- .../model_predefinedurlcategoriesresponse.go | 9 -- .../model_securityservicesresponse.go | 9 -- .../2022-08-29/localrulestacks/predicates.go | 62 +++++++++ .../2023-09-01/globalrulestack/README.md | 42 +++--- .../method_listadvancedsecurityobjects.go | 46 ++++++- .../globalrulestack/method_listappids.go | 39 +++++- .../globalrulestack/method_listcountries.go | 46 ++++++- .../globalrulestack/method_listfirewalls.go | 39 +++++- .../method_listpredefinedurlcategories.go | 46 ++++++- .../method_listsecurityservices.go | 46 ++++++- .../model_advsecurityobjectlistresponse.go | 9 -- .../model_countriesresponse.go | 9 -- .../model_listappidresponse.go | 9 -- .../model_listfirewallsresponse.go | 9 -- .../model_predefinedurlcategoriesresponse.go | 9 -- .../model_securityservicesresponse.go | 9 -- .../2023-09-01/globalrulestack/predicates.go | 62 +++++++++ .../2023-09-01/localrulestacks/README.md | 21 +-- .../method_listadvancedsecurityobjects.go | 46 ++++++- .../localrulestacks/method_listappids.go | 19 +-- .../localrulestacks/method_listcountries.go | 12 +- .../localrulestacks/method_listfirewalls.go | 39 +++++- .../method_listpredefinedurlcategories.go | 12 +- .../method_listsecurityservices.go | 46 ++++++- .../model_advsecurityobjectlistresponse.go | 9 -- .../model_countriesresponse.go | 9 -- .../model_listappidresponse.go | 9 -- .../model_listfirewallsresponse.go | 9 -- .../model_predefinedurlcategoriesresponse.go | 9 -- .../model_securityservicesresponse.go | 9 -- .../2023-09-01/localrulestacks/predicates.go | 47 +++++-- ...method_listdeploymentsatmanagementgroup.go | 12 +- .../method_listdeploymentsatresource.go | 12 +- .../method_listdeploymentsatresourcegroup.go | 12 +- .../method_listdeploymentsatsubscription.go | 12 +- .../model_remediationdeploymentslistresult.go | 9 -- .../2021-10-01/remediations/predicates.go | 33 ++++- .../querykeys/method_listbysearchservice.go | 12 +- .../querykeys/model_listquerykeysresult.go | 9 -- .../search/2023-11-01/querykeys/predicates.go | 13 +- .../clusters/method_liststreamingjobs.go | 12 +- .../clusters/model_clusterjoblistresult.go | 9 -- .../2020-03-01/clusters/predicates.go | 13 +- .../method_changevnet.go | 4 +- .../appserviceenvironments/method_resume.go | 4 +- .../appserviceenvironments/method_suspend.go | 4 +- .../model_webappcollection.go | 9 -- .../appserviceenvironments/predicates.go | 13 -- ...d_listsiteidentifiersassignedtohostname.go | 12 +- .../model_identifiercollection.go | 9 -- .../resourceproviders/predicates.go | 23 +++- .../webapps/method_listsitebackups.go | 12 +- .../webapps/method_listsitebackupsslot.go | 12 +- ...ethod_listslotdifferencesfromproduction.go | 12 +- .../webapps/method_listslotdifferencesslot.go | 12 +- .../webapps/model_backupitemcollection.go | 9 -- .../webapps/model_slotdifferencecollection.go | 9 -- .../web/2023-01-01/webapps/predicates.go | 36 +++--- .../go-azure-sdk/sdk/client/client.go | 5 + vendor/modules.txt | 4 +- 199 files changed, 2269 insertions(+), 1246 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/model_apikeylistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/model_eventlistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/model_datadogapikeylistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/model_datadoghostlistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/model_linkedresourcelistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/model_monitoredresourcelistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/model_sharesynchronizationlist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/model_synchronizationdetailslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/model_sharedaccesssignatureauthorizationrulelistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/model_labvhdlist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/model_schedulelist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/model_virtualnetworkdnsforwardingrulesetlistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/model_subresourcelistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/model_apptemplatesresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/model_monitoredresourcelistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/model_userrolelistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/model_monitoredresourcelistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionactivesessionlistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionsessiondeleteresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionshareablelinklistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/model_bastionshareablelinklistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/model_expressroutecircuitsarptablelistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/model_expressroutecircuitsroutestablelistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/model_expressroutecircuitsroutestablesummarylistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/model_expressroutecircuitsarptablelistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/model_expressroutecircuitsroutestablelistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionsroutestablesummarylistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/model_effectivenetworksecuritygrouplistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/model_effectiveroutelistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/model_virtualnetworkddosprotectionstatusresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_appserviceslistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_monitoredresourcelistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_vmhostslistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/model_loganalyticsquerypackquerylistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/model_availablecontactslistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_advsecurityobjectlistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_countriesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_listappidresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_listfirewallsresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_predefinedurlcategoriesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_securityservicesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_advsecurityobjectlistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_countriesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_listappidresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_listfirewallsresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_predefinedurlcategoriesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_securityservicesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_advsecurityobjectlistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_countriesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_listappidresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_listfirewallsresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_predefinedurlcategoriesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_securityservicesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_advsecurityobjectlistresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_countriesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_listappidresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_listfirewallsresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_predefinedurlcategoriesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_securityservicesresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/model_remediationdeploymentslistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/model_listquerykeysresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/model_clusterjoblistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_webappcollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifiercollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemcollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferencecollection.go diff --git a/go.mod b/go.mod index 7f7d8e923e89d..2977ba0b8339e 100644 --- a/go.mod +++ b/go.mod @@ -17,8 +17,8 @@ require ( github.com/google/go-cmp v0.5.9 github.com/google/uuid v1.3.1 github.com/hashicorp/go-azure-helpers v0.66.2 - github.com/hashicorp/go-azure-sdk/resource-manager v0.20240226.1173038 - github.com/hashicorp/go-azure-sdk/sdk v0.20240226.1173038 + github.com/hashicorp/go-azure-sdk/resource-manager v0.20240227.1172434 + github.com/hashicorp/go-azure-sdk/sdk v0.20240227.1172434 github.com/hashicorp/go-hclog v1.5.0 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 diff --git a/go.sum b/go.sum index 265e362d221c5..e14180d18efb1 100644 --- a/go.sum +++ b/go.sum @@ -115,10 +115,10 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv github.com/hashicorp/go-azure-helpers v0.12.0/go.mod h1:Zc3v4DNeX6PDdy7NljlYpnrdac1++qNW0I4U+ofGwpg= github.com/hashicorp/go-azure-helpers v0.66.2 h1:+Pzuo7pdKl0hBXXr5ymmhs4Q40tHAo2nAvHq4WgSjx8= github.com/hashicorp/go-azure-helpers v0.66.2/go.mod h1:kJxXrFtJKJdOEqvad8pllAe7dhP4DbN8J6sqFZe47+4= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20240226.1173038 h1:5WS23y5blcvBjvI/GNsnMZNmtNyzkRJg440qYzhCZvA= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20240226.1173038/go.mod h1:u3NHburqls52xHkBfc9MrTl4JW6PrE+t4cZqF8VByWw= -github.com/hashicorp/go-azure-sdk/sdk v0.20240226.1173038 h1:65lsnNE9LdNLTKVXgdAYvj33io3Ox0hWKw2OKMmw8nc= -github.com/hashicorp/go-azure-sdk/sdk v0.20240226.1173038/go.mod h1:IKIPyL+hfFWBHABKT0NOWlIEzlusiUBG0SxIfaiv278= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20240227.1172434 h1:UNp65kdO4noJDrEe99Od5NfXSnjrrTs0dEyw2MM8jK0= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20240227.1172434/go.mod h1:8Pmp8Bg+FDUjkbuuiLLqysKrKUu5dOIf1dX3KFKNSU8= +github.com/hashicorp/go-azure-sdk/sdk v0.20240227.1172434 h1:IX9e6DRUYl+1skjZPpfdhnEV3cx8dNX1qECYSVcD288= +github.com/hashicorp/go-azure-sdk/sdk v0.20240227.1172434/go.mod h1:IKIPyL+hfFWBHABKT0NOWlIEzlusiUBG0SxIfaiv278= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listkeys.go index 33cf21d23297b..a4da444d70371 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listkeys.go @@ -15,12 +15,12 @@ import ( type ListKeysOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]ApiKeyListResult + Model *[]ApiKey } type ListKeysCompleteResult struct { LatestHttpResponse *http.Response - Items []ApiKeyListResult + Items []ApiKey } // ListKeys ... @@ -50,7 +50,7 @@ func (c ConfigurationStoresClient) ListKeys(ctx context.Context, id Configuratio } var values struct { - Values *[]ApiKeyListResult `json:"value"` + Values *[]ApiKey `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c ConfigurationStoresClient) ListKeys(ctx context.Context, id Configuratio // ListKeysComplete retrieves all the results into a single object func (c ConfigurationStoresClient) ListKeysComplete(ctx context.Context, id ConfigurationStoreId) (ListKeysCompleteResult, error) { - return c.ListKeysCompleteMatchingPredicate(ctx, id, ApiKeyListResultOperationPredicate{}) + return c.ListKeysCompleteMatchingPredicate(ctx, id, ApiKeyOperationPredicate{}) } // ListKeysCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ConfigurationStoresClient) ListKeysCompleteMatchingPredicate(ctx context.Context, id ConfigurationStoreId, predicate ApiKeyListResultOperationPredicate) (result ListKeysCompleteResult, err error) { - items := make([]ApiKeyListResult, 0) +func (c ConfigurationStoresClient) ListKeysCompleteMatchingPredicate(ctx context.Context, id ConfigurationStoreId, predicate ApiKeyOperationPredicate) (result ListKeysCompleteResult, err error) { + items := make([]ApiKey, 0) resp, err := c.ListKeys(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/model_apikeylistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/model_apikeylistresult.go deleted file mode 100644 index 6a8cfcd594ea6..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/model_apikeylistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package configurationstores - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApiKeyListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]ApiKey `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/predicates.go index f438a14da46d4..8fad9c6bbf4ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/predicates.go @@ -3,13 +3,38 @@ package configurationstores // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ApiKeyListResultOperationPredicate struct { - NextLink *string +type ApiKeyOperationPredicate struct { + ConnectionString *string + Id *string + LastModified *string + Name *string + ReadOnly *bool + Value *string } -func (p ApiKeyListResultOperationPredicate) Matches(input ApiKeyListResult) bool { +func (p ApiKeyOperationPredicate) Matches(input ApiKey) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.ConnectionString != nil && (input.ConnectionString == nil || *p.ConnectionString != *input.ConnectionString) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.LastModified != nil && (input.LastModified == nil || *p.LastModified != *input.LastModified) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.ReadOnly != nil && (input.ReadOnly == nil || *p.ReadOnly != *input.ReadOnly) { + return false + } + + if p.Value != nil && (input.Value == nil || *p.Value != *input.Value) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_listevents.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_listevents.go index 1b66869164958..401daa1e86f05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_listevents.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_listevents.go @@ -15,12 +15,12 @@ import ( type ListEventsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]EventListResult + Model *[]Event } type ListEventsCompleteResult struct { LatestHttpResponse *http.Response - Items []EventListResult + Items []Event } // ListEvents ... @@ -50,7 +50,7 @@ func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result Li } var values struct { - Values *[]EventListResult `json:"value"` + Values *[]Event `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result Li // ListEventsComplete retrieves all the results into a single object func (c WebHooksClient) ListEventsComplete(ctx context.Context, id WebHookId) (ListEventsCompleteResult, error) { - return c.ListEventsCompleteMatchingPredicate(ctx, id, EventListResultOperationPredicate{}) + return c.ListEventsCompleteMatchingPredicate(ctx, id, EventOperationPredicate{}) } // ListEventsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c WebHooksClient) ListEventsCompleteMatchingPredicate(ctx context.Context, id WebHookId, predicate EventListResultOperationPredicate) (result ListEventsCompleteResult, err error) { - items := make([]EventListResult, 0) +func (c WebHooksClient) ListEventsCompleteMatchingPredicate(ctx context.Context, id WebHookId, predicate EventOperationPredicate) (result ListEventsCompleteResult, err error) { + items := make([]Event, 0) resp, err := c.ListEvents(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/model_eventlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/model_eventlistresult.go deleted file mode 100644 index a108e84b1ce47..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/model_eventlistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package webhooks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EventListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]Event `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/predicates.go index 5c562d149cb7f..946905715c8dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2021-08-01-preview/webhooks/predicates.go @@ -3,13 +3,13 @@ package webhooks // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type EventListResultOperationPredicate struct { - NextLink *string +type EventOperationPredicate struct { + Id *string } -func (p EventListResultOperationPredicate) Matches(input EventListResult) bool { +func (p EventOperationPredicate) Matches(input Event) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/model_fleethubprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/model_fleethubprofile.go index 04ba31c71e7e7..dda498b252fad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/model_fleethubprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleets/model_fleethubprofile.go @@ -4,7 +4,7 @@ package fleets // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FleetHubProfile struct { - DnsPrefix *string `json:"dnsPrefix,omitempty"` + DnsPrefix string `json:"dnsPrefix"` Fqdn *string `json:"fqdn,omitempty"` KubernetesVersion *string `json:"kubernetesVersion,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/method_monitorslistapikeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/method_monitorslistapikeys.go index 994431ed40995..30816be333975 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/method_monitorslistapikeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/method_monitorslistapikeys.go @@ -15,12 +15,12 @@ import ( type MonitorsListApiKeysOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]DatadogApiKeyListResponse + Model *[]DatadogApiKey } type MonitorsListApiKeysCompleteResult struct { LatestHttpResponse *http.Response - Items []DatadogApiKeyListResponse + Items []DatadogApiKey } // MonitorsListApiKeys ... @@ -50,7 +50,7 @@ func (c ApiKeyClient) MonitorsListApiKeys(ctx context.Context, id MonitorId) (re } var values struct { - Values *[]DatadogApiKeyListResponse `json:"value"` + Values *[]DatadogApiKey `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c ApiKeyClient) MonitorsListApiKeys(ctx context.Context, id MonitorId) (re // MonitorsListApiKeysComplete retrieves all the results into a single object func (c ApiKeyClient) MonitorsListApiKeysComplete(ctx context.Context, id MonitorId) (MonitorsListApiKeysCompleteResult, error) { - return c.MonitorsListApiKeysCompleteMatchingPredicate(ctx, id, DatadogApiKeyListResponseOperationPredicate{}) + return c.MonitorsListApiKeysCompleteMatchingPredicate(ctx, id, DatadogApiKeyOperationPredicate{}) } // MonitorsListApiKeysCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ApiKeyClient) MonitorsListApiKeysCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate DatadogApiKeyListResponseOperationPredicate) (result MonitorsListApiKeysCompleteResult, err error) { - items := make([]DatadogApiKeyListResponse, 0) +func (c ApiKeyClient) MonitorsListApiKeysCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate DatadogApiKeyOperationPredicate) (result MonitorsListApiKeysCompleteResult, err error) { + items := make([]DatadogApiKey, 0) resp, err := c.MonitorsListApiKeys(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/model_datadogapikeylistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/model_datadogapikeylistresponse.go deleted file mode 100644 index ccffc10ac4a81..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/model_datadogapikeylistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package apikey - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DatadogApiKeyListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]DatadogApiKey `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/predicates.go index 87caaaeeeba70..87f7ab5d1a2e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/predicates.go @@ -3,13 +3,28 @@ package apikey // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type DatadogApiKeyListResponseOperationPredicate struct { - NextLink *string +type DatadogApiKeyOperationPredicate struct { + Created *string + CreatedBy *string + Key *string + Name *string } -func (p DatadogApiKeyListResponseOperationPredicate) Matches(input DatadogApiKeyListResponse) bool { +func (p DatadogApiKeyOperationPredicate) Matches(input DatadogApiKey) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Created != nil && (input.Created == nil || *p.Created != *input.Created) { + return false + } + + if p.CreatedBy != nil && (input.CreatedBy == nil || *p.CreatedBy != *input.CreatedBy) { + return false + } + + if p.Key != nil && *p.Key != input.Key { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/method_monitorslisthosts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/method_monitorslisthosts.go index 6727cb3b291c9..e992cdf6999cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/method_monitorslisthosts.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/method_monitorslisthosts.go @@ -15,12 +15,12 @@ import ( type MonitorsListHostsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]DatadogHostListResponse + Model *[]DatadogHost } type MonitorsListHostsCompleteResult struct { LatestHttpResponse *http.Response - Items []DatadogHostListResponse + Items []DatadogHost } // MonitorsListHosts ... @@ -50,7 +50,7 @@ func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (resul } var values struct { - Values *[]DatadogHostListResponse `json:"value"` + Values *[]DatadogHost `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (resul // MonitorsListHostsComplete retrieves all the results into a single object func (c HostsClient) MonitorsListHostsComplete(ctx context.Context, id MonitorId) (MonitorsListHostsCompleteResult, error) { - return c.MonitorsListHostsCompleteMatchingPredicate(ctx, id, DatadogHostListResponseOperationPredicate{}) + return c.MonitorsListHostsCompleteMatchingPredicate(ctx, id, DatadogHostOperationPredicate{}) } // MonitorsListHostsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c HostsClient) MonitorsListHostsCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate DatadogHostListResponseOperationPredicate) (result MonitorsListHostsCompleteResult, err error) { - items := make([]DatadogHostListResponse, 0) +func (c HostsClient) MonitorsListHostsCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate DatadogHostOperationPredicate) (result MonitorsListHostsCompleteResult, err error) { + items := make([]DatadogHost, 0) resp, err := c.MonitorsListHosts(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/model_datadoghostlistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/model_datadoghostlistresponse.go deleted file mode 100644 index 1b5e694a68c53..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/model_datadoghostlistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package hosts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DatadogHostListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]DatadogHost `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/predicates.go index 5a2dca736ed8e..35bb78eed8b2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/predicates.go @@ -3,13 +3,13 @@ package hosts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type DatadogHostListResponseOperationPredicate struct { - NextLink *string +type DatadogHostOperationPredicate struct { + Name *string } -func (p DatadogHostListResponseOperationPredicate) Matches(input DatadogHostListResponse) bool { +func (p DatadogHostOperationPredicate) Matches(input DatadogHost) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/method_monitorslistlinkedresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/method_monitorslistlinkedresources.go index 86940f340ece6..da9073beae382 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/method_monitorslistlinkedresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/method_monitorslistlinkedresources.go @@ -15,12 +15,12 @@ import ( type MonitorsListLinkedResourcesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]LinkedResourceListResponse + Model *[]LinkedResource } type MonitorsListLinkedResourcesCompleteResult struct { LatestHttpResponse *http.Response - Items []LinkedResourceListResponse + Items []LinkedResource } // MonitorsListLinkedResources ... @@ -50,7 +50,7 @@ func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, } var values struct { - Values *[]LinkedResourceListResponse `json:"value"` + Values *[]LinkedResource `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, // MonitorsListLinkedResourcesComplete retrieves all the results into a single object func (c LinkedResourcesClient) MonitorsListLinkedResourcesComplete(ctx context.Context, id MonitorId) (MonitorsListLinkedResourcesCompleteResult, error) { - return c.MonitorsListLinkedResourcesCompleteMatchingPredicate(ctx, id, LinkedResourceListResponseOperationPredicate{}) + return c.MonitorsListLinkedResourcesCompleteMatchingPredicate(ctx, id, LinkedResourceOperationPredicate{}) } // MonitorsListLinkedResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c LinkedResourcesClient) MonitorsListLinkedResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate LinkedResourceListResponseOperationPredicate) (result MonitorsListLinkedResourcesCompleteResult, err error) { - items := make([]LinkedResourceListResponse, 0) +func (c LinkedResourcesClient) MonitorsListLinkedResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate LinkedResourceOperationPredicate) (result MonitorsListLinkedResourcesCompleteResult, err error) { + items := make([]LinkedResource, 0) resp, err := c.MonitorsListLinkedResources(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/model_linkedresourcelistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/model_linkedresourcelistresponse.go deleted file mode 100644 index 62debf8625189..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/model_linkedresourcelistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package linkedresources - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LinkedResourceListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]LinkedResource `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/predicates.go index 34fbccd96671d..5cd8c05c33b5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/predicates.go @@ -3,13 +3,13 @@ package linkedresources // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type LinkedResourceListResponseOperationPredicate struct { - NextLink *string +type LinkedResourceOperationPredicate struct { + Id *string } -func (p LinkedResourceListResponseOperationPredicate) Matches(input LinkedResourceListResponse) bool { +func (p LinkedResourceOperationPredicate) Matches(input LinkedResource) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/method_monitorslistmonitoredresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/method_monitorslistmonitoredresources.go index 492558b81e2a0..2ef9fa02be8e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/method_monitorslistmonitoredresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/method_monitorslistmonitoredresources.go @@ -15,12 +15,12 @@ import ( type MonitorsListMonitoredResourcesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]MonitoredResourceListResponse + Model *[]MonitoredResource } type MonitorsListMonitoredResourcesCompleteResult struct { LatestHttpResponse *http.Response - Items []MonitoredResourceListResponse + Items []MonitoredResource } // MonitorsListMonitoredResources ... @@ -50,7 +50,7 @@ func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Con } var values struct { - Values *[]MonitoredResourceListResponse `json:"value"` + Values *[]MonitoredResource `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Con // MonitorsListMonitoredResourcesComplete retrieves all the results into a single object func (c MonitoredResourcesClient) MonitorsListMonitoredResourcesComplete(ctx context.Context, id MonitorId) (MonitorsListMonitoredResourcesCompleteResult, error) { - return c.MonitorsListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceListResponseOperationPredicate{}) + return c.MonitorsListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceOperationPredicate{}) } // MonitorsListMonitoredResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c MonitoredResourcesClient) MonitorsListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceListResponseOperationPredicate) (result MonitorsListMonitoredResourcesCompleteResult, err error) { - items := make([]MonitoredResourceListResponse, 0) +func (c MonitoredResourcesClient) MonitorsListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceOperationPredicate) (result MonitorsListMonitoredResourcesCompleteResult, err error) { + items := make([]MonitoredResource, 0) resp, err := c.MonitorsListMonitoredResources(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/model_monitoredresourcelistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/model_monitoredresourcelistresponse.go deleted file mode 100644 index 2cdbf7a85ebe0..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/model_monitoredresourcelistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package monitoredresources - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type MonitoredResourceListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]MonitoredResource `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/predicates.go index 228d572c77ffc..0797c7a22d6f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/predicates.go @@ -3,13 +3,33 @@ package monitoredresources // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type MonitoredResourceListResponseOperationPredicate struct { - NextLink *string +type MonitoredResourceOperationPredicate struct { + Id *string + ReasonForLogsStatus *string + ReasonForMetricsStatus *string + SendingLogs *bool + SendingMetrics *bool } -func (p MonitoredResourceListResponseOperationPredicate) Matches(input MonitoredResourceListResponse) bool { +func (p MonitoredResourceOperationPredicate) Matches(input MonitoredResource) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.ReasonForLogsStatus != nil && (input.ReasonForLogsStatus == nil || *p.ReasonForLogsStatus != *input.ReasonForLogsStatus) { + return false + } + + if p.ReasonForMetricsStatus != nil && (input.ReasonForMetricsStatus == nil || *p.ReasonForMetricsStatus != *input.ReasonForMetricsStatus) { + return false + } + + if p.SendingLogs != nil && (input.SendingLogs == nil || *p.SendingLogs != *input.SendingLogs) { + return false + } + + if p.SendingMetrics != nil && (input.SendingMetrics == nil || *p.SendingMetrics != *input.SendingMetrics) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go index ddb46c50deeb4..7ac41c0e6cb9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go @@ -15,12 +15,12 @@ import ( type ListSynchronizationDetailsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]SynchronizationDetailsList + Model *[]SynchronizationDetails } type ListSynchronizationDetailsCompleteResult struct { LatestHttpResponse *http.Response - Items []SynchronizationDetailsList + Items []SynchronizationDetails } type ListSynchronizationDetailsOperationOptions struct { @@ -82,7 +82,7 @@ func (c ShareClient) ListSynchronizationDetails(ctx context.Context, id ShareId, } var values struct { - Values *[]SynchronizationDetailsList `json:"value"` + Values *[]SynchronizationDetails `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -95,12 +95,12 @@ func (c ShareClient) ListSynchronizationDetails(ctx context.Context, id ShareId, // ListSynchronizationDetailsComplete retrieves all the results into a single object func (c ShareClient) ListSynchronizationDetailsComplete(ctx context.Context, id ShareId, input ShareSynchronization, options ListSynchronizationDetailsOperationOptions) (ListSynchronizationDetailsCompleteResult, error) { - return c.ListSynchronizationDetailsCompleteMatchingPredicate(ctx, id, input, options, SynchronizationDetailsListOperationPredicate{}) + return c.ListSynchronizationDetailsCompleteMatchingPredicate(ctx, id, input, options, SynchronizationDetailsOperationPredicate{}) } // ListSynchronizationDetailsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ShareClient) ListSynchronizationDetailsCompleteMatchingPredicate(ctx context.Context, id ShareId, input ShareSynchronization, options ListSynchronizationDetailsOperationOptions, predicate SynchronizationDetailsListOperationPredicate) (result ListSynchronizationDetailsCompleteResult, err error) { - items := make([]SynchronizationDetailsList, 0) +func (c ShareClient) ListSynchronizationDetailsCompleteMatchingPredicate(ctx context.Context, id ShareId, input ShareSynchronization, options ListSynchronizationDetailsOperationOptions, predicate SynchronizationDetailsOperationPredicate) (result ListSynchronizationDetailsCompleteResult, err error) { + items := make([]SynchronizationDetails, 0) resp, err := c.ListSynchronizationDetails(ctx, id, input, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go index b9d1b5d79b056..e9eadeb82bb8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go @@ -15,12 +15,12 @@ import ( type ListSynchronizationsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]ShareSynchronizationList + Model *[]ShareSynchronization } type ListSynchronizationsCompleteResult struct { LatestHttpResponse *http.Response - Items []ShareSynchronizationList + Items []ShareSynchronization } type ListSynchronizationsOperationOptions struct { @@ -82,7 +82,7 @@ func (c ShareClient) ListSynchronizations(ctx context.Context, id ShareId, optio } var values struct { - Values *[]ShareSynchronizationList `json:"value"` + Values *[]ShareSynchronization `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -95,12 +95,12 @@ func (c ShareClient) ListSynchronizations(ctx context.Context, id ShareId, optio // ListSynchronizationsComplete retrieves all the results into a single object func (c ShareClient) ListSynchronizationsComplete(ctx context.Context, id ShareId, options ListSynchronizationsOperationOptions) (ListSynchronizationsCompleteResult, error) { - return c.ListSynchronizationsCompleteMatchingPredicate(ctx, id, options, ShareSynchronizationListOperationPredicate{}) + return c.ListSynchronizationsCompleteMatchingPredicate(ctx, id, options, ShareSynchronizationOperationPredicate{}) } // ListSynchronizationsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ShareClient) ListSynchronizationsCompleteMatchingPredicate(ctx context.Context, id ShareId, options ListSynchronizationsOperationOptions, predicate ShareSynchronizationListOperationPredicate) (result ListSynchronizationsCompleteResult, err error) { - items := make([]ShareSynchronizationList, 0) +func (c ShareClient) ListSynchronizationsCompleteMatchingPredicate(ctx context.Context, id ShareId, options ListSynchronizationsOperationOptions, predicate ShareSynchronizationOperationPredicate) (result ListSynchronizationsCompleteResult, err error) { + items := make([]ShareSynchronization, 0) resp, err := c.ListSynchronizations(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/model_sharesynchronizationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/model_sharesynchronizationlist.go deleted file mode 100644 index f90c3473b77e5..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/model_sharesynchronizationlist.go +++ /dev/null @@ -1,9 +0,0 @@ -package share - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ShareSynchronizationList struct { - NextLink *string `json:"nextLink,omitempty"` - Value []ShareSynchronization `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/model_synchronizationdetailslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/model_synchronizationdetailslist.go deleted file mode 100644 index 826ad117ddfb3..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/model_synchronizationdetailslist.go +++ /dev/null @@ -1,9 +0,0 @@ -package share - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SynchronizationDetailsList struct { - NextLink *string `json:"nextLink,omitempty"` - Value []SynchronizationDetails `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/predicates.go index fc73f617c73a0..b2176d6514f23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/predicates.go @@ -49,26 +49,131 @@ func (p ShareOperationPredicate) Matches(input Share) bool { return true } -type ShareSynchronizationListOperationPredicate struct { - NextLink *string +type ShareSynchronizationOperationPredicate struct { + ConsumerEmail *string + ConsumerName *string + ConsumerTenantName *string + DurationMs *int64 + EndTime *string + Message *string + StartTime *string + Status *string + SynchronizationId *string } -func (p ShareSynchronizationListOperationPredicate) Matches(input ShareSynchronizationList) bool { +func (p ShareSynchronizationOperationPredicate) Matches(input ShareSynchronization) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.ConsumerEmail != nil && (input.ConsumerEmail == nil || *p.ConsumerEmail != *input.ConsumerEmail) { + return false + } + + if p.ConsumerName != nil && (input.ConsumerName == nil || *p.ConsumerName != *input.ConsumerName) { + return false + } + + if p.ConsumerTenantName != nil && (input.ConsumerTenantName == nil || *p.ConsumerTenantName != *input.ConsumerTenantName) { + return false + } + + if p.DurationMs != nil && (input.DurationMs == nil || *p.DurationMs != *input.DurationMs) { + return false + } + + if p.EndTime != nil && (input.EndTime == nil || *p.EndTime != *input.EndTime) { + return false + } + + if p.Message != nil && (input.Message == nil || *p.Message != *input.Message) { + return false + } + + if p.StartTime != nil && (input.StartTime == nil || *p.StartTime != *input.StartTime) { + return false + } + + if p.Status != nil && (input.Status == nil || *p.Status != *input.Status) { + return false + } + + if p.SynchronizationId != nil && (input.SynchronizationId == nil || *p.SynchronizationId != *input.SynchronizationId) { return false } return true } -type SynchronizationDetailsListOperationPredicate struct { - NextLink *string +type SynchronizationDetailsOperationPredicate struct { + DataSetId *string + DurationMs *int64 + EndTime *string + FilesRead *int64 + FilesWritten *int64 + Message *string + Name *string + RowsCopied *int64 + RowsRead *int64 + SizeRead *int64 + SizeWritten *int64 + StartTime *string + Status *string + VCore *int64 } -func (p SynchronizationDetailsListOperationPredicate) Matches(input SynchronizationDetailsList) bool { +func (p SynchronizationDetailsOperationPredicate) Matches(input SynchronizationDetails) bool { + + if p.DataSetId != nil && (input.DataSetId == nil || *p.DataSetId != *input.DataSetId) { + return false + } + + if p.DurationMs != nil && (input.DurationMs == nil || *p.DurationMs != *input.DurationMs) { + return false + } + + if p.EndTime != nil && (input.EndTime == nil || *p.EndTime != *input.EndTime) { + return false + } + + if p.FilesRead != nil && (input.FilesRead == nil || *p.FilesRead != *input.FilesRead) { + return false + } + + if p.FilesWritten != nil && (input.FilesWritten == nil || *p.FilesWritten != *input.FilesWritten) { + return false + } + + if p.Message != nil && (input.Message == nil || *p.Message != *input.Message) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.RowsCopied != nil && (input.RowsCopied == nil || *p.RowsCopied != *input.RowsCopied) { + return false + } + + if p.RowsRead != nil && (input.RowsRead == nil || *p.RowsRead != *input.RowsRead) { + return false + } + + if p.SizeRead != nil && (input.SizeRead == nil || *p.SizeRead != *input.SizeRead) { + return false + } + + if p.SizeWritten != nil && (input.SizeWritten == nil || *p.SizeWritten != *input.SizeWritten) { + return false + } + + if p.StartTime != nil && (input.StartTime == nil || *p.StartTime != *input.StartTime) { + return false + } + + if p.Status != nil && (input.Status == nil || *p.Status != *input.Status) { + return false + } - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.VCore != nil && (input.VCore == nil || *p.VCore != *input.VCore) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/model_projectproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/model_projectproperties.go index fbad04cf7d468..8db7e192d065c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/model_projectproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/model_projectproperties.go @@ -5,7 +5,7 @@ package projects type ProjectProperties struct { Description *string `json:"description,omitempty"` - DevCenterId *string `json:"devCenterId,omitempty"` + DevCenterId string `json:"devCenterId"` DevCenterUri *string `json:"devCenterUri,omitempty"` MaxDevBoxesPerUser *int64 `json:"maxDevBoxesPerUser,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeys.go index 4e35e5a536579..79df22c4a9f8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeys.go @@ -16,12 +16,12 @@ import ( type ListKeysOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]SharedAccessSignatureAuthorizationRuleListResult + Model *[]SharedAccessSignatureAuthorizationRuleAccessRightsDescription } type ListKeysCompleteResult struct { LatestHttpResponse *http.Response - Items []SharedAccessSignatureAuthorizationRuleListResult + Items []SharedAccessSignatureAuthorizationRuleAccessRightsDescription } // ListKeys ... @@ -51,7 +51,7 @@ func (c IotDpsResourceClient) ListKeys(ctx context.Context, id commonids.Provisi } var values struct { - Values *[]SharedAccessSignatureAuthorizationRuleListResult `json:"value"` + Values *[]SharedAccessSignatureAuthorizationRuleAccessRightsDescription `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -64,12 +64,12 @@ func (c IotDpsResourceClient) ListKeys(ctx context.Context, id commonids.Provisi // ListKeysComplete retrieves all the results into a single object func (c IotDpsResourceClient) ListKeysComplete(ctx context.Context, id commonids.ProvisioningServiceId) (ListKeysCompleteResult, error) { - return c.ListKeysCompleteMatchingPredicate(ctx, id, SharedAccessSignatureAuthorizationRuleListResultOperationPredicate{}) + return c.ListKeysCompleteMatchingPredicate(ctx, id, SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOperationPredicate{}) } // ListKeysCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c IotDpsResourceClient) ListKeysCompleteMatchingPredicate(ctx context.Context, id commonids.ProvisioningServiceId, predicate SharedAccessSignatureAuthorizationRuleListResultOperationPredicate) (result ListKeysCompleteResult, err error) { - items := make([]SharedAccessSignatureAuthorizationRuleListResult, 0) +func (c IotDpsResourceClient) ListKeysCompleteMatchingPredicate(ctx context.Context, id commonids.ProvisioningServiceId, predicate SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOperationPredicate) (result ListKeysCompleteResult, err error) { + items := make([]SharedAccessSignatureAuthorizationRuleAccessRightsDescription, 0) resp, err := c.ListKeys(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/model_sharedaccesssignatureauthorizationrulelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/model_sharedaccesssignatureauthorizationrulelistresult.go deleted file mode 100644 index 62c7f154b6745..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/model_sharedaccesssignatureauthorizationrulelistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package iotdpsresource - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SharedAccessSignatureAuthorizationRuleListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]SharedAccessSignatureAuthorizationRuleAccessRightsDescription `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/predicates.go index 9a71886d440c7..16a003fcf7a49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/predicates.go @@ -44,13 +44,23 @@ func (p ProvisioningServiceDescriptionOperationPredicate) Matches(input Provisio return true } -type SharedAccessSignatureAuthorizationRuleListResultOperationPredicate struct { - NextLink *string +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOperationPredicate struct { + KeyName *string + PrimaryKey *string + SecondaryKey *string } -func (p SharedAccessSignatureAuthorizationRuleListResultOperationPredicate) Matches(input SharedAccessSignatureAuthorizationRuleListResult) bool { +func (p SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOperationPredicate) Matches(input SharedAccessSignatureAuthorizationRuleAccessRightsDescription) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.KeyName != nil && *p.KeyName != input.KeyName { + return false + } + + if p.PrimaryKey != nil && (input.PrimaryKey == nil || *p.PrimaryKey != *input.PrimaryKey) { + return false + } + + if p.SecondaryKey != nil && (input.SecondaryKey == nil || *p.SecondaryKey != *input.SecondaryKey) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listvhds.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listvhds.go index 0111f21a58896..721b646e81dcd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listvhds.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listvhds.go @@ -15,12 +15,12 @@ import ( type ListVhdsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]LabVhdList + Model *[]LabVhd } type ListVhdsCompleteResult struct { LatestHttpResponse *http.Response - Items []LabVhdList + Items []LabVhd } // ListVhds ... @@ -50,7 +50,7 @@ func (c LabsClient) ListVhds(ctx context.Context, id LabId) (result ListVhdsOper } var values struct { - Values *[]LabVhdList `json:"value"` + Values *[]LabVhd `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c LabsClient) ListVhds(ctx context.Context, id LabId) (result ListVhdsOper // ListVhdsComplete retrieves all the results into a single object func (c LabsClient) ListVhdsComplete(ctx context.Context, id LabId) (ListVhdsCompleteResult, error) { - return c.ListVhdsCompleteMatchingPredicate(ctx, id, LabVhdListOperationPredicate{}) + return c.ListVhdsCompleteMatchingPredicate(ctx, id, LabVhdOperationPredicate{}) } // ListVhdsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c LabsClient) ListVhdsCompleteMatchingPredicate(ctx context.Context, id LabId, predicate LabVhdListOperationPredicate) (result ListVhdsCompleteResult, err error) { - items := make([]LabVhdList, 0) +func (c LabsClient) ListVhdsCompleteMatchingPredicate(ctx context.Context, id LabId, predicate LabVhdOperationPredicate) (result ListVhdsCompleteResult, err error) { + items := make([]LabVhd, 0) resp, err := c.ListVhds(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/model_labvhdlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/model_labvhdlist.go deleted file mode 100644 index 73b941c09cef2..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/model_labvhdlist.go +++ /dev/null @@ -1,9 +0,0 @@ -package labs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LabVhdList struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]LabVhd `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/predicates.go index 5dfd9a1ba8b31..690bddf0434b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/predicates.go @@ -31,13 +31,13 @@ func (p LabOperationPredicate) Matches(input Lab) bool { return true } -type LabVhdListOperationPredicate struct { - NextLink *string +type LabVhdOperationPredicate struct { + Id *string } -func (p LabVhdListOperationPredicate) Matches(input LabVhdList) bool { +func (p LabVhdOperationPredicate) Matches(input LabVhd) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_listapplicable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_listapplicable.go index 0c83089e0a357..7eb825156a95d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_listapplicable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_listapplicable.go @@ -15,12 +15,12 @@ import ( type ListApplicableOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]ScheduleList + Model *[]Schedule } type ListApplicableCompleteResult struct { LatestHttpResponse *http.Response - Items []ScheduleList + Items []Schedule } // ListApplicable ... @@ -50,7 +50,7 @@ func (c SchedulesClient) ListApplicable(ctx context.Context, id LabScheduleId) ( } var values struct { - Values *[]ScheduleList `json:"value"` + Values *[]Schedule `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c SchedulesClient) ListApplicable(ctx context.Context, id LabScheduleId) ( // ListApplicableComplete retrieves all the results into a single object func (c SchedulesClient) ListApplicableComplete(ctx context.Context, id LabScheduleId) (ListApplicableCompleteResult, error) { - return c.ListApplicableCompleteMatchingPredicate(ctx, id, ScheduleListOperationPredicate{}) + return c.ListApplicableCompleteMatchingPredicate(ctx, id, ScheduleOperationPredicate{}) } // ListApplicableCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c SchedulesClient) ListApplicableCompleteMatchingPredicate(ctx context.Context, id LabScheduleId, predicate ScheduleListOperationPredicate) (result ListApplicableCompleteResult, err error) { - items := make([]ScheduleList, 0) +func (c SchedulesClient) ListApplicableCompleteMatchingPredicate(ctx context.Context, id LabScheduleId, predicate ScheduleOperationPredicate) (result ListApplicableCompleteResult, err error) { + items := make([]Schedule, 0) resp, err := c.ListApplicable(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/model_schedulelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/model_schedulelist.go deleted file mode 100644 index 1e521be139873..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/model_schedulelist.go +++ /dev/null @@ -1,9 +0,0 @@ -package schedules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScheduleList struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]Schedule `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/predicates.go index b999790bb5d58..52d77ea8869ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/predicates.go @@ -30,16 +30,3 @@ func (p ScheduleOperationPredicate) Matches(input Schedule) bool { return true } - -type ScheduleListOperationPredicate struct { - NextLink *string -} - -func (p ScheduleListOperationPredicate) Matches(input ScheduleList) bool { - - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go index 8f428b60637e3..eaf9721560497 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go @@ -16,12 +16,12 @@ import ( type ListByVirtualNetworkOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]VirtualNetworkDnsForwardingRulesetListResult + Model *[]VirtualNetworkDnsForwardingRuleset } type ListByVirtualNetworkCompleteResult struct { LatestHttpResponse *http.Response - Items []VirtualNetworkDnsForwardingRulesetListResult + Items []VirtualNetworkDnsForwardingRuleset } type ListByVirtualNetworkOperationOptions struct { @@ -79,7 +79,7 @@ func (c DnsForwardingRulesetsClient) ListByVirtualNetwork(ctx context.Context, i } var values struct { - Values *[]VirtualNetworkDnsForwardingRulesetListResult `json:"value"` + Values *[]VirtualNetworkDnsForwardingRuleset `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -92,12 +92,12 @@ func (c DnsForwardingRulesetsClient) ListByVirtualNetwork(ctx context.Context, i // ListByVirtualNetworkComplete retrieves all the results into a single object func (c DnsForwardingRulesetsClient) ListByVirtualNetworkComplete(ctx context.Context, id commonids.VirtualNetworkId, options ListByVirtualNetworkOperationOptions) (ListByVirtualNetworkCompleteResult, error) { - return c.ListByVirtualNetworkCompleteMatchingPredicate(ctx, id, options, VirtualNetworkDnsForwardingRulesetListResultOperationPredicate{}) + return c.ListByVirtualNetworkCompleteMatchingPredicate(ctx, id, options, VirtualNetworkDnsForwardingRulesetOperationPredicate{}) } // ListByVirtualNetworkCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c DnsForwardingRulesetsClient) ListByVirtualNetworkCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, options ListByVirtualNetworkOperationOptions, predicate VirtualNetworkDnsForwardingRulesetListResultOperationPredicate) (result ListByVirtualNetworkCompleteResult, err error) { - items := make([]VirtualNetworkDnsForwardingRulesetListResult, 0) +func (c DnsForwardingRulesetsClient) ListByVirtualNetworkCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, options ListByVirtualNetworkOperationOptions, predicate VirtualNetworkDnsForwardingRulesetOperationPredicate) (result ListByVirtualNetworkCompleteResult, err error) { + items := make([]VirtualNetworkDnsForwardingRuleset, 0) resp, err := c.ListByVirtualNetwork(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/model_virtualnetworkdnsforwardingrulesetlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/model_virtualnetworkdnsforwardingrulesetlistresult.go deleted file mode 100644 index dc12a6817f0e4..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/model_virtualnetworkdnsforwardingrulesetlistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package dnsforwardingrulesets - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkDnsForwardingRulesetListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]VirtualNetworkDnsForwardingRuleset `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/predicates.go index 93d857171c7f5..c52c3230e2a6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/predicates.go @@ -36,13 +36,13 @@ func (p DnsForwardingRulesetOperationPredicate) Matches(input DnsForwardingRules return true } -type VirtualNetworkDnsForwardingRulesetListResultOperationPredicate struct { - NextLink *string +type VirtualNetworkDnsForwardingRulesetOperationPredicate struct { + Id *string } -func (p VirtualNetworkDnsForwardingRulesetListResultOperationPredicate) Matches(input VirtualNetworkDnsForwardingRulesetListResult) bool { +func (p VirtualNetworkDnsForwardingRulesetOperationPredicate) Matches(input VirtualNetworkDnsForwardingRuleset) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go index 58076eb5c9432..d705688ff47af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go @@ -16,12 +16,12 @@ import ( type ListByVirtualNetworkOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]SubResourceListResult + Model *[]SubResource } type ListByVirtualNetworkCompleteResult struct { LatestHttpResponse *http.Response - Items []SubResourceListResult + Items []SubResource } type ListByVirtualNetworkOperationOptions struct { @@ -79,7 +79,7 @@ func (c DnsResolversClient) ListByVirtualNetwork(ctx context.Context, id commoni } var values struct { - Values *[]SubResourceListResult `json:"value"` + Values *[]SubResource `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -92,12 +92,12 @@ func (c DnsResolversClient) ListByVirtualNetwork(ctx context.Context, id commoni // ListByVirtualNetworkComplete retrieves all the results into a single object func (c DnsResolversClient) ListByVirtualNetworkComplete(ctx context.Context, id commonids.VirtualNetworkId, options ListByVirtualNetworkOperationOptions) (ListByVirtualNetworkCompleteResult, error) { - return c.ListByVirtualNetworkCompleteMatchingPredicate(ctx, id, options, SubResourceListResultOperationPredicate{}) + return c.ListByVirtualNetworkCompleteMatchingPredicate(ctx, id, options, SubResourceOperationPredicate{}) } // ListByVirtualNetworkCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c DnsResolversClient) ListByVirtualNetworkCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, options ListByVirtualNetworkOperationOptions, predicate SubResourceListResultOperationPredicate) (result ListByVirtualNetworkCompleteResult, err error) { - items := make([]SubResourceListResult, 0) +func (c DnsResolversClient) ListByVirtualNetworkCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, options ListByVirtualNetworkOperationOptions, predicate SubResourceOperationPredicate) (result ListByVirtualNetworkCompleteResult, err error) { + items := make([]SubResource, 0) resp, err := c.ListByVirtualNetwork(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/model_subresourcelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/model_subresourcelistresult.go deleted file mode 100644 index 4831b84a5ca24..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/model_subresourcelistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package dnsresolvers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResourceListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]SubResource `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/predicates.go index d221696c1a6a5..f0c5d490d4a2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/predicates.go @@ -36,13 +36,13 @@ func (p DnsResolverOperationPredicate) Matches(input DnsResolver) bool { return true } -type SubResourceListResultOperationPredicate struct { - NextLink *string +type SubResourceOperationPredicate struct { + Id *string } -func (p SubResourceListResultOperationPredicate) Matches(input SubResourceListResult) bool { +func (p SubResourceOperationPredicate) Matches(input SubResource) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && *p.Id != input.Id { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_listtemplates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_listtemplates.go index 4978a55ab6c5f..a6cdca1cdcf61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_listtemplates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_listtemplates.go @@ -16,12 +16,12 @@ import ( type ListTemplatesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]AppTemplatesResult + Model *[]AppTemplate } type ListTemplatesCompleteResult struct { LatestHttpResponse *http.Response - Items []AppTemplatesResult + Items []AppTemplate } // ListTemplates ... @@ -51,7 +51,7 @@ func (c AppsClient) ListTemplates(ctx context.Context, id commonids.Subscription } var values struct { - Values *[]AppTemplatesResult `json:"value"` + Values *[]AppTemplate `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -64,12 +64,12 @@ func (c AppsClient) ListTemplates(ctx context.Context, id commonids.Subscription // ListTemplatesComplete retrieves all the results into a single object func (c AppsClient) ListTemplatesComplete(ctx context.Context, id commonids.SubscriptionId) (ListTemplatesCompleteResult, error) { - return c.ListTemplatesCompleteMatchingPredicate(ctx, id, AppTemplatesResultOperationPredicate{}) + return c.ListTemplatesCompleteMatchingPredicate(ctx, id, AppTemplateOperationPredicate{}) } // ListTemplatesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AppsClient) ListTemplatesCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AppTemplatesResultOperationPredicate) (result ListTemplatesCompleteResult, err error) { - items := make([]AppTemplatesResult, 0) +func (c AppsClient) ListTemplatesCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AppTemplateOperationPredicate) (result ListTemplatesCompleteResult, err error) { + items := make([]AppTemplate, 0) resp, err := c.ListTemplates(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/model_apptemplatesresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/model_apptemplatesresult.go deleted file mode 100644 index f597b2417703e..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/model_apptemplatesresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package apps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AppTemplatesResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]AppTemplate `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/predicates.go index 06f887fd10965..d527a493576fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/predicates.go @@ -31,13 +31,43 @@ func (p AppOperationPredicate) Matches(input App) bool { return true } -type AppTemplatesResultOperationPredicate struct { - NextLink *string +type AppTemplateOperationPredicate struct { + Description *string + Industry *string + ManifestId *string + ManifestVersion *string + Name *string + Order *float64 + Title *string } -func (p AppTemplatesResultOperationPredicate) Matches(input AppTemplatesResult) bool { +func (p AppTemplateOperationPredicate) Matches(input AppTemplate) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Description != nil && (input.Description == nil || *p.Description != *input.Description) { + return false + } + + if p.Industry != nil && (input.Industry == nil || *p.Industry != *input.Industry) { + return false + } + + if p.ManifestId != nil && (input.ManifestId == nil || *p.ManifestId != *input.ManifestId) { + return false + } + + if p.ManifestVersion != nil && (input.ManifestVersion == nil || *p.ManifestVersion != *input.ManifestVersion) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Order != nil && (input.Order == nil || *p.Order != *input.Order) { + return false + } + + if p.Title != nil && (input.Title == nil || *p.Title != *input.Title) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/method_listmonitoredresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/method_listmonitoredresources.go index 644fc894e3454..0b0dee2112f9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/method_listmonitoredresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/method_listmonitoredresources.go @@ -15,12 +15,12 @@ import ( type ListMonitoredResourcesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]MonitoredResourceListResponse + Model *[]MonitoredResource } type ListMonitoredResourcesCompleteResult struct { LatestHttpResponse *http.Response - Items []MonitoredResourceListResponse + Items []MonitoredResource } // ListMonitoredResources ... @@ -50,7 +50,7 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId } var values struct { - Values *[]MonitoredResourceListResponse `json:"value"` + Values *[]MonitoredResource `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId // ListMonitoredResourcesComplete retrieves all the results into a single object func (c MonitorsClient) ListMonitoredResourcesComplete(ctx context.Context, id MonitorId) (ListMonitoredResourcesCompleteResult, error) { - return c.ListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceListResponseOperationPredicate{}) + return c.ListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceOperationPredicate{}) } // ListMonitoredResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c MonitorsClient) ListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceListResponseOperationPredicate) (result ListMonitoredResourcesCompleteResult, err error) { - items := make([]MonitoredResourceListResponse, 0) +func (c MonitorsClient) ListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceOperationPredicate) (result ListMonitoredResourcesCompleteResult, err error) { + items := make([]MonitoredResource, 0) resp, err := c.ListMonitoredResources(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/method_listuserroles.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/method_listuserroles.go index b3a05349cadd8..5c1aad7119aec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/method_listuserroles.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/method_listuserroles.go @@ -15,12 +15,12 @@ import ( type ListUserRolesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]UserRoleListResponse + Model *[]UserRoleResponse } type ListUserRolesCompleteResult struct { LatestHttpResponse *http.Response - Items []UserRoleListResponse + Items []UserRoleResponse } // ListUserRoles ... @@ -50,7 +50,7 @@ func (c MonitorsClient) ListUserRoles(ctx context.Context, id MonitorId, input U } var values struct { - Values *[]UserRoleListResponse `json:"value"` + Values *[]UserRoleResponse `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c MonitorsClient) ListUserRoles(ctx context.Context, id MonitorId, input U // ListUserRolesComplete retrieves all the results into a single object func (c MonitorsClient) ListUserRolesComplete(ctx context.Context, id MonitorId, input UserRoleRequest) (ListUserRolesCompleteResult, error) { - return c.ListUserRolesCompleteMatchingPredicate(ctx, id, input, UserRoleListResponseOperationPredicate{}) + return c.ListUserRolesCompleteMatchingPredicate(ctx, id, input, UserRoleResponseOperationPredicate{}) } // ListUserRolesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c MonitorsClient) ListUserRolesCompleteMatchingPredicate(ctx context.Context, id MonitorId, input UserRoleRequest, predicate UserRoleListResponseOperationPredicate) (result ListUserRolesCompleteResult, err error) { - items := make([]UserRoleListResponse, 0) +func (c MonitorsClient) ListUserRolesCompleteMatchingPredicate(ctx context.Context, id MonitorId, input UserRoleRequest, predicate UserRoleResponseOperationPredicate) (result ListUserRolesCompleteResult, err error) { + items := make([]UserRoleResponse, 0) resp, err := c.ListUserRoles(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/model_monitoredresourcelistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/model_monitoredresourcelistresponse.go deleted file mode 100644 index a85b7de4c67cf..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/model_monitoredresourcelistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package monitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type MonitoredResourceListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]MonitoredResource `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/model_userrolelistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/model_userrolelistresponse.go deleted file mode 100644 index d69fe0042a90d..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/model_userrolelistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package monitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UserRoleListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]UserRoleResponse `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/predicates.go index 7483d375fc107..c717fd40c2633 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/monitors/predicates.go @@ -31,28 +31,43 @@ func (p LogzMonitorResourceOperationPredicate) Matches(input LogzMonitorResource return true } -type MonitoredResourceListResponseOperationPredicate struct { - NextLink *string +type MonitoredResourceOperationPredicate struct { + Id *string + ReasonForLogsStatus *string + ReasonForMetricsStatus *string + SendingLogs *bool + SendingMetrics *bool } -func (p MonitoredResourceListResponseOperationPredicate) Matches(input MonitoredResourceListResponse) bool { +func (p MonitoredResourceOperationPredicate) Matches(input MonitoredResource) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false } - return true -} + if p.ReasonForLogsStatus != nil && (input.ReasonForLogsStatus == nil || *p.ReasonForLogsStatus != *input.ReasonForLogsStatus) { + return false + } -type UserRoleListResponseOperationPredicate struct { - NextLink *string -} + if p.ReasonForMetricsStatus != nil && (input.ReasonForMetricsStatus == nil || *p.ReasonForMetricsStatus != *input.ReasonForMetricsStatus) { + return false + } -func (p UserRoleListResponseOperationPredicate) Matches(input UserRoleListResponse) bool { + if p.SendingLogs != nil && (input.SendingLogs == nil || *p.SendingLogs != *input.SendingLogs) { + return false + } - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.SendingMetrics != nil && (input.SendingMetrics == nil || *p.SendingMetrics != *input.SendingMetrics) { return false } return true } + +type UserRoleResponseOperationPredicate struct { +} + +func (p UserRoleResponseOperationPredicate) Matches(input UserRoleResponse) bool { + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/method_listmonitoredresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/method_listmonitoredresources.go index d8164a320706f..3af444acba137 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/method_listmonitoredresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/method_listmonitoredresources.go @@ -15,12 +15,12 @@ import ( type ListMonitoredResourcesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]MonitoredResourceListResponse + Model *[]MonitoredResource } type ListMonitoredResourcesCompleteResult struct { LatestHttpResponse *http.Response - Items []MonitoredResourceListResponse + Items []MonitoredResource } // ListMonitoredResources ... @@ -50,7 +50,7 @@ func (c SubAccountClient) ListMonitoredResources(ctx context.Context, id Account } var values struct { - Values *[]MonitoredResourceListResponse `json:"value"` + Values *[]MonitoredResource `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c SubAccountClient) ListMonitoredResources(ctx context.Context, id Account // ListMonitoredResourcesComplete retrieves all the results into a single object func (c SubAccountClient) ListMonitoredResourcesComplete(ctx context.Context, id AccountId) (ListMonitoredResourcesCompleteResult, error) { - return c.ListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceListResponseOperationPredicate{}) + return c.ListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceOperationPredicate{}) } // ListMonitoredResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c SubAccountClient) ListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate MonitoredResourceListResponseOperationPredicate) (result ListMonitoredResourcesCompleteResult, err error) { - items := make([]MonitoredResourceListResponse, 0) +func (c SubAccountClient) ListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate MonitoredResourceOperationPredicate) (result ListMonitoredResourcesCompleteResult, err error) { + items := make([]MonitoredResource, 0) resp, err := c.ListMonitoredResources(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/model_monitoredresourcelistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/model_monitoredresourcelistresponse.go deleted file mode 100644 index a2ef59e55acb1..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/model_monitoredresourcelistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package subaccount - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type MonitoredResourceListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]MonitoredResource `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/predicates.go index 945866bad9b60..70c789ddee26f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logz/2020-10-01/subaccount/predicates.go @@ -31,13 +31,33 @@ func (p LogzMonitorResourceOperationPredicate) Matches(input LogzMonitorResource return true } -type MonitoredResourceListResponseOperationPredicate struct { - NextLink *string +type MonitoredResourceOperationPredicate struct { + Id *string + ReasonForLogsStatus *string + ReasonForMetricsStatus *string + SendingLogs *bool + SendingMetrics *bool } -func (p MonitoredResourceListResponseOperationPredicate) Matches(input MonitoredResourceListResponse) bool { +func (p MonitoredResourceOperationPredicate) Matches(input MonitoredResource) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.ReasonForLogsStatus != nil && (input.ReasonForLogsStatus == nil || *p.ReasonForLogsStatus != *input.ReasonForLogsStatus) { + return false + } + + if p.ReasonForMetricsStatus != nil && (input.ReasonForMetricsStatus == nil || *p.ReasonForMetricsStatus != *input.ReasonForMetricsStatus) { + return false + } + + if p.SendingLogs != nil && (input.SendingLogs == nil || *p.SendingLogs != *input.SendingLogs) { + return false + } + + if p.SendingMetrics != nil && (input.SendingMetrics == nil || *p.SendingMetrics != *input.SendingMetrics) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md index 867d4e86462b8..5cf4d68f5ce32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md @@ -31,9 +31,14 @@ payload := configurations.ConfigurationListForBatchUpdate{ } -if err := client.BatchUpdateThenPoll(ctx, id, payload); err != nil { +// alternatively `client.BatchUpdate(ctx, id, payload)` can be used to do batched pagination +items, err := client.BatchUpdateComplete(ctx, id, payload) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go index 1bf55f620d82b..85e1ead0a010b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go @@ -18,7 +18,12 @@ type BatchUpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *ConfigurationListResult + Model *[]Configuration +} + +type BatchUpdateCompleteResult struct { + LatestHttpResponse *http.Response + Items []Configuration } // BatchUpdate ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistresult.go deleted file mode 100644 index 175895f4548d1..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package configurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConfigurationListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]Configuration `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_disconnectactivesessions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_disconnectactivesessions.go index 5e04a28894d19..3a130339543d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_disconnectactivesessions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_disconnectactivesessions.go @@ -15,12 +15,12 @@ import ( type DisconnectActiveSessionsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]BastionSessionDeleteResult + Model *[]BastionSessionState } type DisconnectActiveSessionsCompleteResult struct { LatestHttpResponse *http.Response - Items []BastionSessionDeleteResult + Items []BastionSessionState } // DisconnectActiveSessions ... @@ -50,7 +50,7 @@ func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id Bas } var values struct { - Values *[]BastionSessionDeleteResult `json:"value"` + Values *[]BastionSessionState `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id Bas // DisconnectActiveSessionsComplete retrieves all the results into a single object func (c BastionHostsClient) DisconnectActiveSessionsComplete(ctx context.Context, id BastionHostId, input SessionIds) (DisconnectActiveSessionsCompleteResult, error) { - return c.DisconnectActiveSessionsCompleteMatchingPredicate(ctx, id, input, BastionSessionDeleteResultOperationPredicate{}) + return c.DisconnectActiveSessionsCompleteMatchingPredicate(ctx, id, input, BastionSessionStateOperationPredicate{}) } // DisconnectActiveSessionsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c BastionHostsClient) DisconnectActiveSessionsCompleteMatchingPredicate(ctx context.Context, id BastionHostId, input SessionIds, predicate BastionSessionDeleteResultOperationPredicate) (result DisconnectActiveSessionsCompleteResult, err error) { - items := make([]BastionSessionDeleteResult, 0) +func (c BastionHostsClient) DisconnectActiveSessionsCompleteMatchingPredicate(ctx context.Context, id BastionHostId, input SessionIds, predicate BastionSessionStateOperationPredicate) (result DisconnectActiveSessionsCompleteResult, err error) { + items := make([]BastionSessionState, 0) resp, err := c.DisconnectActiveSessions(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_getactivesessions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_getactivesessions.go index 521be83f4a309..bc50f38fc506d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_getactivesessions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_getactivesessions.go @@ -18,12 +18,12 @@ type GetActiveSessionsOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *[]BastionActiveSessionListResult + Model *[]BastionActiveSession } type GetActiveSessionsCompleteResult struct { LatestHttpResponse *http.Response - Items []BastionActiveSessionListResult + Items []BastionActiveSession } // GetActiveSessions ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_getbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_getbastionshareablelink.go index 361f8e95efded..1d277c1e88ce4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_getbastionshareablelink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_getbastionshareablelink.go @@ -15,12 +15,12 @@ import ( type GetBastionShareableLinkOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]BastionShareableLinkListResult + Model *[]BastionShareableLink } type GetBastionShareableLinkCompleteResult struct { LatestHttpResponse *http.Response - Items []BastionShareableLinkListResult + Items []BastionShareableLink } // GetBastionShareableLink ... @@ -50,7 +50,7 @@ func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id Bast } var values struct { - Values *[]BastionShareableLinkListResult `json:"value"` + Values *[]BastionShareableLink `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id Bast // GetBastionShareableLinkComplete retrieves all the results into a single object func (c BastionHostsClient) GetBastionShareableLinkComplete(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (GetBastionShareableLinkCompleteResult, error) { - return c.GetBastionShareableLinkCompleteMatchingPredicate(ctx, id, input, BastionShareableLinkListResultOperationPredicate{}) + return c.GetBastionShareableLinkCompleteMatchingPredicate(ctx, id, input, BastionShareableLinkOperationPredicate{}) } // GetBastionShareableLinkCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c BastionHostsClient) GetBastionShareableLinkCompleteMatchingPredicate(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest, predicate BastionShareableLinkListResultOperationPredicate) (result GetBastionShareableLinkCompleteResult, err error) { - items := make([]BastionShareableLinkListResult, 0) +func (c BastionHostsClient) GetBastionShareableLinkCompleteMatchingPredicate(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest, predicate BastionShareableLinkOperationPredicate) (result GetBastionShareableLinkCompleteResult, err error) { + items := make([]BastionShareableLink, 0) resp, err := c.GetBastionShareableLink(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_putbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_putbastionshareablelink.go index 426b5e5ed0d76..5f6e7438551f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_putbastionshareablelink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/method_putbastionshareablelink.go @@ -18,12 +18,12 @@ type PutBastionShareableLinkOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *[]BastionShareableLinkListResult + Model *[]BastionShareableLink } type PutBastionShareableLinkCompleteResult struct { LatestHttpResponse *http.Response - Items []BastionShareableLinkListResult + Items []BastionShareableLink } // PutBastionShareableLink ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionactivesessionlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionactivesessionlistresult.go deleted file mode 100644 index 040f751576fc3..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionactivesessionlistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package bastionhosts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BastionActiveSessionListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]BastionActiveSession `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionsessiondeleteresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionsessiondeleteresult.go deleted file mode 100644 index 367468bd83017..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionsessiondeleteresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package bastionhosts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BastionSessionDeleteResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]BastionSessionState `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionshareablelinklistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionshareablelinklistresult.go deleted file mode 100644 index d526365477194..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/model_bastionshareablelinklistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package bastionhosts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BastionShareableLinkListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]BastionShareableLink `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/predicates.go index ce754ba4deb0b..3c3835a32d082 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionhosts/predicates.go @@ -3,13 +3,58 @@ package bastionhosts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type BastionActiveSessionListResultOperationPredicate struct { - NextLink *string +type BastionActiveSessionOperationPredicate struct { + ResourceType *string + SessionDurationInMins *float64 + SessionId *string + StartTime *interface{} + TargetHostName *string + TargetIPAddress *string + TargetResourceGroup *string + TargetResourceId *string + TargetSubscriptionId *string + UserName *string } -func (p BastionActiveSessionListResultOperationPredicate) Matches(input BastionActiveSessionListResult) bool { +func (p BastionActiveSessionOperationPredicate) Matches(input BastionActiveSession) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.ResourceType != nil && (input.ResourceType == nil || *p.ResourceType != *input.ResourceType) { + return false + } + + if p.SessionDurationInMins != nil && (input.SessionDurationInMins == nil || *p.SessionDurationInMins != *input.SessionDurationInMins) { + return false + } + + if p.SessionId != nil && (input.SessionId == nil || *p.SessionId != *input.SessionId) { + return false + } + + if p.StartTime != nil && (input.StartTime == nil || *p.StartTime != *input.StartTime) { + return false + } + + if p.TargetHostName != nil && (input.TargetHostName == nil || *p.TargetHostName != *input.TargetHostName) { + return false + } + + if p.TargetIPAddress != nil && (input.TargetIPAddress == nil || *p.TargetIPAddress != *input.TargetIPAddress) { + return false + } + + if p.TargetResourceGroup != nil && (input.TargetResourceGroup == nil || *p.TargetResourceGroup != *input.TargetResourceGroup) { + return false + } + + if p.TargetResourceId != nil && (input.TargetResourceId == nil || *p.TargetResourceId != *input.TargetResourceId) { + return false + } + + if p.TargetSubscriptionId != nil && (input.TargetSubscriptionId == nil || *p.TargetSubscriptionId != *input.TargetSubscriptionId) { + return false + } + + if p.UserName != nil && (input.UserName == nil || *p.UserName != *input.UserName) { return false } @@ -49,26 +94,46 @@ func (p BastionHostOperationPredicate) Matches(input BastionHost) bool { return true } -type BastionSessionDeleteResultOperationPredicate struct { - NextLink *string +type BastionSessionStateOperationPredicate struct { + Message *string + SessionId *string + State *string } -func (p BastionSessionDeleteResultOperationPredicate) Matches(input BastionSessionDeleteResult) bool { +func (p BastionSessionStateOperationPredicate) Matches(input BastionSessionState) bool { + + if p.Message != nil && (input.Message == nil || *p.Message != *input.Message) { + return false + } - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.SessionId != nil && (input.SessionId == nil || *p.SessionId != *input.SessionId) { + return false + } + + if p.State != nil && (input.State == nil || *p.State != *input.State) { return false } return true } -type BastionShareableLinkListResultOperationPredicate struct { - NextLink *string +type BastionShareableLinkOperationPredicate struct { + Bsl *string + CreatedAt *string + Message *string } -func (p BastionShareableLinkListResultOperationPredicate) Matches(input BastionShareableLinkListResult) bool { +func (p BastionShareableLinkOperationPredicate) Matches(input BastionShareableLink) bool { + + if p.Bsl != nil && (input.Bsl == nil || *p.Bsl != *input.Bsl) { + return false + } + + if p.CreatedAt != nil && (input.CreatedAt == nil || *p.CreatedAt != *input.CreatedAt) { + return false + } - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Message != nil && (input.Message == nil || *p.Message != *input.Message) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/method_getbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/method_getbastionshareablelink.go index 6c322a71e986e..689ab2d57fc52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/method_getbastionshareablelink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/method_getbastionshareablelink.go @@ -15,12 +15,12 @@ import ( type GetBastionShareableLinkOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]BastionShareableLinkListResult + Model *[]BastionShareableLink } type GetBastionShareableLinkCompleteResult struct { LatestHttpResponse *http.Response - Items []BastionShareableLinkListResult + Items []BastionShareableLink } // GetBastionShareableLink ... @@ -50,7 +50,7 @@ func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, } var values struct { - Values *[]BastionShareableLinkListResult `json:"value"` + Values *[]BastionShareableLink `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, // GetBastionShareableLinkComplete retrieves all the results into a single object func (c BastionShareableLinkClient) GetBastionShareableLinkComplete(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (GetBastionShareableLinkCompleteResult, error) { - return c.GetBastionShareableLinkCompleteMatchingPredicate(ctx, id, input, BastionShareableLinkListResultOperationPredicate{}) + return c.GetBastionShareableLinkCompleteMatchingPredicate(ctx, id, input, BastionShareableLinkOperationPredicate{}) } // GetBastionShareableLinkCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c BastionShareableLinkClient) GetBastionShareableLinkCompleteMatchingPredicate(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest, predicate BastionShareableLinkListResultOperationPredicate) (result GetBastionShareableLinkCompleteResult, err error) { - items := make([]BastionShareableLinkListResult, 0) +func (c BastionShareableLinkClient) GetBastionShareableLinkCompleteMatchingPredicate(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest, predicate BastionShareableLinkOperationPredicate) (result GetBastionShareableLinkCompleteResult, err error) { + items := make([]BastionShareableLink, 0) resp, err := c.GetBastionShareableLink(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/method_putbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/method_putbastionshareablelink.go index e1d10e6ed89a5..bf85b28ee631b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/method_putbastionshareablelink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/method_putbastionshareablelink.go @@ -18,12 +18,12 @@ type PutBastionShareableLinkOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *[]BastionShareableLinkListResult + Model *[]BastionShareableLink } type PutBastionShareableLinkCompleteResult struct { LatestHttpResponse *http.Response - Items []BastionShareableLinkListResult + Items []BastionShareableLink } // PutBastionShareableLink ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/model_bastionshareablelinklistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/model_bastionshareablelinklistresult.go deleted file mode 100644 index 63c56da1ac208..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/model_bastionshareablelinklistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package bastionshareablelink - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BastionShareableLinkListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]BastionShareableLink `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/predicates.go index d301a4812ab71..15f0709526291 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/bastionshareablelink/predicates.go @@ -3,13 +3,23 @@ package bastionshareablelink // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type BastionShareableLinkListResultOperationPredicate struct { - NextLink *string +type BastionShareableLinkOperationPredicate struct { + Bsl *string + CreatedAt *string + Message *string } -func (p BastionShareableLinkListResultOperationPredicate) Matches(input BastionShareableLinkListResult) bool { +func (p BastionShareableLinkOperationPredicate) Matches(input BastionShareableLink) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Bsl != nil && (input.Bsl == nil || *p.Bsl != *input.Bsl) { + return false + } + + if p.CreatedAt != nil && (input.CreatedAt == nil || *p.CreatedAt != *input.CreatedAt) { + return false + } + + if p.Message != nil && (input.Message == nil || *p.Message != *input.Message) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/README.md index 018f4eb6d5215..c6377a8210c01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/README.md @@ -26,7 +26,12 @@ client.Client.Authorizer = authorizer ctx := context.TODO() id := expressroutecircuitarptable.NewArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "arpTableValue") -if err := client.ExpressRouteCircuitsListArpTableThenPoll(ctx, id); err != nil { +// alternatively `client.ExpressRouteCircuitsListArpTable(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCircuitsListArpTableComplete(ctx, id) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go index f4fcf5e4935a4..6e9e9491ca82a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go @@ -18,7 +18,12 @@ type ExpressRouteCircuitsListArpTableOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *ExpressRouteCircuitsArpTableListResult + Model *[]ExpressRouteCircuitArpTable +} + +type ExpressRouteCircuitsListArpTableCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuitArpTable } // ExpressRouteCircuitsListArpTable ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/model_expressroutecircuitsarptablelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/model_expressroutecircuitsarptablelistresult.go deleted file mode 100644 index a6f3b3f86f5f8..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/model_expressroutecircuitsarptablelistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressroutecircuitarptable - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitsArpTableListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]ExpressRouteCircuitArpTable `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/predicates.go new file mode 100644 index 0000000000000..4143b82875f8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitarptable/predicates.go @@ -0,0 +1,32 @@ +package expressroutecircuitarptable + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitArpTableOperationPredicate struct { + Age *int64 + IPAddress *string + Interface *string + MacAddress *string +} + +func (p ExpressRouteCircuitArpTableOperationPredicate) Matches(input ExpressRouteCircuitArpTable) bool { + + if p.Age != nil && (input.Age == nil || *p.Age != *input.Age) { + return false + } + + if p.IPAddress != nil && (input.IPAddress == nil || *p.IPAddress != *input.IPAddress) { + return false + } + + if p.Interface != nil && (input.Interface == nil || *p.Interface != *input.Interface) { + return false + } + + if p.MacAddress != nil && (input.MacAddress == nil || *p.MacAddress != *input.MacAddress) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/README.md index 68b0a2453627a..d472d570ce116 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/README.md @@ -26,7 +26,12 @@ client.Client.Authorizer = authorizer ctx := context.TODO() id := expressroutecircuitroutestable.NewPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "routeTableValue") -if err := client.ExpressRouteCircuitsListRoutesTableThenPoll(ctx, id); err != nil { +// alternatively `client.ExpressRouteCircuitsListRoutesTable(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCircuitsListRoutesTableComplete(ctx, id) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go index 2a47c72ab7545..0d55eeb835362 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go @@ -18,7 +18,12 @@ type ExpressRouteCircuitsListRoutesTableOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *ExpressRouteCircuitsRoutesTableListResult + Model *[]ExpressRouteCircuitRoutesTable +} + +type ExpressRouteCircuitsListRoutesTableCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuitRoutesTable } // ExpressRouteCircuitsListRoutesTable ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/model_expressroutecircuitsroutestablelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/model_expressroutecircuitsroutestablelistresult.go deleted file mode 100644 index 7ff773de0b17c..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/model_expressroutecircuitsroutestablelistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressroutecircuitroutestable - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitsRoutesTableListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]ExpressRouteCircuitRoutesTable `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/predicates.go new file mode 100644 index 0000000000000..81d2980531034 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestable/predicates.go @@ -0,0 +1,37 @@ +package expressroutecircuitroutestable + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitRoutesTableOperationPredicate struct { + LocPrf *string + Network *string + NextHop *string + Path *string + Weight *int64 +} + +func (p ExpressRouteCircuitRoutesTableOperationPredicate) Matches(input ExpressRouteCircuitRoutesTable) bool { + + if p.LocPrf != nil && (input.LocPrf == nil || *p.LocPrf != *input.LocPrf) { + return false + } + + if p.Network != nil && (input.Network == nil || *p.Network != *input.Network) { + return false + } + + if p.NextHop != nil && (input.NextHop == nil || *p.NextHop != *input.NextHop) { + return false + } + + if p.Path != nil && (input.Path == nil || *p.Path != *input.Path) { + return false + } + + if p.Weight != nil && (input.Weight == nil || *p.Weight != *input.Weight) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/README.md index 55f5c8f4e82ad..1a3870ac01f64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/README.md @@ -26,7 +26,12 @@ client.Client.Authorizer = authorizer ctx := context.TODO() id := expressroutecircuitroutestablesummary.NewRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "routeTablesSummaryValue") -if err := client.ExpressRouteCircuitsListRoutesTableSummaryThenPoll(ctx, id); err != nil { +// alternatively `client.ExpressRouteCircuitsListRoutesTableSummary(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCircuitsListRoutesTableSummaryComplete(ctx, id) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go index b5f5dcefb387c..200e1b6b1e856 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go @@ -18,7 +18,12 @@ type ExpressRouteCircuitsListRoutesTableSummaryOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *ExpressRouteCircuitsRoutesTableSummaryListResult + Model *[]ExpressRouteCircuitRoutesTableSummary +} + +type ExpressRouteCircuitsListRoutesTableSummaryCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuitRoutesTableSummary } // ExpressRouteCircuitsListRoutesTableSummary ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/model_expressroutecircuitsroutestablesummarylistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/model_expressroutecircuitsroutestablesummarylistresult.go deleted file mode 100644 index 819e27f860b47..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/model_expressroutecircuitsroutestablesummarylistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressroutecircuitroutestablesummary - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitsRoutesTableSummaryListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]ExpressRouteCircuitRoutesTableSummary `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/predicates.go new file mode 100644 index 0000000000000..1d9991e4b0077 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecircuitroutestablesummary/predicates.go @@ -0,0 +1,37 @@ +package expressroutecircuitroutestablesummary + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitRoutesTableSummaryOperationPredicate struct { + As *int64 + Neighbor *string + StatePfxRcd *string + UpDown *string + V *int64 +} + +func (p ExpressRouteCircuitRoutesTableSummaryOperationPredicate) Matches(input ExpressRouteCircuitRoutesTableSummary) bool { + + if p.As != nil && (input.As == nil || *p.As != *input.As) { + return false + } + + if p.Neighbor != nil && (input.Neighbor == nil || *p.Neighbor != *input.Neighbor) { + return false + } + + if p.StatePfxRcd != nil && (input.StatePfxRcd == nil || *p.StatePfxRcd != *input.StatePfxRcd) { + return false + } + + if p.UpDown != nil && (input.UpDown == nil || *p.UpDown != *input.UpDown) { + return false + } + + if p.V != nil && (input.V == nil || *p.V != *input.V) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/README.md index 9044b687486da..2586a5023d4c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/README.md @@ -26,7 +26,12 @@ client.Client.Authorizer = authorizer ctx := context.TODO() id := expressroutecrossconnectionarptable.NewPeeringArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue", "arpTableValue") -if err := client.ExpressRouteCrossConnectionsListArpTableThenPoll(ctx, id); err != nil { +// alternatively `client.ExpressRouteCrossConnectionsListArpTable(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCrossConnectionsListArpTableComplete(ctx, id) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go index df9b8956dd510..93cb5d74c6140 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go @@ -18,7 +18,12 @@ type ExpressRouteCrossConnectionsListArpTableOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *ExpressRouteCircuitsArpTableListResult + Model *[]ExpressRouteCircuitArpTable +} + +type ExpressRouteCrossConnectionsListArpTableCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuitArpTable } // ExpressRouteCrossConnectionsListArpTable ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/model_expressroutecircuitsarptablelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/model_expressroutecircuitsarptablelistresult.go deleted file mode 100644 index 67147d0690bd5..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/model_expressroutecircuitsarptablelistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressroutecrossconnectionarptable - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitsArpTableListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]ExpressRouteCircuitArpTable `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/predicates.go new file mode 100644 index 0000000000000..75df45b22f969 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionarptable/predicates.go @@ -0,0 +1,32 @@ +package expressroutecrossconnectionarptable + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitArpTableOperationPredicate struct { + Age *int64 + IPAddress *string + Interface *string + MacAddress *string +} + +func (p ExpressRouteCircuitArpTableOperationPredicate) Matches(input ExpressRouteCircuitArpTable) bool { + + if p.Age != nil && (input.Age == nil || *p.Age != *input.Age) { + return false + } + + if p.IPAddress != nil && (input.IPAddress == nil || *p.IPAddress != *input.IPAddress) { + return false + } + + if p.Interface != nil && (input.Interface == nil || *p.Interface != *input.Interface) { + return false + } + + if p.MacAddress != nil && (input.MacAddress == nil || *p.MacAddress != *input.MacAddress) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/README.md index 30c9203af5737..119d84f6ea61b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/README.md @@ -26,7 +26,12 @@ client.Client.Authorizer = authorizer ctx := context.TODO() id := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue", "routeTableValue") -if err := client.ExpressRouteCrossConnectionsListRoutesTableThenPoll(ctx, id); err != nil { +// alternatively `client.ExpressRouteCrossConnectionsListRoutesTable(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCrossConnectionsListRoutesTableComplete(ctx, id) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go index ac9e91764e070..75e866bbea72a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go @@ -18,7 +18,12 @@ type ExpressRouteCrossConnectionsListRoutesTableOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *ExpressRouteCircuitsRoutesTableListResult + Model *[]ExpressRouteCircuitRoutesTable +} + +type ExpressRouteCrossConnectionsListRoutesTableCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuitRoutesTable } // ExpressRouteCrossConnectionsListRoutesTable ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/model_expressroutecircuitsroutestablelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/model_expressroutecircuitsroutestablelistresult.go deleted file mode 100644 index d42583463b3e2..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/model_expressroutecircuitsroutestablelistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressroutecrossconnectionroutetable - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitsRoutesTableListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]ExpressRouteCircuitRoutesTable `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/predicates.go new file mode 100644 index 0000000000000..2f1a6174bb433 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetable/predicates.go @@ -0,0 +1,37 @@ +package expressroutecrossconnectionroutetable + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitRoutesTableOperationPredicate struct { + LocPrf *string + Network *string + NextHop *string + Path *string + Weight *int64 +} + +func (p ExpressRouteCircuitRoutesTableOperationPredicate) Matches(input ExpressRouteCircuitRoutesTable) bool { + + if p.LocPrf != nil && (input.LocPrf == nil || *p.LocPrf != *input.LocPrf) { + return false + } + + if p.Network != nil && (input.Network == nil || *p.Network != *input.Network) { + return false + } + + if p.NextHop != nil && (input.NextHop == nil || *p.NextHop != *input.NextHop) { + return false + } + + if p.Path != nil && (input.Path == nil || *p.Path != *input.Path) { + return false + } + + if p.Weight != nil && (input.Weight == nil || *p.Weight != *input.Weight) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/README.md index e20f04edf3836..5d1cd0fd8635c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/README.md @@ -26,7 +26,12 @@ client.Client.Authorizer = authorizer ctx := context.TODO() id := expressroutecrossconnectionroutetablesummary.NewPeeringRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue", "routeTablesSummaryValue") -if err := client.ExpressRouteCrossConnectionsListRoutesTableSummaryThenPoll(ctx, id); err != nil { +// alternatively `client.ExpressRouteCrossConnectionsListRoutesTableSummary(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCrossConnectionsListRoutesTableSummaryComplete(ctx, id) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go index 43874ea0bb996..06c63e507a18b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go @@ -18,7 +18,12 @@ type ExpressRouteCrossConnectionsListRoutesTableSummaryOperationResponse struct Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *ExpressRouteCrossConnectionsRoutesTableSummaryListResult + Model *[]ExpressRouteCrossConnectionRoutesTableSummary +} + +type ExpressRouteCrossConnectionsListRoutesTableSummaryCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCrossConnectionRoutesTableSummary } // ExpressRouteCrossConnectionsListRoutesTableSummary ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionsroutestablesummarylistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionsroutestablesummarylistresult.go deleted file mode 100644 index 21d57c1911b7d..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionsroutestablesummarylistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressroutecrossconnectionroutetablesummary - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCrossConnectionsRoutesTableSummaryListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]ExpressRouteCrossConnectionRoutesTableSummary `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/predicates.go new file mode 100644 index 0000000000000..8399718cebc28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/expressroutecrossconnectionroutetablesummary/predicates.go @@ -0,0 +1,32 @@ +package expressroutecrossconnectionroutetablesummary + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCrossConnectionRoutesTableSummaryOperationPredicate struct { + Asn *int64 + Neighbor *string + StateOrPrefixesReceived *string + UpDown *string +} + +func (p ExpressRouteCrossConnectionRoutesTableSummaryOperationPredicate) Matches(input ExpressRouteCrossConnectionRoutesTableSummary) bool { + + if p.Asn != nil && (input.Asn == nil || *p.Asn != *input.Asn) { + return false + } + + if p.Neighbor != nil && (input.Neighbor == nil || *p.Neighbor != *input.Neighbor) { + return false + } + + if p.StateOrPrefixesReceived != nil && (input.StateOrPrefixesReceived == nil || *p.StateOrPrefixesReceived != *input.StateOrPrefixesReceived) { + return false + } + + if p.UpDown != nil && (input.UpDown == nil || *p.UpDown != *input.UpDown) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/README.md index 828cb5f9beb2a..800f70a343822 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/README.md @@ -88,9 +88,14 @@ if model := read.Model; model != nil { ctx := context.TODO() id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") -if err := client.GetEffectiveRouteTableThenPoll(ctx, id); err != nil { +// alternatively `client.GetEffectiveRouteTable(ctx, id)` can be used to do batched pagination +items, err := client.GetEffectiveRouteTableComplete(ctx, id) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` @@ -200,9 +205,14 @@ for _, item := range items { ctx := context.TODO() id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") -if err := client.ListEffectiveNetworkSecurityGroupsThenPoll(ctx, id); err != nil { +// alternatively `client.ListEffectiveNetworkSecurityGroups(ctx, id)` can be used to do batched pagination +items, err := client.ListEffectiveNetworkSecurityGroupsComplete(ctx, id) +if err != nil { // handle the error } +for _, item := range items { + // do something +} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/method_geteffectiveroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/method_geteffectiveroutetable.go index 02c2c417a3cf0..e64977d27350e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/method_geteffectiveroutetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/method_geteffectiveroutetable.go @@ -19,7 +19,12 @@ type GetEffectiveRouteTableOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *EffectiveRouteListResult + Model *[]EffectiveRoute +} + +type GetEffectiveRouteTableCompleteResult struct { + LatestHttpResponse *http.Response + Items []EffectiveRoute } // GetEffectiveRouteTable ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go index 19670227bf1a1..50661e6719451 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go @@ -19,7 +19,12 @@ type ListEffectiveNetworkSecurityGroupsOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *EffectiveNetworkSecurityGroupListResult + Model *[]EffectiveNetworkSecurityGroup +} + +type ListEffectiveNetworkSecurityGroupsCompleteResult struct { + LatestHttpResponse *http.Response + Items []EffectiveNetworkSecurityGroup } // ListEffectiveNetworkSecurityGroups ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/model_effectivenetworksecuritygrouplistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/model_effectivenetworksecuritygrouplistresult.go deleted file mode 100644 index b8111a10fffc6..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/model_effectivenetworksecuritygrouplistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EffectiveNetworkSecurityGroupListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]EffectiveNetworkSecurityGroup `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/model_effectiveroutelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/model_effectiveroutelistresult.go deleted file mode 100644 index a3a975a863669..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/model_effectiveroutelistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EffectiveRouteListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]EffectiveRoute `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/predicates.go index 1bdf1a16800f0..c58ed4a328b2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/networkinterfaces/predicates.go @@ -3,6 +3,32 @@ package networkinterfaces // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type EffectiveNetworkSecurityGroupOperationPredicate struct { +} + +func (p EffectiveNetworkSecurityGroupOperationPredicate) Matches(input EffectiveNetworkSecurityGroup) bool { + + return true +} + +type EffectiveRouteOperationPredicate struct { + DisableBgpRoutePropagation *bool + Name *string +} + +func (p EffectiveRouteOperationPredicate) Matches(input EffectiveRoute) bool { + + if p.DisableBgpRoutePropagation != nil && (input.DisableBgpRoutePropagation == nil || *p.DisableBgpRoutePropagation != *input.DisableBgpRoutePropagation) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + type LoadBalancerOperationPredicate struct { Etag *string Id *string diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go index 8e6bf7989a9da..c087295208674 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go @@ -19,12 +19,12 @@ type VirtualNetworksListDdosProtectionStatusOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *[]VirtualNetworkDdosProtectionStatusResult + Model *[]PublicIPDdosProtectionStatusResult } type VirtualNetworksListDdosProtectionStatusCompleteResult struct { LatestHttpResponse *http.Response - Items []VirtualNetworkDdosProtectionStatusResult + Items []PublicIPDdosProtectionStatusResult } type VirtualNetworksListDdosProtectionStatusOperationOptions struct { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/model_virtualnetworkddosprotectionstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/model_virtualnetworkddosprotectionstatusresult.go deleted file mode 100644 index dec4e865313a7..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/model_virtualnetworkddosprotectionstatusresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkDdosProtectionStatusResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]PublicIPDdosProtectionStatusResult `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/predicates.go index 4e467e7af4cbd..ae97638615421 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/virtualnetworks/predicates.go @@ -3,6 +3,29 @@ package virtualnetworks // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type PublicIPDdosProtectionStatusResultOperationPredicate struct { + DdosProtectionPlanId *string + PublicIPAddress *string + PublicIPAddressId *string +} + +func (p PublicIPDdosProtectionStatusResultOperationPredicate) Matches(input PublicIPDdosProtectionStatusResult) bool { + + if p.DdosProtectionPlanId != nil && (input.DdosProtectionPlanId == nil || *p.DdosProtectionPlanId != *input.DdosProtectionPlanId) { + return false + } + + if p.PublicIPAddress != nil && (input.PublicIPAddress == nil || *p.PublicIPAddress != *input.PublicIPAddress) { + return false + } + + if p.PublicIPAddressId != nil && (input.PublicIPAddressId == nil || *p.PublicIPAddressId != *input.PublicIPAddressId) { + return false + } + + return true +} + type ResourceNavigationLinkOperationPredicate struct { Etag *string Id *string @@ -92,19 +115,6 @@ func (p VirtualNetworkOperationPredicate) Matches(input VirtualNetwork) bool { return true } -type VirtualNetworkDdosProtectionStatusResultOperationPredicate struct { - NextLink *string -} - -func (p VirtualNetworkDdosProtectionStatusResultOperationPredicate) Matches(input VirtualNetworkDdosProtectionStatusResult) bool { - - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { - return false - } - - return true -} - type VirtualNetworkUsageOperationPredicate struct { CurrentValue *float64 Id *string diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listappservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listappservices.go index d60440e8cfa72..8200b38dd5695 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listappservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listappservices.go @@ -15,12 +15,12 @@ import ( type ListAppServicesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]AppServicesListResponse + Model *[]AppServiceInfo } type ListAppServicesCompleteResult struct { LatestHttpResponse *http.Response - Items []AppServicesListResponse + Items []AppServiceInfo } // ListAppServices ... @@ -50,7 +50,7 @@ func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId, input } var values struct { - Values *[]AppServicesListResponse `json:"value"` + Values *[]AppServiceInfo `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId, input // ListAppServicesComplete retrieves all the results into a single object func (c MonitorsClient) ListAppServicesComplete(ctx context.Context, id MonitorId, input AppServicesGetRequest) (ListAppServicesCompleteResult, error) { - return c.ListAppServicesCompleteMatchingPredicate(ctx, id, input, AppServicesListResponseOperationPredicate{}) + return c.ListAppServicesCompleteMatchingPredicate(ctx, id, input, AppServiceInfoOperationPredicate{}) } // ListAppServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c MonitorsClient) ListAppServicesCompleteMatchingPredicate(ctx context.Context, id MonitorId, input AppServicesGetRequest, predicate AppServicesListResponseOperationPredicate) (result ListAppServicesCompleteResult, err error) { - items := make([]AppServicesListResponse, 0) +func (c MonitorsClient) ListAppServicesCompleteMatchingPredicate(ctx context.Context, id MonitorId, input AppServicesGetRequest, predicate AppServiceInfoOperationPredicate) (result ListAppServicesCompleteResult, err error) { + items := make([]AppServiceInfo, 0) resp, err := c.ListAppServices(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listhosts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listhosts.go index 00865a8ef75b9..0c1dd3ac7d02b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listhosts.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listhosts.go @@ -15,12 +15,12 @@ import ( type ListHostsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]VMHostsListResponse + Model *[]VMInfo } type ListHostsCompleteResult struct { LatestHttpResponse *http.Response - Items []VMHostsListResponse + Items []VMInfo } // ListHosts ... @@ -50,7 +50,7 @@ func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId, input Hosts } var values struct { - Values *[]VMHostsListResponse `json:"value"` + Values *[]VMInfo `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId, input Hosts // ListHostsComplete retrieves all the results into a single object func (c MonitorsClient) ListHostsComplete(ctx context.Context, id MonitorId, input HostsGetRequest) (ListHostsCompleteResult, error) { - return c.ListHostsCompleteMatchingPredicate(ctx, id, input, VMHostsListResponseOperationPredicate{}) + return c.ListHostsCompleteMatchingPredicate(ctx, id, input, VMInfoOperationPredicate{}) } // ListHostsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c MonitorsClient) ListHostsCompleteMatchingPredicate(ctx context.Context, id MonitorId, input HostsGetRequest, predicate VMHostsListResponseOperationPredicate) (result ListHostsCompleteResult, err error) { - items := make([]VMHostsListResponse, 0) +func (c MonitorsClient) ListHostsCompleteMatchingPredicate(ctx context.Context, id MonitorId, input HostsGetRequest, predicate VMInfoOperationPredicate) (result ListHostsCompleteResult, err error) { + items := make([]VMInfo, 0) resp, err := c.ListHosts(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listmonitoredresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listmonitoredresources.go index f07487bed4f37..4013a474495cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listmonitoredresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_listmonitoredresources.go @@ -15,12 +15,12 @@ import ( type ListMonitoredResourcesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]MonitoredResourceListResponse + Model *[]MonitoredResource } type ListMonitoredResourcesCompleteResult struct { LatestHttpResponse *http.Response - Items []MonitoredResourceListResponse + Items []MonitoredResource } // ListMonitoredResources ... @@ -50,7 +50,7 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId } var values struct { - Values *[]MonitoredResourceListResponse `json:"value"` + Values *[]MonitoredResource `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId // ListMonitoredResourcesComplete retrieves all the results into a single object func (c MonitorsClient) ListMonitoredResourcesComplete(ctx context.Context, id MonitorId) (ListMonitoredResourcesCompleteResult, error) { - return c.ListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceListResponseOperationPredicate{}) + return c.ListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceOperationPredicate{}) } // ListMonitoredResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c MonitorsClient) ListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceListResponseOperationPredicate) (result ListMonitoredResourcesCompleteResult, err error) { - items := make([]MonitoredResourceListResponse, 0) +func (c MonitorsClient) ListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceOperationPredicate) (result ListMonitoredResourcesCompleteResult, err error) { + items := make([]MonitoredResource, 0) resp, err := c.ListMonitoredResources(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_appserviceslistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_appserviceslistresponse.go deleted file mode 100644 index 09f4d555ead6b..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_appserviceslistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package monitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AppServicesListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []AppServiceInfo `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_monitoredresourcelistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_monitoredresourcelistresponse.go deleted file mode 100644 index 021a5392972e6..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_monitoredresourcelistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package monitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type MonitoredResourceListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []MonitoredResource `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_vmhostslistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_vmhostslistresponse.go deleted file mode 100644 index a1ff50863b87d..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/model_vmhostslistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package monitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMHostsListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []VMInfo `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/predicates.go index 62276a50904d9..1d292bb5e549e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/predicates.go @@ -3,26 +3,46 @@ package monitors // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type AppServicesListResponseOperationPredicate struct { - NextLink *string +type AppServiceInfoOperationPredicate struct { + AgentStatus *string + AgentVersion *string + AzureResourceId *string } -func (p AppServicesListResponseOperationPredicate) Matches(input AppServicesListResponse) bool { +func (p AppServiceInfoOperationPredicate) Matches(input AppServiceInfo) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.AgentStatus != nil && (input.AgentStatus == nil || *p.AgentStatus != *input.AgentStatus) { + return false + } + + if p.AgentVersion != nil && (input.AgentVersion == nil || *p.AgentVersion != *input.AgentVersion) { + return false + } + + if p.AzureResourceId != nil && (input.AzureResourceId == nil || *p.AzureResourceId != *input.AzureResourceId) { return false } return true } -type MonitoredResourceListResponseOperationPredicate struct { - NextLink *string +type MonitoredResourceOperationPredicate struct { + Id *string + ReasonForLogsStatus *string + ReasonForMetricsStatus *string } -func (p MonitoredResourceListResponseOperationPredicate) Matches(input MonitoredResourceListResponse) bool { +func (p MonitoredResourceOperationPredicate) Matches(input MonitoredResource) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.ReasonForLogsStatus != nil && (input.ReasonForLogsStatus == nil || *p.ReasonForLogsStatus != *input.ReasonForLogsStatus) { + return false + } + + if p.ReasonForMetricsStatus != nil && (input.ReasonForMetricsStatus == nil || *p.ReasonForMetricsStatus != *input.ReasonForMetricsStatus) { return false } @@ -57,13 +77,23 @@ func (p NewRelicMonitorResourceOperationPredicate) Matches(input NewRelicMonitor return true } -type VMHostsListResponseOperationPredicate struct { - NextLink *string +type VMInfoOperationPredicate struct { + AgentStatus *string + AgentVersion *string + VMId *string } -func (p VMHostsListResponseOperationPredicate) Matches(input VMHostsListResponse) bool { +func (p VMInfoOperationPredicate) Matches(input VMInfo) bool { + + if p.AgentStatus != nil && (input.AgentStatus == nil || *p.AgentStatus != *input.AgentStatus) { + return false + } + + if p.AgentVersion != nil && (input.AgentVersion == nil || *p.AgentVersion != *input.AgentVersion) { + return false + } - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.VMId != nil && (input.VMId == nil || *p.VMId != *input.VMId) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go index 4384e141dc66c..2c6b7b7d68220 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go @@ -15,12 +15,12 @@ import ( type QueriesSearchOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]LogAnalyticsQueryPackQueryListResult + Model *[]LogAnalyticsQueryPackQuery } type QueriesSearchCompleteResult struct { LatestHttpResponse *http.Response - Items []LogAnalyticsQueryPackQueryListResult + Items []LogAnalyticsQueryPackQuery } type QueriesSearchOperationOptions struct { @@ -82,7 +82,7 @@ func (c QueryPackQueriesClient) QueriesSearch(ctx context.Context, id QueryPackI } var values struct { - Values *[]LogAnalyticsQueryPackQueryListResult `json:"value"` + Values *[]LogAnalyticsQueryPackQuery `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -95,12 +95,12 @@ func (c QueryPackQueriesClient) QueriesSearch(ctx context.Context, id QueryPackI // QueriesSearchComplete retrieves all the results into a single object func (c QueryPackQueriesClient) QueriesSearchComplete(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions) (QueriesSearchCompleteResult, error) { - return c.QueriesSearchCompleteMatchingPredicate(ctx, id, input, options, LogAnalyticsQueryPackQueryListResultOperationPredicate{}) + return c.QueriesSearchCompleteMatchingPredicate(ctx, id, input, options, LogAnalyticsQueryPackQueryOperationPredicate{}) } // QueriesSearchCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions, predicate LogAnalyticsQueryPackQueryListResultOperationPredicate) (result QueriesSearchCompleteResult, err error) { - items := make([]LogAnalyticsQueryPackQueryListResult, 0) +func (c QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions, predicate LogAnalyticsQueryPackQueryOperationPredicate) (result QueriesSearchCompleteResult, err error) { + items := make([]LogAnalyticsQueryPackQuery, 0) resp, err := c.QueriesSearch(ctx, id, input, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/model_loganalyticsquerypackquerylistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/model_loganalyticsquerypackquerylistresult.go deleted file mode 100644 index f66d06cc0daae..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/model_loganalyticsquerypackquerylistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package querypackqueries - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LogAnalyticsQueryPackQueryListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value []LogAnalyticsQueryPackQuery `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/predicates.go index 0970db8c9980b..38fda83f51a5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/predicates.go @@ -25,16 +25,3 @@ func (p LogAnalyticsQueryPackQueryOperationPredicate) Matches(input LogAnalytics return true } - -type LogAnalyticsQueryPackQueryListResultOperationPredicate struct { - NextLink *string -} - -func (p LogAnalyticsQueryPackQueryListResultOperationPredicate) Matches(input LogAnalyticsQueryPackQueryListResult) bool { - - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/method_spacecraftslistavailablecontacts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/method_spacecraftslistavailablecontacts.go index fe1ca8d51c947..f062347bb12b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/method_spacecraftslistavailablecontacts.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/method_spacecraftslistavailablecontacts.go @@ -18,12 +18,12 @@ type SpacecraftsListAvailableContactsOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *[]AvailableContactsListResult + Model *[]AvailableContacts } type SpacecraftsListAvailableContactsCompleteResult struct { LatestHttpResponse *http.Response - Items []AvailableContactsListResult + Items []AvailableContacts } // SpacecraftsListAvailableContacts ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/model_availablecontactslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/model_availablecontactslistresult.go deleted file mode 100644 index cea3e3e0290aa..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/model_availablecontactslistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package contact - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailableContactsListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]AvailableContacts `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/predicates.go index e320b483ae9ab..03e7171175f12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/predicates.go @@ -3,13 +3,13 @@ package contact // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type AvailableContactsListResultOperationPredicate struct { - NextLink *string +type AvailableContactsOperationPredicate struct { + GroundStationName *string } -func (p AvailableContactsListResultOperationPredicate) Matches(input AvailableContactsListResult) bool { +func (p AvailableContactsOperationPredicate) Matches(input AvailableContacts) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.GroundStationName != nil && (input.GroundStationName == nil || *p.GroundStationName != *input.GroundStationName) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/README.md index 95a66d468933b..f8603bc901e98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/README.md @@ -116,12 +116,13 @@ for _, item := range items { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListAdvancedSecurityObjects(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions()) +// alternatively `client.ListAdvancedSecurityObjects(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions())` can be used to do batched pagination +items, err := client.ListAdvancedSecurityObjectsComplete(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -132,12 +133,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListAppIds(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions()) +// alternatively `client.ListAppIds(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions())` can be used to do batched pagination +items, err := client.ListAppIdsComplete(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -148,12 +150,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListCountries(ctx, id, globalrulestack.DefaultListCountriesOperationOptions()) +// alternatively `client.ListCountries(ctx, id, globalrulestack.DefaultListCountriesOperationOptions())` can be used to do batched pagination +items, err := client.ListCountriesComplete(ctx, id, globalrulestack.DefaultListCountriesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -164,12 +167,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListFirewalls(ctx, id) +// alternatively `client.ListFirewalls(ctx, id)` can be used to do batched pagination +items, err := client.ListFirewallsComplete(ctx, id) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -180,12 +184,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListPredefinedUrlCategories(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions()) +// alternatively `client.ListPredefinedUrlCategories(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions())` can be used to do batched pagination +items, err := client.ListPredefinedUrlCategoriesComplete(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -196,12 +201,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListSecurityServices(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions()) +// alternatively `client.ListSecurityServices(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions())` can be used to do batched pagination +items, err := client.ListSecurityServicesComplete(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go index b12b091468ac0..ce0529a58851d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go @@ -15,7 +15,12 @@ import ( type ListAdvancedSecurityObjectsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *AdvSecurityObjectListResponse + Model *[]AdvSecurityObjectModel +} + +type ListAdvancedSecurityObjectsCompleteResult struct { + LatestHttpResponse *http.Response + Items []AdvSecurityObjectModel } type ListAdvancedSecurityObjectsOperationOptions struct { @@ -71,7 +76,7 @@ func (c GlobalRulestackClient) ListAdvancedSecurityObjects(ctx context.Context, } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -80,12 +85,43 @@ func (c GlobalRulestackClient) ListAdvancedSecurityObjects(ctx context.Context, return } - var model AdvSecurityObjectListResponse - result.Model = &model + var values struct { + Values *[]AdvSecurityObjectModel `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListAdvancedSecurityObjectsComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListAdvancedSecurityObjectsComplete(ctx context.Context, id GlobalRulestackId, options ListAdvancedSecurityObjectsOperationOptions) (ListAdvancedSecurityObjectsCompleteResult, error) { + return c.ListAdvancedSecurityObjectsCompleteMatchingPredicate(ctx, id, options, AdvSecurityObjectModelOperationPredicate{}) +} + +// ListAdvancedSecurityObjectsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GlobalRulestackClient) ListAdvancedSecurityObjectsCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, options ListAdvancedSecurityObjectsOperationOptions, predicate AdvSecurityObjectModelOperationPredicate) (result ListAdvancedSecurityObjectsCompleteResult, err error) { + items := make([]AdvSecurityObjectModel, 0) + + resp, err := c.ListAdvancedSecurityObjects(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListAdvancedSecurityObjectsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go index 7022114a714bb..e30c1a901ffb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go @@ -15,7 +15,12 @@ import ( type ListAppIdsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ListAppIdResponse + Model *[]string +} + +type ListAppIdsCompleteResult struct { + LatestHttpResponse *http.Response + Items []string } type ListAppIdsOperationOptions struct { @@ -75,7 +80,7 @@ func (c GlobalRulestackClient) ListAppIds(ctx context.Context, id GlobalRulestac } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -84,12 +89,36 @@ func (c GlobalRulestackClient) ListAppIds(ctx context.Context, id GlobalRulestac return } - var model ListAppIdResponse - result.Model = &model + var values struct { + Values *[]string `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListAppIdsComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListAppIdsComplete(ctx context.Context, id GlobalRulestackId, options ListAppIdsOperationOptions) (result ListAppIdsCompleteResult, err error) { + items := make([]string, 0) + + resp, err := c.ListAppIds(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + items = append(items, v) + } + } + result = ListAppIdsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go index b5f21c0364923..919c25a072217 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go @@ -15,7 +15,12 @@ import ( type ListCountriesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *CountriesResponse + Model *[]Country +} + +type ListCountriesCompleteResult struct { + LatestHttpResponse *http.Response + Items []Country } type ListCountriesOperationOptions struct { @@ -67,7 +72,7 @@ func (c GlobalRulestackClient) ListCountries(ctx context.Context, id GlobalRules } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -76,12 +81,43 @@ func (c GlobalRulestackClient) ListCountries(ctx context.Context, id GlobalRules return } - var model CountriesResponse - result.Model = &model + var values struct { + Values *[]Country `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListCountriesComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListCountriesComplete(ctx context.Context, id GlobalRulestackId, options ListCountriesOperationOptions) (ListCountriesCompleteResult, error) { + return c.ListCountriesCompleteMatchingPredicate(ctx, id, options, CountryOperationPredicate{}) +} + +// ListCountriesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GlobalRulestackClient) ListCountriesCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, options ListCountriesOperationOptions, predicate CountryOperationPredicate) (result ListCountriesCompleteResult, err error) { + items := make([]Country, 0) + + resp, err := c.ListCountries(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListCountriesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listfirewalls.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listfirewalls.go index 2047ead29e583..da258ebabca82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listfirewalls.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listfirewalls.go @@ -15,7 +15,12 @@ import ( type ListFirewallsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ListFirewallsResponse + Model *[]string +} + +type ListFirewallsCompleteResult struct { + LatestHttpResponse *http.Response + Items []string } // ListFirewalls ... @@ -35,7 +40,7 @@ func (c GlobalRulestackClient) ListFirewalls(ctx context.Context, id GlobalRules } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -44,12 +49,36 @@ func (c GlobalRulestackClient) ListFirewalls(ctx context.Context, id GlobalRules return } - var model ListFirewallsResponse - result.Model = &model + var values struct { + Values *[]string `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListFirewallsComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListFirewallsComplete(ctx context.Context, id GlobalRulestackId) (result ListFirewallsCompleteResult, err error) { + items := make([]string, 0) + + resp, err := c.ListFirewalls(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + items = append(items, v) + } + } + result = ListFirewallsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go index 5c71dce8d3b99..45f47cf3d4ea6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go @@ -15,7 +15,12 @@ import ( type ListPredefinedUrlCategoriesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *PredefinedUrlCategoriesResponse + Model *[]PredefinedUrlCategory +} + +type ListPredefinedUrlCategoriesCompleteResult struct { + LatestHttpResponse *http.Response + Items []PredefinedUrlCategory } type ListPredefinedUrlCategoriesOperationOptions struct { @@ -67,7 +72,7 @@ func (c GlobalRulestackClient) ListPredefinedUrlCategories(ctx context.Context, } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -76,12 +81,43 @@ func (c GlobalRulestackClient) ListPredefinedUrlCategories(ctx context.Context, return } - var model PredefinedUrlCategoriesResponse - result.Model = &model + var values struct { + Values *[]PredefinedUrlCategory `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListPredefinedUrlCategoriesComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListPredefinedUrlCategoriesComplete(ctx context.Context, id GlobalRulestackId, options ListPredefinedUrlCategoriesOperationOptions) (ListPredefinedUrlCategoriesCompleteResult, error) { + return c.ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx, id, options, PredefinedUrlCategoryOperationPredicate{}) +} + +// ListPredefinedUrlCategoriesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GlobalRulestackClient) ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, options ListPredefinedUrlCategoriesOperationOptions, predicate PredefinedUrlCategoryOperationPredicate) (result ListPredefinedUrlCategoriesCompleteResult, err error) { + items := make([]PredefinedUrlCategory, 0) + + resp, err := c.ListPredefinedUrlCategories(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListPredefinedUrlCategoriesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go index cc474d0ea89ea..d1f16b56ace25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go @@ -15,7 +15,12 @@ import ( type ListSecurityServicesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *SecurityServicesResponse + Model *[]SecurityServicesTypeList +} + +type ListSecurityServicesCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityServicesTypeList } type ListSecurityServicesOperationOptions struct { @@ -71,7 +76,7 @@ func (c GlobalRulestackClient) ListSecurityServices(ctx context.Context, id Glob } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -80,12 +85,43 @@ func (c GlobalRulestackClient) ListSecurityServices(ctx context.Context, id Glob return } - var model SecurityServicesResponse - result.Model = &model + var values struct { + Values *[]SecurityServicesTypeList `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListSecurityServicesComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListSecurityServicesComplete(ctx context.Context, id GlobalRulestackId, options ListSecurityServicesOperationOptions) (ListSecurityServicesCompleteResult, error) { + return c.ListSecurityServicesCompleteMatchingPredicate(ctx, id, options, SecurityServicesTypeListOperationPredicate{}) +} + +// ListSecurityServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GlobalRulestackClient) ListSecurityServicesCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, options ListSecurityServicesOperationOptions, predicate SecurityServicesTypeListOperationPredicate) (result ListSecurityServicesCompleteResult, err error) { + items := make([]SecurityServicesTypeList, 0) + + resp, err := c.ListSecurityServices(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListSecurityServicesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_advsecurityobjectlistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_advsecurityobjectlistresponse.go deleted file mode 100644 index d347933629098..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_advsecurityobjectlistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdvSecurityObjectListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value AdvSecurityObjectModel `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_countriesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_countriesresponse.go deleted file mode 100644 index bbba6198fde10..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_countriesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CountriesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []Country `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_listappidresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_listappidresponse.go deleted file mode 100644 index 8108dc1d6e893..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_listappidresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAppIdResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_listfirewallsresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_listfirewallsresponse.go deleted file mode 100644 index 834bc924529b0..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_listfirewallsresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListFirewallsResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_predefinedurlcategoriesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_predefinedurlcategoriesresponse.go deleted file mode 100644 index 6019172078d86..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_predefinedurlcategoriesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PredefinedUrlCategoriesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []PredefinedUrlCategory `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_securityservicesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_securityservicesresponse.go deleted file mode 100644 index eba4c8665450e..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/model_securityservicesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityServicesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value SecurityServicesTypeList `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/predicates.go index 4def7f37ff961..7d929b1268a16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/predicates.go @@ -3,6 +3,37 @@ package globalrulestack // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type AdvSecurityObjectModelOperationPredicate struct { + Type *string +} + +func (p AdvSecurityObjectModelOperationPredicate) Matches(input AdvSecurityObjectModel) bool { + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type CountryOperationPredicate struct { + Code *string + Description *string +} + +func (p CountryOperationPredicate) Matches(input Country) bool { + + if p.Code != nil && *p.Code != input.Code { + return false + } + + if p.Description != nil && (input.Description == nil || *p.Description != *input.Description) { + return false + } + + return true +} + type GlobalRulestackResourceOperationPredicate struct { Id *string Location *string @@ -30,3 +61,34 @@ func (p GlobalRulestackResourceOperationPredicate) Matches(input GlobalRulestack return true } + +type PredefinedUrlCategoryOperationPredicate struct { + Action *string + Name *string +} + +func (p PredefinedUrlCategoryOperationPredicate) Matches(input PredefinedUrlCategory) bool { + + if p.Action != nil && *p.Action != input.Action { + return false + } + + if p.Name != nil && *p.Name != input.Name { + return false + } + + return true +} + +type SecurityServicesTypeListOperationPredicate struct { + Type *string +} + +func (p SecurityServicesTypeListOperationPredicate) Matches(input SecurityServicesTypeList) bool { + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md index cdaf397cf29ba..04e98f282e2b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md @@ -116,12 +116,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListAdvancedSecurityObjects(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions()) +// alternatively `client.ListAdvancedSecurityObjects(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions())` can be used to do batched pagination +items, err := client.ListAdvancedSecurityObjectsComplete(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -132,12 +133,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListAppIds(ctx, id, localrulestacks.DefaultListAppIdsOperationOptions()) +// alternatively `client.ListAppIds(ctx, id, localrulestacks.DefaultListAppIdsOperationOptions())` can be used to do batched pagination +items, err := client.ListAppIdsComplete(ctx, id, localrulestacks.DefaultListAppIdsOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -182,12 +184,13 @@ for _, item := range items { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListCountries(ctx, id, localrulestacks.DefaultListCountriesOperationOptions()) +// alternatively `client.ListCountries(ctx, id, localrulestacks.DefaultListCountriesOperationOptions())` can be used to do batched pagination +items, err := client.ListCountriesComplete(ctx, id, localrulestacks.DefaultListCountriesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -198,12 +201,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListFirewalls(ctx, id) +// alternatively `client.ListFirewalls(ctx, id)` can be used to do batched pagination +items, err := client.ListFirewallsComplete(ctx, id) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -214,12 +218,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListPredefinedUrlCategories(ctx, id, localrulestacks.DefaultListPredefinedUrlCategoriesOperationOptions()) +// alternatively `client.ListPredefinedUrlCategories(ctx, id, localrulestacks.DefaultListPredefinedUrlCategoriesOperationOptions())` can be used to do batched pagination +items, err := client.ListPredefinedUrlCategoriesComplete(ctx, id, localrulestacks.DefaultListPredefinedUrlCategoriesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -230,12 +235,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListSecurityServices(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions()) +// alternatively `client.ListSecurityServices(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions())` can be used to do batched pagination +items, err := client.ListSecurityServicesComplete(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go index d685c0fd0f060..dcbd69ff588dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go @@ -15,7 +15,12 @@ import ( type ListAdvancedSecurityObjectsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *AdvSecurityObjectListResponse + Model *[]AdvSecurityObjectModel +} + +type ListAdvancedSecurityObjectsCompleteResult struct { + LatestHttpResponse *http.Response + Items []AdvSecurityObjectModel } type ListAdvancedSecurityObjectsOperationOptions struct { @@ -71,7 +76,7 @@ func (c LocalRulestacksClient) ListAdvancedSecurityObjects(ctx context.Context, } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -80,12 +85,43 @@ func (c LocalRulestacksClient) ListAdvancedSecurityObjects(ctx context.Context, return } - var model AdvSecurityObjectListResponse - result.Model = &model + var values struct { + Values *[]AdvSecurityObjectModel `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListAdvancedSecurityObjectsComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListAdvancedSecurityObjectsComplete(ctx context.Context, id LocalRulestackId, options ListAdvancedSecurityObjectsOperationOptions) (ListAdvancedSecurityObjectsCompleteResult, error) { + return c.ListAdvancedSecurityObjectsCompleteMatchingPredicate(ctx, id, options, AdvSecurityObjectModelOperationPredicate{}) +} + +// ListAdvancedSecurityObjectsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalRulestacksClient) ListAdvancedSecurityObjectsCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListAdvancedSecurityObjectsOperationOptions, predicate AdvSecurityObjectModelOperationPredicate) (result ListAdvancedSecurityObjectsCompleteResult, err error) { + items := make([]AdvSecurityObjectModel, 0) + + resp, err := c.ListAdvancedSecurityObjects(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListAdvancedSecurityObjectsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go index 7ec3529e42124..40184fe35aa08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go @@ -15,7 +15,12 @@ import ( type ListAppIdsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ListAppIdResponse + Model *[]string +} + +type ListAppIdsCompleteResult struct { + LatestHttpResponse *http.Response + Items []string } type ListAppIdsOperationOptions struct { @@ -75,7 +80,7 @@ func (c LocalRulestacksClient) ListAppIds(ctx context.Context, id LocalRulestack } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -84,12 +89,36 @@ func (c LocalRulestacksClient) ListAppIds(ctx context.Context, id LocalRulestack return } - var model ListAppIdResponse - result.Model = &model + var values struct { + Values *[]string `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListAppIdsComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListAppIdsComplete(ctx context.Context, id LocalRulestackId, options ListAppIdsOperationOptions) (result ListAppIdsCompleteResult, err error) { + items := make([]string, 0) + + resp, err := c.ListAppIds(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + items = append(items, v) + } + } + result = ListAppIdsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go index 392a4e379fdbb..e6d06792a3f31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go @@ -15,7 +15,12 @@ import ( type ListCountriesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *CountriesResponse + Model *[]Country +} + +type ListCountriesCompleteResult struct { + LatestHttpResponse *http.Response + Items []Country } type ListCountriesOperationOptions struct { @@ -67,7 +72,7 @@ func (c LocalRulestacksClient) ListCountries(ctx context.Context, id LocalRulest } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -76,12 +81,43 @@ func (c LocalRulestacksClient) ListCountries(ctx context.Context, id LocalRulest return } - var model CountriesResponse - result.Model = &model + var values struct { + Values *[]Country `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListCountriesComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListCountriesComplete(ctx context.Context, id LocalRulestackId, options ListCountriesOperationOptions) (ListCountriesCompleteResult, error) { + return c.ListCountriesCompleteMatchingPredicate(ctx, id, options, CountryOperationPredicate{}) +} + +// ListCountriesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalRulestacksClient) ListCountriesCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListCountriesOperationOptions, predicate CountryOperationPredicate) (result ListCountriesCompleteResult, err error) { + items := make([]Country, 0) + + resp, err := c.ListCountries(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListCountriesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listfirewalls.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listfirewalls.go index 6fb93d86fb06c..510f5a7de867a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listfirewalls.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listfirewalls.go @@ -15,7 +15,12 @@ import ( type ListFirewallsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ListFirewallsResponse + Model *[]string +} + +type ListFirewallsCompleteResult struct { + LatestHttpResponse *http.Response + Items []string } // ListFirewalls ... @@ -35,7 +40,7 @@ func (c LocalRulestacksClient) ListFirewalls(ctx context.Context, id LocalRulest } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -44,12 +49,36 @@ func (c LocalRulestacksClient) ListFirewalls(ctx context.Context, id LocalRulest return } - var model ListFirewallsResponse - result.Model = &model + var values struct { + Values *[]string `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListFirewallsComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListFirewallsComplete(ctx context.Context, id LocalRulestackId) (result ListFirewallsCompleteResult, err error) { + items := make([]string, 0) + + resp, err := c.ListFirewalls(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + items = append(items, v) + } + } + result = ListFirewallsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go index ef710ee1585b3..4382b0e2c420c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go @@ -15,7 +15,12 @@ import ( type ListPredefinedUrlCategoriesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *PredefinedUrlCategoriesResponse + Model *[]PredefinedUrlCategory +} + +type ListPredefinedUrlCategoriesCompleteResult struct { + LatestHttpResponse *http.Response + Items []PredefinedUrlCategory } type ListPredefinedUrlCategoriesOperationOptions struct { @@ -67,7 +72,7 @@ func (c LocalRulestacksClient) ListPredefinedUrlCategories(ctx context.Context, } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -76,12 +81,43 @@ func (c LocalRulestacksClient) ListPredefinedUrlCategories(ctx context.Context, return } - var model PredefinedUrlCategoriesResponse - result.Model = &model + var values struct { + Values *[]PredefinedUrlCategory `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListPredefinedUrlCategoriesComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListPredefinedUrlCategoriesComplete(ctx context.Context, id LocalRulestackId, options ListPredefinedUrlCategoriesOperationOptions) (ListPredefinedUrlCategoriesCompleteResult, error) { + return c.ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx, id, options, PredefinedUrlCategoryOperationPredicate{}) +} + +// ListPredefinedUrlCategoriesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalRulestacksClient) ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListPredefinedUrlCategoriesOperationOptions, predicate PredefinedUrlCategoryOperationPredicate) (result ListPredefinedUrlCategoriesCompleteResult, err error) { + items := make([]PredefinedUrlCategory, 0) + + resp, err := c.ListPredefinedUrlCategories(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListPredefinedUrlCategoriesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go index ff27121983ab9..2406a80dbf315 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go @@ -15,7 +15,12 @@ import ( type ListSecurityServicesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *SecurityServicesResponse + Model *[]SecurityServicesTypeList +} + +type ListSecurityServicesCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityServicesTypeList } type ListSecurityServicesOperationOptions struct { @@ -71,7 +76,7 @@ func (c LocalRulestacksClient) ListSecurityServices(ctx context.Context, id Loca } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -80,12 +85,43 @@ func (c LocalRulestacksClient) ListSecurityServices(ctx context.Context, id Loca return } - var model SecurityServicesResponse - result.Model = &model + var values struct { + Values *[]SecurityServicesTypeList `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListSecurityServicesComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListSecurityServicesComplete(ctx context.Context, id LocalRulestackId, options ListSecurityServicesOperationOptions) (ListSecurityServicesCompleteResult, error) { + return c.ListSecurityServicesCompleteMatchingPredicate(ctx, id, options, SecurityServicesTypeListOperationPredicate{}) +} + +// ListSecurityServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalRulestacksClient) ListSecurityServicesCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListSecurityServicesOperationOptions, predicate SecurityServicesTypeListOperationPredicate) (result ListSecurityServicesCompleteResult, err error) { + items := make([]SecurityServicesTypeList, 0) + + resp, err := c.ListSecurityServices(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListSecurityServicesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_advsecurityobjectlistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_advsecurityobjectlistresponse.go deleted file mode 100644 index 7083081ce6a87..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_advsecurityobjectlistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdvSecurityObjectListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value AdvSecurityObjectModel `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_countriesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_countriesresponse.go deleted file mode 100644 index 999b9369521b1..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_countriesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CountriesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []Country `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_listappidresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_listappidresponse.go deleted file mode 100644 index ecd57332236ea..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_listappidresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAppIdResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_listfirewallsresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_listfirewallsresponse.go deleted file mode 100644 index 20317400492a5..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_listfirewallsresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListFirewallsResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_predefinedurlcategoriesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_predefinedurlcategoriesresponse.go deleted file mode 100644 index 431ded3781f82..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_predefinedurlcategoriesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PredefinedUrlCategoriesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []PredefinedUrlCategory `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_securityservicesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_securityservicesresponse.go deleted file mode 100644 index f5518fa025275..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/model_securityservicesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityServicesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value SecurityServicesTypeList `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/predicates.go index cd3ed0fbd130c..82fa87587c539 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/predicates.go @@ -3,6 +3,37 @@ package localrulestacks // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type AdvSecurityObjectModelOperationPredicate struct { + Type *string +} + +func (p AdvSecurityObjectModelOperationPredicate) Matches(input AdvSecurityObjectModel) bool { + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type CountryOperationPredicate struct { + Code *string + Description *string +} + +func (p CountryOperationPredicate) Matches(input Country) bool { + + if p.Code != nil && *p.Code != input.Code { + return false + } + + if p.Description != nil && (input.Description == nil || *p.Description != *input.Description) { + return false + } + + return true +} + type LocalRulestackResourceOperationPredicate struct { Id *string Location *string @@ -30,3 +61,34 @@ func (p LocalRulestackResourceOperationPredicate) Matches(input LocalRulestackRe return true } + +type PredefinedUrlCategoryOperationPredicate struct { + Action *string + Name *string +} + +func (p PredefinedUrlCategoryOperationPredicate) Matches(input PredefinedUrlCategory) bool { + + if p.Action != nil && *p.Action != input.Action { + return false + } + + if p.Name != nil && *p.Name != input.Name { + return false + } + + return true +} + +type SecurityServicesTypeListOperationPredicate struct { + Type *string +} + +func (p SecurityServicesTypeListOperationPredicate) Matches(input SecurityServicesTypeList) bool { + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/README.md index 6726672781ea3..46abea79046fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/README.md @@ -116,12 +116,13 @@ for _, item := range items { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListAdvancedSecurityObjects(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions()) +// alternatively `client.ListAdvancedSecurityObjects(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions())` can be used to do batched pagination +items, err := client.ListAdvancedSecurityObjectsComplete(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -132,12 +133,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListAppIds(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions()) +// alternatively `client.ListAppIds(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions())` can be used to do batched pagination +items, err := client.ListAppIdsComplete(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -148,12 +150,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListCountries(ctx, id, globalrulestack.DefaultListCountriesOperationOptions()) +// alternatively `client.ListCountries(ctx, id, globalrulestack.DefaultListCountriesOperationOptions())` can be used to do batched pagination +items, err := client.ListCountriesComplete(ctx, id, globalrulestack.DefaultListCountriesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -164,12 +167,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListFirewalls(ctx, id) +// alternatively `client.ListFirewalls(ctx, id)` can be used to do batched pagination +items, err := client.ListFirewallsComplete(ctx, id) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -180,12 +184,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListPredefinedUrlCategories(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions()) +// alternatively `client.ListPredefinedUrlCategories(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions())` can be used to do batched pagination +items, err := client.ListPredefinedUrlCategoriesComplete(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -196,12 +201,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") -read, err := client.ListSecurityServices(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions()) +// alternatively `client.ListSecurityServices(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions())` can be used to do batched pagination +items, err := client.ListSecurityServicesComplete(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go index b12b091468ac0..ce0529a58851d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go @@ -15,7 +15,12 @@ import ( type ListAdvancedSecurityObjectsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *AdvSecurityObjectListResponse + Model *[]AdvSecurityObjectModel +} + +type ListAdvancedSecurityObjectsCompleteResult struct { + LatestHttpResponse *http.Response + Items []AdvSecurityObjectModel } type ListAdvancedSecurityObjectsOperationOptions struct { @@ -71,7 +76,7 @@ func (c GlobalRulestackClient) ListAdvancedSecurityObjects(ctx context.Context, } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -80,12 +85,43 @@ func (c GlobalRulestackClient) ListAdvancedSecurityObjects(ctx context.Context, return } - var model AdvSecurityObjectListResponse - result.Model = &model + var values struct { + Values *[]AdvSecurityObjectModel `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListAdvancedSecurityObjectsComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListAdvancedSecurityObjectsComplete(ctx context.Context, id GlobalRulestackId, options ListAdvancedSecurityObjectsOperationOptions) (ListAdvancedSecurityObjectsCompleteResult, error) { + return c.ListAdvancedSecurityObjectsCompleteMatchingPredicate(ctx, id, options, AdvSecurityObjectModelOperationPredicate{}) +} + +// ListAdvancedSecurityObjectsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GlobalRulestackClient) ListAdvancedSecurityObjectsCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, options ListAdvancedSecurityObjectsOperationOptions, predicate AdvSecurityObjectModelOperationPredicate) (result ListAdvancedSecurityObjectsCompleteResult, err error) { + items := make([]AdvSecurityObjectModel, 0) + + resp, err := c.ListAdvancedSecurityObjects(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListAdvancedSecurityObjectsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go index 7022114a714bb..e30c1a901ffb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go @@ -15,7 +15,12 @@ import ( type ListAppIdsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ListAppIdResponse + Model *[]string +} + +type ListAppIdsCompleteResult struct { + LatestHttpResponse *http.Response + Items []string } type ListAppIdsOperationOptions struct { @@ -75,7 +80,7 @@ func (c GlobalRulestackClient) ListAppIds(ctx context.Context, id GlobalRulestac } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -84,12 +89,36 @@ func (c GlobalRulestackClient) ListAppIds(ctx context.Context, id GlobalRulestac return } - var model ListAppIdResponse - result.Model = &model + var values struct { + Values *[]string `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListAppIdsComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListAppIdsComplete(ctx context.Context, id GlobalRulestackId, options ListAppIdsOperationOptions) (result ListAppIdsCompleteResult, err error) { + items := make([]string, 0) + + resp, err := c.ListAppIds(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + items = append(items, v) + } + } + result = ListAppIdsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go index b5f21c0364923..919c25a072217 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go @@ -15,7 +15,12 @@ import ( type ListCountriesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *CountriesResponse + Model *[]Country +} + +type ListCountriesCompleteResult struct { + LatestHttpResponse *http.Response + Items []Country } type ListCountriesOperationOptions struct { @@ -67,7 +72,7 @@ func (c GlobalRulestackClient) ListCountries(ctx context.Context, id GlobalRules } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -76,12 +81,43 @@ func (c GlobalRulestackClient) ListCountries(ctx context.Context, id GlobalRules return } - var model CountriesResponse - result.Model = &model + var values struct { + Values *[]Country `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListCountriesComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListCountriesComplete(ctx context.Context, id GlobalRulestackId, options ListCountriesOperationOptions) (ListCountriesCompleteResult, error) { + return c.ListCountriesCompleteMatchingPredicate(ctx, id, options, CountryOperationPredicate{}) +} + +// ListCountriesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GlobalRulestackClient) ListCountriesCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, options ListCountriesOperationOptions, predicate CountryOperationPredicate) (result ListCountriesCompleteResult, err error) { + items := make([]Country, 0) + + resp, err := c.ListCountries(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListCountriesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listfirewalls.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listfirewalls.go index 2047ead29e583..da258ebabca82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listfirewalls.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listfirewalls.go @@ -15,7 +15,12 @@ import ( type ListFirewallsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ListFirewallsResponse + Model *[]string +} + +type ListFirewallsCompleteResult struct { + LatestHttpResponse *http.Response + Items []string } // ListFirewalls ... @@ -35,7 +40,7 @@ func (c GlobalRulestackClient) ListFirewalls(ctx context.Context, id GlobalRules } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -44,12 +49,36 @@ func (c GlobalRulestackClient) ListFirewalls(ctx context.Context, id GlobalRules return } - var model ListFirewallsResponse - result.Model = &model + var values struct { + Values *[]string `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListFirewallsComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListFirewallsComplete(ctx context.Context, id GlobalRulestackId) (result ListFirewallsCompleteResult, err error) { + items := make([]string, 0) + + resp, err := c.ListFirewalls(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + items = append(items, v) + } + } + result = ListFirewallsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go index 5c71dce8d3b99..45f47cf3d4ea6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go @@ -15,7 +15,12 @@ import ( type ListPredefinedUrlCategoriesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *PredefinedUrlCategoriesResponse + Model *[]PredefinedUrlCategory +} + +type ListPredefinedUrlCategoriesCompleteResult struct { + LatestHttpResponse *http.Response + Items []PredefinedUrlCategory } type ListPredefinedUrlCategoriesOperationOptions struct { @@ -67,7 +72,7 @@ func (c GlobalRulestackClient) ListPredefinedUrlCategories(ctx context.Context, } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -76,12 +81,43 @@ func (c GlobalRulestackClient) ListPredefinedUrlCategories(ctx context.Context, return } - var model PredefinedUrlCategoriesResponse - result.Model = &model + var values struct { + Values *[]PredefinedUrlCategory `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListPredefinedUrlCategoriesComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListPredefinedUrlCategoriesComplete(ctx context.Context, id GlobalRulestackId, options ListPredefinedUrlCategoriesOperationOptions) (ListPredefinedUrlCategoriesCompleteResult, error) { + return c.ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx, id, options, PredefinedUrlCategoryOperationPredicate{}) +} + +// ListPredefinedUrlCategoriesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GlobalRulestackClient) ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, options ListPredefinedUrlCategoriesOperationOptions, predicate PredefinedUrlCategoryOperationPredicate) (result ListPredefinedUrlCategoriesCompleteResult, err error) { + items := make([]PredefinedUrlCategory, 0) + + resp, err := c.ListPredefinedUrlCategories(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListPredefinedUrlCategoriesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go index cc474d0ea89ea..d1f16b56ace25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go @@ -15,7 +15,12 @@ import ( type ListSecurityServicesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *SecurityServicesResponse + Model *[]SecurityServicesTypeList +} + +type ListSecurityServicesCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityServicesTypeList } type ListSecurityServicesOperationOptions struct { @@ -71,7 +76,7 @@ func (c GlobalRulestackClient) ListSecurityServices(ctx context.Context, id Glob } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -80,12 +85,43 @@ func (c GlobalRulestackClient) ListSecurityServices(ctx context.Context, id Glob return } - var model SecurityServicesResponse - result.Model = &model + var values struct { + Values *[]SecurityServicesTypeList `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListSecurityServicesComplete retrieves all the results into a single object +func (c GlobalRulestackClient) ListSecurityServicesComplete(ctx context.Context, id GlobalRulestackId, options ListSecurityServicesOperationOptions) (ListSecurityServicesCompleteResult, error) { + return c.ListSecurityServicesCompleteMatchingPredicate(ctx, id, options, SecurityServicesTypeListOperationPredicate{}) +} + +// ListSecurityServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c GlobalRulestackClient) ListSecurityServicesCompleteMatchingPredicate(ctx context.Context, id GlobalRulestackId, options ListSecurityServicesOperationOptions, predicate SecurityServicesTypeListOperationPredicate) (result ListSecurityServicesCompleteResult, err error) { + items := make([]SecurityServicesTypeList, 0) + + resp, err := c.ListSecurityServices(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListSecurityServicesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_advsecurityobjectlistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_advsecurityobjectlistresponse.go deleted file mode 100644 index d347933629098..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_advsecurityobjectlistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdvSecurityObjectListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value AdvSecurityObjectModel `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_countriesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_countriesresponse.go deleted file mode 100644 index bbba6198fde10..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_countriesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CountriesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []Country `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_listappidresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_listappidresponse.go deleted file mode 100644 index 8108dc1d6e893..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_listappidresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAppIdResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_listfirewallsresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_listfirewallsresponse.go deleted file mode 100644 index 834bc924529b0..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_listfirewallsresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListFirewallsResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_predefinedurlcategoriesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_predefinedurlcategoriesresponse.go deleted file mode 100644 index 6019172078d86..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_predefinedurlcategoriesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PredefinedUrlCategoriesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []PredefinedUrlCategory `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_securityservicesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_securityservicesresponse.go deleted file mode 100644 index eba4c8665450e..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/model_securityservicesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package globalrulestack - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityServicesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value SecurityServicesTypeList `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/predicates.go index 4def7f37ff961..7d929b1268a16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/predicates.go @@ -3,6 +3,37 @@ package globalrulestack // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type AdvSecurityObjectModelOperationPredicate struct { + Type *string +} + +func (p AdvSecurityObjectModelOperationPredicate) Matches(input AdvSecurityObjectModel) bool { + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type CountryOperationPredicate struct { + Code *string + Description *string +} + +func (p CountryOperationPredicate) Matches(input Country) bool { + + if p.Code != nil && *p.Code != input.Code { + return false + } + + if p.Description != nil && (input.Description == nil || *p.Description != *input.Description) { + return false + } + + return true +} + type GlobalRulestackResourceOperationPredicate struct { Id *string Location *string @@ -30,3 +61,34 @@ func (p GlobalRulestackResourceOperationPredicate) Matches(input GlobalRulestack return true } + +type PredefinedUrlCategoryOperationPredicate struct { + Action *string + Name *string +} + +func (p PredefinedUrlCategoryOperationPredicate) Matches(input PredefinedUrlCategory) bool { + + if p.Action != nil && *p.Action != input.Action { + return false + } + + if p.Name != nil && *p.Name != input.Name { + return false + } + + return true +} + +type SecurityServicesTypeListOperationPredicate struct { + Type *string +} + +func (p SecurityServicesTypeListOperationPredicate) Matches(input SecurityServicesTypeList) bool { + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md index 7f4e9ce520315..44ee3bf08541a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md @@ -116,12 +116,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListAdvancedSecurityObjects(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions()) +// alternatively `client.ListAdvancedSecurityObjects(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions())` can be used to do batched pagination +items, err := client.ListAdvancedSecurityObjectsComplete(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -200,12 +201,13 @@ for _, item := range items { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListFirewalls(ctx, id) +// alternatively `client.ListFirewalls(ctx, id)` can be used to do batched pagination +items, err := client.ListFirewallsComplete(ctx, id) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` @@ -233,12 +235,13 @@ for _, item := range items { ctx := context.TODO() id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") -read, err := client.ListSecurityServices(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions()) +// alternatively `client.ListSecurityServices(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions())` can be used to do batched pagination +items, err := client.ListSecurityServicesComplete(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions()) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go index d685c0fd0f060..dcbd69ff588dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go @@ -15,7 +15,12 @@ import ( type ListAdvancedSecurityObjectsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *AdvSecurityObjectListResponse + Model *[]AdvSecurityObjectModel +} + +type ListAdvancedSecurityObjectsCompleteResult struct { + LatestHttpResponse *http.Response + Items []AdvSecurityObjectModel } type ListAdvancedSecurityObjectsOperationOptions struct { @@ -71,7 +76,7 @@ func (c LocalRulestacksClient) ListAdvancedSecurityObjects(ctx context.Context, } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -80,12 +85,43 @@ func (c LocalRulestacksClient) ListAdvancedSecurityObjects(ctx context.Context, return } - var model AdvSecurityObjectListResponse - result.Model = &model + var values struct { + Values *[]AdvSecurityObjectModel `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListAdvancedSecurityObjectsComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListAdvancedSecurityObjectsComplete(ctx context.Context, id LocalRulestackId, options ListAdvancedSecurityObjectsOperationOptions) (ListAdvancedSecurityObjectsCompleteResult, error) { + return c.ListAdvancedSecurityObjectsCompleteMatchingPredicate(ctx, id, options, AdvSecurityObjectModelOperationPredicate{}) +} + +// ListAdvancedSecurityObjectsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalRulestacksClient) ListAdvancedSecurityObjectsCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListAdvancedSecurityObjectsOperationOptions, predicate AdvSecurityObjectModelOperationPredicate) (result ListAdvancedSecurityObjectsCompleteResult, err error) { + items := make([]AdvSecurityObjectModel, 0) + + resp, err := c.ListAdvancedSecurityObjects(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListAdvancedSecurityObjectsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go index 45ce8ea3d1449..40184fe35aa08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go @@ -15,12 +15,12 @@ import ( type ListAppIdsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]ListAppIdResponse + Model *[]string } type ListAppIdsCompleteResult struct { LatestHttpResponse *http.Response - Items []ListAppIdResponse + Items []string } type ListAppIdsOperationOptions struct { @@ -90,7 +90,7 @@ func (c LocalRulestacksClient) ListAppIds(ctx context.Context, id LocalRulestack } var values struct { - Values *[]ListAppIdResponse `json:"value"` + Values *[]string `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -102,13 +102,8 @@ func (c LocalRulestacksClient) ListAppIds(ctx context.Context, id LocalRulestack } // ListAppIdsComplete retrieves all the results into a single object -func (c LocalRulestacksClient) ListAppIdsComplete(ctx context.Context, id LocalRulestackId, options ListAppIdsOperationOptions) (ListAppIdsCompleteResult, error) { - return c.ListAppIdsCompleteMatchingPredicate(ctx, id, options, ListAppIdResponseOperationPredicate{}) -} - -// ListAppIdsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c LocalRulestacksClient) ListAppIdsCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListAppIdsOperationOptions, predicate ListAppIdResponseOperationPredicate) (result ListAppIdsCompleteResult, err error) { - items := make([]ListAppIdResponse, 0) +func (c LocalRulestacksClient) ListAppIdsComplete(ctx context.Context, id LocalRulestackId, options ListAppIdsOperationOptions) (result ListAppIdsCompleteResult, err error) { + items := make([]string, 0) resp, err := c.ListAppIds(ctx, id, options) if err != nil { @@ -117,9 +112,7 @@ func (c LocalRulestacksClient) ListAppIdsCompleteMatchingPredicate(ctx context.C } if resp.Model != nil { for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } + items = append(items, v) } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go index f4bce79c5b8f0..e6d06792a3f31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go @@ -15,12 +15,12 @@ import ( type ListCountriesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]CountriesResponse + Model *[]Country } type ListCountriesCompleteResult struct { LatestHttpResponse *http.Response - Items []CountriesResponse + Items []Country } type ListCountriesOperationOptions struct { @@ -82,7 +82,7 @@ func (c LocalRulestacksClient) ListCountries(ctx context.Context, id LocalRulest } var values struct { - Values *[]CountriesResponse `json:"value"` + Values *[]Country `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -95,12 +95,12 @@ func (c LocalRulestacksClient) ListCountries(ctx context.Context, id LocalRulest // ListCountriesComplete retrieves all the results into a single object func (c LocalRulestacksClient) ListCountriesComplete(ctx context.Context, id LocalRulestackId, options ListCountriesOperationOptions) (ListCountriesCompleteResult, error) { - return c.ListCountriesCompleteMatchingPredicate(ctx, id, options, CountriesResponseOperationPredicate{}) + return c.ListCountriesCompleteMatchingPredicate(ctx, id, options, CountryOperationPredicate{}) } // ListCountriesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c LocalRulestacksClient) ListCountriesCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListCountriesOperationOptions, predicate CountriesResponseOperationPredicate) (result ListCountriesCompleteResult, err error) { - items := make([]CountriesResponse, 0) +func (c LocalRulestacksClient) ListCountriesCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListCountriesOperationOptions, predicate CountryOperationPredicate) (result ListCountriesCompleteResult, err error) { + items := make([]Country, 0) resp, err := c.ListCountries(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listfirewalls.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listfirewalls.go index 6fb93d86fb06c..510f5a7de867a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listfirewalls.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listfirewalls.go @@ -15,7 +15,12 @@ import ( type ListFirewallsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ListFirewallsResponse + Model *[]string +} + +type ListFirewallsCompleteResult struct { + LatestHttpResponse *http.Response + Items []string } // ListFirewalls ... @@ -35,7 +40,7 @@ func (c LocalRulestacksClient) ListFirewalls(ctx context.Context, id LocalRulest } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -44,12 +49,36 @@ func (c LocalRulestacksClient) ListFirewalls(ctx context.Context, id LocalRulest return } - var model ListFirewallsResponse - result.Model = &model + var values struct { + Values *[]string `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListFirewallsComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListFirewallsComplete(ctx context.Context, id LocalRulestackId) (result ListFirewallsCompleteResult, err error) { + items := make([]string, 0) + + resp, err := c.ListFirewalls(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + items = append(items, v) + } + } + result = ListFirewallsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go index e0be04798d171..4382b0e2c420c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go @@ -15,12 +15,12 @@ import ( type ListPredefinedUrlCategoriesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]PredefinedUrlCategoriesResponse + Model *[]PredefinedUrlCategory } type ListPredefinedUrlCategoriesCompleteResult struct { LatestHttpResponse *http.Response - Items []PredefinedUrlCategoriesResponse + Items []PredefinedUrlCategory } type ListPredefinedUrlCategoriesOperationOptions struct { @@ -82,7 +82,7 @@ func (c LocalRulestacksClient) ListPredefinedUrlCategories(ctx context.Context, } var values struct { - Values *[]PredefinedUrlCategoriesResponse `json:"value"` + Values *[]PredefinedUrlCategory `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -95,12 +95,12 @@ func (c LocalRulestacksClient) ListPredefinedUrlCategories(ctx context.Context, // ListPredefinedUrlCategoriesComplete retrieves all the results into a single object func (c LocalRulestacksClient) ListPredefinedUrlCategoriesComplete(ctx context.Context, id LocalRulestackId, options ListPredefinedUrlCategoriesOperationOptions) (ListPredefinedUrlCategoriesCompleteResult, error) { - return c.ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx, id, options, PredefinedUrlCategoriesResponseOperationPredicate{}) + return c.ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx, id, options, PredefinedUrlCategoryOperationPredicate{}) } // ListPredefinedUrlCategoriesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c LocalRulestacksClient) ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListPredefinedUrlCategoriesOperationOptions, predicate PredefinedUrlCategoriesResponseOperationPredicate) (result ListPredefinedUrlCategoriesCompleteResult, err error) { - items := make([]PredefinedUrlCategoriesResponse, 0) +func (c LocalRulestacksClient) ListPredefinedUrlCategoriesCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListPredefinedUrlCategoriesOperationOptions, predicate PredefinedUrlCategoryOperationPredicate) (result ListPredefinedUrlCategoriesCompleteResult, err error) { + items := make([]PredefinedUrlCategory, 0) resp, err := c.ListPredefinedUrlCategories(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go index ff27121983ab9..2406a80dbf315 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go @@ -15,7 +15,12 @@ import ( type ListSecurityServicesOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *SecurityServicesResponse + Model *[]SecurityServicesTypeList +} + +type ListSecurityServicesCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityServicesTypeList } type ListSecurityServicesOperationOptions struct { @@ -71,7 +76,7 @@ func (c LocalRulestacksClient) ListSecurityServices(ctx context.Context, id Loca } var resp *client.Response - resp, err = req.Execute(ctx) + resp, err = req.ExecutePaged(ctx) if resp != nil { result.OData = resp.OData result.HttpResponse = resp.Response @@ -80,12 +85,43 @@ func (c LocalRulestacksClient) ListSecurityServices(ctx context.Context, id Loca return } - var model SecurityServicesResponse - result.Model = &model + var values struct { + Values *[]SecurityServicesTypeList `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values - if err = resp.Unmarshal(result.Model); err != nil { + return +} + +// ListSecurityServicesComplete retrieves all the results into a single object +func (c LocalRulestacksClient) ListSecurityServicesComplete(ctx context.Context, id LocalRulestackId, options ListSecurityServicesOperationOptions) (ListSecurityServicesCompleteResult, error) { + return c.ListSecurityServicesCompleteMatchingPredicate(ctx, id, options, SecurityServicesTypeListOperationPredicate{}) +} + +// ListSecurityServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalRulestacksClient) ListSecurityServicesCompleteMatchingPredicate(ctx context.Context, id LocalRulestackId, options ListSecurityServicesOperationOptions, predicate SecurityServicesTypeListOperationPredicate) (result ListSecurityServicesCompleteResult, err error) { + items := make([]SecurityServicesTypeList, 0) + + resp, err := c.ListSecurityServices(ctx, id, options) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) return } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + result = ListSecurityServicesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_advsecurityobjectlistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_advsecurityobjectlistresponse.go deleted file mode 100644 index 7083081ce6a87..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_advsecurityobjectlistresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdvSecurityObjectListResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value AdvSecurityObjectModel `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_countriesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_countriesresponse.go deleted file mode 100644 index 999b9369521b1..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_countriesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CountriesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []Country `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_listappidresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_listappidresponse.go deleted file mode 100644 index ecd57332236ea..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_listappidresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAppIdResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_listfirewallsresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_listfirewallsresponse.go deleted file mode 100644 index 20317400492a5..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_listfirewallsresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListFirewallsResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []string `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_predefinedurlcategoriesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_predefinedurlcategoriesresponse.go deleted file mode 100644 index 431ded3781f82..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_predefinedurlcategoriesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PredefinedUrlCategoriesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value []PredefinedUrlCategory `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_securityservicesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_securityservicesresponse.go deleted file mode 100644 index f5518fa025275..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/model_securityservicesresponse.go +++ /dev/null @@ -1,9 +0,0 @@ -package localrulestacks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityServicesResponse struct { - NextLink *string `json:"nextLink,omitempty"` - Value SecurityServicesTypeList `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/predicates.go index 407af177c237e..82fa87587c539 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/predicates.go @@ -3,26 +3,31 @@ package localrulestacks // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type CountriesResponseOperationPredicate struct { - NextLink *string +type AdvSecurityObjectModelOperationPredicate struct { + Type *string } -func (p CountriesResponseOperationPredicate) Matches(input CountriesResponse) bool { +func (p AdvSecurityObjectModelOperationPredicate) Matches(input AdvSecurityObjectModel) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { return false } return true } -type ListAppIdResponseOperationPredicate struct { - NextLink *string +type CountryOperationPredicate struct { + Code *string + Description *string } -func (p ListAppIdResponseOperationPredicate) Matches(input ListAppIdResponse) bool { +func (p CountryOperationPredicate) Matches(input Country) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Code != nil && *p.Code != input.Code { + return false + } + + if p.Description != nil && (input.Description == nil || *p.Description != *input.Description) { return false } @@ -57,13 +62,31 @@ func (p LocalRulestackResourceOperationPredicate) Matches(input LocalRulestackRe return true } -type PredefinedUrlCategoriesResponseOperationPredicate struct { - NextLink *string +type PredefinedUrlCategoryOperationPredicate struct { + Action *string + Name *string } -func (p PredefinedUrlCategoriesResponseOperationPredicate) Matches(input PredefinedUrlCategoriesResponse) bool { +func (p PredefinedUrlCategoryOperationPredicate) Matches(input PredefinedUrlCategory) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Action != nil && *p.Action != input.Action { + return false + } + + if p.Name != nil && *p.Name != input.Name { + return false + } + + return true +} + +type SecurityServicesTypeListOperationPredicate struct { + Type *string +} + +func (p SecurityServicesTypeListOperationPredicate) Matches(input SecurityServicesTypeList) bool { + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go index 0079af0baab65..d9b3282093472 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go @@ -15,12 +15,12 @@ import ( type ListDeploymentsAtManagementGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]RemediationDeploymentsListResult + Model *[]RemediationDeployment } type ListDeploymentsAtManagementGroupCompleteResult struct { LatestHttpResponse *http.Response - Items []RemediationDeploymentsListResult + Items []RemediationDeployment } type ListDeploymentsAtManagementGroupOperationOptions struct { @@ -78,7 +78,7 @@ func (c RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Context } var values struct { - Values *[]RemediationDeploymentsListResult `json:"value"` + Values *[]RemediationDeployment `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -91,12 +91,12 @@ func (c RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Context // ListDeploymentsAtManagementGroupComplete retrieves all the results into a single object func (c RemediationsClient) ListDeploymentsAtManagementGroupComplete(ctx context.Context, id Providers2RemediationId, options ListDeploymentsAtManagementGroupOperationOptions) (ListDeploymentsAtManagementGroupCompleteResult, error) { - return c.ListDeploymentsAtManagementGroupCompleteMatchingPredicate(ctx, id, options, RemediationDeploymentsListResultOperationPredicate{}) + return c.ListDeploymentsAtManagementGroupCompleteMatchingPredicate(ctx, id, options, RemediationDeploymentOperationPredicate{}) } // ListDeploymentsAtManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c RemediationsClient) ListDeploymentsAtManagementGroupCompleteMatchingPredicate(ctx context.Context, id Providers2RemediationId, options ListDeploymentsAtManagementGroupOperationOptions, predicate RemediationDeploymentsListResultOperationPredicate) (result ListDeploymentsAtManagementGroupCompleteResult, err error) { - items := make([]RemediationDeploymentsListResult, 0) +func (c RemediationsClient) ListDeploymentsAtManagementGroupCompleteMatchingPredicate(ctx context.Context, id Providers2RemediationId, options ListDeploymentsAtManagementGroupOperationOptions, predicate RemediationDeploymentOperationPredicate) (result ListDeploymentsAtManagementGroupCompleteResult, err error) { + items := make([]RemediationDeployment, 0) resp, err := c.ListDeploymentsAtManagementGroup(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go index b9e26059cea3d..f2795a0f2b528 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go @@ -15,12 +15,12 @@ import ( type ListDeploymentsAtResourceOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]RemediationDeploymentsListResult + Model *[]RemediationDeployment } type ListDeploymentsAtResourceCompleteResult struct { LatestHttpResponse *http.Response - Items []RemediationDeploymentsListResult + Items []RemediationDeployment } type ListDeploymentsAtResourceOperationOptions struct { @@ -78,7 +78,7 @@ func (c RemediationsClient) ListDeploymentsAtResource(ctx context.Context, id Sc } var values struct { - Values *[]RemediationDeploymentsListResult `json:"value"` + Values *[]RemediationDeployment `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -91,12 +91,12 @@ func (c RemediationsClient) ListDeploymentsAtResource(ctx context.Context, id Sc // ListDeploymentsAtResourceComplete retrieves all the results into a single object func (c RemediationsClient) ListDeploymentsAtResourceComplete(ctx context.Context, id ScopedRemediationId, options ListDeploymentsAtResourceOperationOptions) (ListDeploymentsAtResourceCompleteResult, error) { - return c.ListDeploymentsAtResourceCompleteMatchingPredicate(ctx, id, options, RemediationDeploymentsListResultOperationPredicate{}) + return c.ListDeploymentsAtResourceCompleteMatchingPredicate(ctx, id, options, RemediationDeploymentOperationPredicate{}) } // ListDeploymentsAtResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c RemediationsClient) ListDeploymentsAtResourceCompleteMatchingPredicate(ctx context.Context, id ScopedRemediationId, options ListDeploymentsAtResourceOperationOptions, predicate RemediationDeploymentsListResultOperationPredicate) (result ListDeploymentsAtResourceCompleteResult, err error) { - items := make([]RemediationDeploymentsListResult, 0) +func (c RemediationsClient) ListDeploymentsAtResourceCompleteMatchingPredicate(ctx context.Context, id ScopedRemediationId, options ListDeploymentsAtResourceOperationOptions, predicate RemediationDeploymentOperationPredicate) (result ListDeploymentsAtResourceCompleteResult, err error) { + items := make([]RemediationDeployment, 0) resp, err := c.ListDeploymentsAtResource(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go index e85d1cba253d6..9c3384b708582 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go @@ -15,12 +15,12 @@ import ( type ListDeploymentsAtResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]RemediationDeploymentsListResult + Model *[]RemediationDeployment } type ListDeploymentsAtResourceGroupCompleteResult struct { LatestHttpResponse *http.Response - Items []RemediationDeploymentsListResult + Items []RemediationDeployment } type ListDeploymentsAtResourceGroupOperationOptions struct { @@ -78,7 +78,7 @@ func (c RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Context, } var values struct { - Values *[]RemediationDeploymentsListResult `json:"value"` + Values *[]RemediationDeployment `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -91,12 +91,12 @@ func (c RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Context, // ListDeploymentsAtResourceGroupComplete retrieves all the results into a single object func (c RemediationsClient) ListDeploymentsAtResourceGroupComplete(ctx context.Context, id ProviderRemediationId, options ListDeploymentsAtResourceGroupOperationOptions) (ListDeploymentsAtResourceGroupCompleteResult, error) { - return c.ListDeploymentsAtResourceGroupCompleteMatchingPredicate(ctx, id, options, RemediationDeploymentsListResultOperationPredicate{}) + return c.ListDeploymentsAtResourceGroupCompleteMatchingPredicate(ctx, id, options, RemediationDeploymentOperationPredicate{}) } // ListDeploymentsAtResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c RemediationsClient) ListDeploymentsAtResourceGroupCompleteMatchingPredicate(ctx context.Context, id ProviderRemediationId, options ListDeploymentsAtResourceGroupOperationOptions, predicate RemediationDeploymentsListResultOperationPredicate) (result ListDeploymentsAtResourceGroupCompleteResult, err error) { - items := make([]RemediationDeploymentsListResult, 0) +func (c RemediationsClient) ListDeploymentsAtResourceGroupCompleteMatchingPredicate(ctx context.Context, id ProviderRemediationId, options ListDeploymentsAtResourceGroupOperationOptions, predicate RemediationDeploymentOperationPredicate) (result ListDeploymentsAtResourceGroupCompleteResult, err error) { + items := make([]RemediationDeployment, 0) resp, err := c.ListDeploymentsAtResourceGroup(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go index fe305aeac8236..18091aa4ed4a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go @@ -15,12 +15,12 @@ import ( type ListDeploymentsAtSubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]RemediationDeploymentsListResult + Model *[]RemediationDeployment } type ListDeploymentsAtSubscriptionCompleteResult struct { LatestHttpResponse *http.Response - Items []RemediationDeploymentsListResult + Items []RemediationDeployment } type ListDeploymentsAtSubscriptionOperationOptions struct { @@ -78,7 +78,7 @@ func (c RemediationsClient) ListDeploymentsAtSubscription(ctx context.Context, i } var values struct { - Values *[]RemediationDeploymentsListResult `json:"value"` + Values *[]RemediationDeployment `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -91,12 +91,12 @@ func (c RemediationsClient) ListDeploymentsAtSubscription(ctx context.Context, i // ListDeploymentsAtSubscriptionComplete retrieves all the results into a single object func (c RemediationsClient) ListDeploymentsAtSubscriptionComplete(ctx context.Context, id RemediationId, options ListDeploymentsAtSubscriptionOperationOptions) (ListDeploymentsAtSubscriptionCompleteResult, error) { - return c.ListDeploymentsAtSubscriptionCompleteMatchingPredicate(ctx, id, options, RemediationDeploymentsListResultOperationPredicate{}) + return c.ListDeploymentsAtSubscriptionCompleteMatchingPredicate(ctx, id, options, RemediationDeploymentOperationPredicate{}) } // ListDeploymentsAtSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c RemediationsClient) ListDeploymentsAtSubscriptionCompleteMatchingPredicate(ctx context.Context, id RemediationId, options ListDeploymentsAtSubscriptionOperationOptions, predicate RemediationDeploymentsListResultOperationPredicate) (result ListDeploymentsAtSubscriptionCompleteResult, err error) { - items := make([]RemediationDeploymentsListResult, 0) +func (c RemediationsClient) ListDeploymentsAtSubscriptionCompleteMatchingPredicate(ctx context.Context, id RemediationId, options ListDeploymentsAtSubscriptionOperationOptions, predicate RemediationDeploymentOperationPredicate) (result ListDeploymentsAtSubscriptionCompleteResult, err error) { + items := make([]RemediationDeployment, 0) resp, err := c.ListDeploymentsAtSubscription(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/model_remediationdeploymentslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/model_remediationdeploymentslistresult.go deleted file mode 100644 index 688327d4144a2..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/model_remediationdeploymentslistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package remediations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RemediationDeploymentsListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]RemediationDeployment `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/predicates.go index 8b4c58c96c5d7..db9f8d3867f11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/predicates.go @@ -26,13 +26,38 @@ func (p RemediationOperationPredicate) Matches(input Remediation) bool { return true } -type RemediationDeploymentsListResultOperationPredicate struct { - NextLink *string +type RemediationDeploymentOperationPredicate struct { + CreatedOn *string + DeploymentId *string + LastUpdatedOn *string + RemediatedResourceId *string + ResourceLocation *string + Status *string } -func (p RemediationDeploymentsListResultOperationPredicate) Matches(input RemediationDeploymentsListResult) bool { +func (p RemediationDeploymentOperationPredicate) Matches(input RemediationDeployment) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.CreatedOn != nil && (input.CreatedOn == nil || *p.CreatedOn != *input.CreatedOn) { + return false + } + + if p.DeploymentId != nil && (input.DeploymentId == nil || *p.DeploymentId != *input.DeploymentId) { + return false + } + + if p.LastUpdatedOn != nil && (input.LastUpdatedOn == nil || *p.LastUpdatedOn != *input.LastUpdatedOn) { + return false + } + + if p.RemediatedResourceId != nil && (input.RemediatedResourceId == nil || *p.RemediatedResourceId != *input.RemediatedResourceId) { + return false + } + + if p.ResourceLocation != nil && (input.ResourceLocation == nil || *p.ResourceLocation != *input.ResourceLocation) { + return false + } + + if p.Status != nil && (input.Status == nil || *p.Status != *input.Status) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go index bdc1223617b5c..1f6807db0c80f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go @@ -15,12 +15,12 @@ import ( type ListBySearchServiceOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]ListQueryKeysResult + Model *[]QueryKey } type ListBySearchServiceCompleteResult struct { LatestHttpResponse *http.Response - Items []ListQueryKeysResult + Items []QueryKey } type ListBySearchServiceOperationOptions struct { @@ -78,7 +78,7 @@ func (c QueryKeysClient) ListBySearchService(ctx context.Context, id SearchServi } var values struct { - Values *[]ListQueryKeysResult `json:"value"` + Values *[]QueryKey `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -91,12 +91,12 @@ func (c QueryKeysClient) ListBySearchService(ctx context.Context, id SearchServi // ListBySearchServiceComplete retrieves all the results into a single object func (c QueryKeysClient) ListBySearchServiceComplete(ctx context.Context, id SearchServiceId, options ListBySearchServiceOperationOptions) (ListBySearchServiceCompleteResult, error) { - return c.ListBySearchServiceCompleteMatchingPredicate(ctx, id, options, ListQueryKeysResultOperationPredicate{}) + return c.ListBySearchServiceCompleteMatchingPredicate(ctx, id, options, QueryKeyOperationPredicate{}) } // ListBySearchServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c QueryKeysClient) ListBySearchServiceCompleteMatchingPredicate(ctx context.Context, id SearchServiceId, options ListBySearchServiceOperationOptions, predicate ListQueryKeysResultOperationPredicate) (result ListBySearchServiceCompleteResult, err error) { - items := make([]ListQueryKeysResult, 0) +func (c QueryKeysClient) ListBySearchServiceCompleteMatchingPredicate(ctx context.Context, id SearchServiceId, options ListBySearchServiceOperationOptions, predicate QueryKeyOperationPredicate) (result ListBySearchServiceCompleteResult, err error) { + items := make([]QueryKey, 0) resp, err := c.ListBySearchService(ctx, id, options) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/model_listquerykeysresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/model_listquerykeysresult.go deleted file mode 100644 index dd8604592324c..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/model_listquerykeysresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package querykeys - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListQueryKeysResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]QueryKey `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/predicates.go index 488b6d75c411a..6287d6738be49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/predicates.go @@ -3,13 +3,18 @@ package querykeys // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListQueryKeysResultOperationPredicate struct { - NextLink *string +type QueryKeyOperationPredicate struct { + Key *string + Name *string } -func (p ListQueryKeysResultOperationPredicate) Matches(input ListQueryKeysResult) bool { +func (p QueryKeyOperationPredicate) Matches(input QueryKey) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Key != nil && (input.Key == nil || *p.Key != *input.Key) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_liststreamingjobs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_liststreamingjobs.go index c6e5e0af69b30..e31f18a117217 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_liststreamingjobs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_liststreamingjobs.go @@ -15,12 +15,12 @@ import ( type ListStreamingJobsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]ClusterJobListResult + Model *[]ClusterJob } type ListStreamingJobsCompleteResult struct { LatestHttpResponse *http.Response - Items []ClusterJobListResult + Items []ClusterJob } // ListStreamingJobs ... @@ -50,7 +50,7 @@ func (c ClustersClient) ListStreamingJobs(ctx context.Context, id ClusterId) (re } var values struct { - Values *[]ClusterJobListResult `json:"value"` + Values *[]ClusterJob `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c ClustersClient) ListStreamingJobs(ctx context.Context, id ClusterId) (re // ListStreamingJobsComplete retrieves all the results into a single object func (c ClustersClient) ListStreamingJobsComplete(ctx context.Context, id ClusterId) (ListStreamingJobsCompleteResult, error) { - return c.ListStreamingJobsCompleteMatchingPredicate(ctx, id, ClusterJobListResultOperationPredicate{}) + return c.ListStreamingJobsCompleteMatchingPredicate(ctx, id, ClusterJobOperationPredicate{}) } // ListStreamingJobsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ClustersClient) ListStreamingJobsCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate ClusterJobListResultOperationPredicate) (result ListStreamingJobsCompleteResult, err error) { - items := make([]ClusterJobListResult, 0) +func (c ClustersClient) ListStreamingJobsCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate ClusterJobOperationPredicate) (result ListStreamingJobsCompleteResult, err error) { + items := make([]ClusterJob, 0) resp, err := c.ListStreamingJobs(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/model_clusterjoblistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/model_clusterjoblistresult.go deleted file mode 100644 index 9778182375284..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/model_clusterjoblistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package clusters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ClusterJobListResult struct { - NextLink *string `json:"nextLink,omitempty"` - Value *[]ClusterJob `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/predicates.go index 405245c295442..cf7beef404e1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/predicates.go @@ -36,13 +36,18 @@ func (p ClusterOperationPredicate) Matches(input Cluster) bool { return true } -type ClusterJobListResultOperationPredicate struct { - NextLink *string +type ClusterJobOperationPredicate struct { + Id *string + StreamingUnits *int64 } -func (p ClusterJobListResultOperationPredicate) Matches(input ClusterJobListResult) bool { +func (p ClusterJobOperationPredicate) Matches(input ClusterJob) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.StreamingUnits != nil && (input.StreamingUnits == nil || *p.StreamingUnits != *input.StreamingUnits) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go index ab6359e687fcf..3c0aaf531fd2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go @@ -19,12 +19,12 @@ type ChangeVnetOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *[]WebAppCollection + Model *[]Site } type ChangeVnetCompleteResult struct { LatestHttpResponse *http.Response - Items []WebAppCollection + Items []Site } // ChangeVnet ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go index 72168224f8f13..def906a3f1a2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go @@ -19,12 +19,12 @@ type ResumeOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *[]WebAppCollection + Model *[]Site } type ResumeCompleteResult struct { LatestHttpResponse *http.Response - Items []WebAppCollection + Items []Site } // Resume ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go index de5db4df0e630..5395b21b683c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go @@ -19,12 +19,12 @@ type SuspendOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *[]WebAppCollection + Model *[]Site } type SuspendCompleteResult struct { LatestHttpResponse *http.Response - Items []WebAppCollection + Items []Site } // Suspend ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_webappcollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_webappcollection.go deleted file mode 100644 index b18de2b2ac395..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/model_webappcollection.go +++ /dev/null @@ -1,9 +0,0 @@ -package appserviceenvironments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type WebAppCollection struct { - NextLink *string `json:"nextLink,omitempty"` - Value []Site `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go index 7cb05884c3aa6..96a5324bde97d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/predicates.go @@ -306,19 +306,6 @@ func (p UsageOperationPredicate) Matches(input Usage) bool { return true } -type WebAppCollectionOperationPredicate struct { - NextLink *string -} - -func (p WebAppCollectionOperationPredicate) Matches(input WebAppCollection) bool { - - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { - return false - } - - return true -} - type WorkerPoolResourceOperationPredicate struct { Id *string Kind *string diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go index 11881d211a0d3..ed3fb51657876 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go @@ -16,12 +16,12 @@ import ( type ListSiteIdentifiersAssignedToHostNameOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]IdentifierCollection + Model *[]Identifier } type ListSiteIdentifiersAssignedToHostNameCompleteResult struct { LatestHttpResponse *http.Response - Items []IdentifierCollection + Items []Identifier } // ListSiteIdentifiersAssignedToHostName ... @@ -51,7 +51,7 @@ func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx conte } var values struct { - Values *[]IdentifierCollection `json:"value"` + Values *[]Identifier `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -64,12 +64,12 @@ func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx conte // ListSiteIdentifiersAssignedToHostNameComplete retrieves all the results into a single object func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostNameComplete(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier) (ListSiteIdentifiersAssignedToHostNameCompleteResult, error) { - return c.ListSiteIdentifiersAssignedToHostNameCompleteMatchingPredicate(ctx, id, input, IdentifierCollectionOperationPredicate{}) + return c.ListSiteIdentifiersAssignedToHostNameCompleteMatchingPredicate(ctx, id, input, IdentifierOperationPredicate{}) } // ListSiteIdentifiersAssignedToHostNameCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostNameCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier, predicate IdentifierCollectionOperationPredicate) (result ListSiteIdentifiersAssignedToHostNameCompleteResult, err error) { - items := make([]IdentifierCollection, 0) +func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostNameCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier, predicate IdentifierOperationPredicate) (result ListSiteIdentifiersAssignedToHostNameCompleteResult, err error) { + items := make([]Identifier, 0) resp, err := c.ListSiteIdentifiersAssignedToHostName(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifiercollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifiercollection.go deleted file mode 100644 index 4a1a8d9b9ba38..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/model_identifiercollection.go +++ /dev/null @@ -1,9 +0,0 @@ -package resourceproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IdentifierCollection struct { - NextLink *string `json:"nextLink,omitempty"` - Value []Identifier `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/predicates.go index 697481b7f249b..c633f44ef0116 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/predicates.go @@ -143,13 +143,28 @@ func (p GeoRegionOperationPredicate) Matches(input GeoRegion) bool { return true } -type IdentifierCollectionOperationPredicate struct { - NextLink *string +type IdentifierOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string } -func (p IdentifierCollectionOperationPredicate) Matches(input IdentifierCollection) bool { +func (p IdentifierOperationPredicate) Matches(input Identifier) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go index 8bca3e6199599..2a0dfa9922d57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go @@ -16,12 +16,12 @@ import ( type ListSiteBackupsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]BackupItemCollection + Model *[]BackupItem } type ListSiteBackupsCompleteResult struct { LatestHttpResponse *http.Response - Items []BackupItemCollection + Items []BackupItem } // ListSiteBackups ... @@ -51,7 +51,7 @@ func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServ } var values struct { - Values *[]BackupItemCollection `json:"value"` + Values *[]BackupItem `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -64,12 +64,12 @@ func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServ // ListSiteBackupsComplete retrieves all the results into a single object func (c WebAppsClient) ListSiteBackupsComplete(ctx context.Context, id commonids.AppServiceId) (ListSiteBackupsCompleteResult, error) { - return c.ListSiteBackupsCompleteMatchingPredicate(ctx, id, BackupItemCollectionOperationPredicate{}) + return c.ListSiteBackupsCompleteMatchingPredicate(ctx, id, BackupItemOperationPredicate{}) } // ListSiteBackupsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c WebAppsClient) ListSiteBackupsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate BackupItemCollectionOperationPredicate) (result ListSiteBackupsCompleteResult, err error) { - items := make([]BackupItemCollection, 0) +func (c WebAppsClient) ListSiteBackupsCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, predicate BackupItemOperationPredicate) (result ListSiteBackupsCompleteResult, err error) { + items := make([]BackupItem, 0) resp, err := c.ListSiteBackups(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go index 18f42228f44b7..2d8dd37dbad0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go @@ -15,12 +15,12 @@ import ( type ListSiteBackupsSlotOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]BackupItemCollection + Model *[]BackupItem } type ListSiteBackupsSlotCompleteResult struct { LatestHttpResponse *http.Response - Items []BackupItemCollection + Items []BackupItem } // ListSiteBackupsSlot ... @@ -50,7 +50,7 @@ func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (resu } var values struct { - Values *[]BackupItemCollection `json:"value"` + Values *[]BackupItem `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (resu // ListSiteBackupsSlotComplete retrieves all the results into a single object func (c WebAppsClient) ListSiteBackupsSlotComplete(ctx context.Context, id SlotId) (ListSiteBackupsSlotCompleteResult, error) { - return c.ListSiteBackupsSlotCompleteMatchingPredicate(ctx, id, BackupItemCollectionOperationPredicate{}) + return c.ListSiteBackupsSlotCompleteMatchingPredicate(ctx, id, BackupItemOperationPredicate{}) } // ListSiteBackupsSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c WebAppsClient) ListSiteBackupsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate BackupItemCollectionOperationPredicate) (result ListSiteBackupsSlotCompleteResult, err error) { - items := make([]BackupItemCollection, 0) +func (c WebAppsClient) ListSiteBackupsSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, predicate BackupItemOperationPredicate) (result ListSiteBackupsSlotCompleteResult, err error) { + items := make([]BackupItem, 0) resp, err := c.ListSiteBackupsSlot(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go index 35e87a7493f1f..9f18e2a998c60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go @@ -16,12 +16,12 @@ import ( type ListSlotDifferencesFromProductionOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]SlotDifferenceCollection + Model *[]SlotDifference } type ListSlotDifferencesFromProductionCompleteResult struct { LatestHttpResponse *http.Response - Items []SlotDifferenceCollection + Items []SlotDifference } // ListSlotDifferencesFromProduction ... @@ -51,7 +51,7 @@ func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id } var values struct { - Values *[]SlotDifferenceCollection `json:"value"` + Values *[]SlotDifference `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -64,12 +64,12 @@ func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id // ListSlotDifferencesFromProductionComplete retrieves all the results into a single object func (c WebAppsClient) ListSlotDifferencesFromProductionComplete(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) (ListSlotDifferencesFromProductionCompleteResult, error) { - return c.ListSlotDifferencesFromProductionCompleteMatchingPredicate(ctx, id, input, SlotDifferenceCollectionOperationPredicate{}) + return c.ListSlotDifferencesFromProductionCompleteMatchingPredicate(ctx, id, input, SlotDifferenceOperationPredicate{}) } // ListSlotDifferencesFromProductionCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c WebAppsClient) ListSlotDifferencesFromProductionCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity, predicate SlotDifferenceCollectionOperationPredicate) (result ListSlotDifferencesFromProductionCompleteResult, err error) { - items := make([]SlotDifferenceCollection, 0) +func (c WebAppsClient) ListSlotDifferencesFromProductionCompleteMatchingPredicate(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity, predicate SlotDifferenceOperationPredicate) (result ListSlotDifferencesFromProductionCompleteResult, err error) { + items := make([]SlotDifference, 0) resp, err := c.ListSlotDifferencesFromProduction(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go index 9211210cc59d2..c0c33b32a4a96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go @@ -15,12 +15,12 @@ import ( type ListSlotDifferencesSlotOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]SlotDifferenceCollection + Model *[]SlotDifference } type ListSlotDifferencesSlotCompleteResult struct { LatestHttpResponse *http.Response - Items []SlotDifferenceCollection + Items []SlotDifference } // ListSlotDifferencesSlot ... @@ -50,7 +50,7 @@ func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, i } var values struct { - Values *[]SlotDifferenceCollection `json:"value"` + Values *[]SlotDifference `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -63,12 +63,12 @@ func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, i // ListSlotDifferencesSlotComplete retrieves all the results into a single object func (c WebAppsClient) ListSlotDifferencesSlotComplete(ctx context.Context, id SlotId, input CsmSlotEntity) (ListSlotDifferencesSlotCompleteResult, error) { - return c.ListSlotDifferencesSlotCompleteMatchingPredicate(ctx, id, input, SlotDifferenceCollectionOperationPredicate{}) + return c.ListSlotDifferencesSlotCompleteMatchingPredicate(ctx, id, input, SlotDifferenceOperationPredicate{}) } // ListSlotDifferencesSlotCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c WebAppsClient) ListSlotDifferencesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, input CsmSlotEntity, predicate SlotDifferenceCollectionOperationPredicate) (result ListSlotDifferencesSlotCompleteResult, err error) { - items := make([]SlotDifferenceCollection, 0) +func (c WebAppsClient) ListSlotDifferencesSlotCompleteMatchingPredicate(ctx context.Context, id SlotId, input CsmSlotEntity, predicate SlotDifferenceOperationPredicate) (result ListSlotDifferencesSlotCompleteResult, err error) { + items := make([]SlotDifference, 0) resp, err := c.ListSlotDifferencesSlot(ctx, id, input) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemcollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemcollection.go deleted file mode 100644 index e3dea7f915ff3..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_backupitemcollection.go +++ /dev/null @@ -1,9 +0,0 @@ -package webapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackupItemCollection struct { - NextLink *string `json:"nextLink,omitempty"` - Value []BackupItem `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferencecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferencecollection.go deleted file mode 100644 index 776be4e9b929f..0000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/model_slotdifferencecollection.go +++ /dev/null @@ -1,9 +0,0 @@ -package webapps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SlotDifferenceCollection struct { - NextLink *string `json:"nextLink,omitempty"` - Value []SlotDifference `json:"value"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go index e2d321d39a1ec..a1ca5255822a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/webapps/predicates.go @@ -59,19 +59,6 @@ func (p BackupItemOperationPredicate) Matches(input BackupItem) bool { return true } -type BackupItemCollectionOperationPredicate struct { - NextLink *string -} - -func (p BackupItemCollectionOperationPredicate) Matches(input BackupItemCollection) bool { - - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { - return false - } - - return true -} - type ContinuousWebJobOperationPredicate struct { Id *string Kind *string @@ -571,13 +558,28 @@ func (p SiteExtensionInfoOperationPredicate) Matches(input SiteExtensionInfo) bo return true } -type SlotDifferenceCollectionOperationPredicate struct { - NextLink *string +type SlotDifferenceOperationPredicate struct { + Id *string + Kind *string + Name *string + Type *string } -func (p SlotDifferenceCollectionOperationPredicate) Matches(input SlotDifferenceCollection) bool { +func (p SlotDifferenceOperationPredicate) Matches(input SlotDifference) bool { - if p.NextLink != nil && (input.NextLink == nil || *p.NextLink != *input.NextLink) { + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go index ee26b40a0b202..48b577d899b17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go @@ -104,6 +104,11 @@ func (r *Request) Marshal(payload interface{}) error { case strings.Contains(contentType, "application/xml") || strings.Contains(contentType, "text/xml"): body, err := xml.Marshal(payload) if err == nil { + // Prepend the xml doctype declaration if not detected + if !strings.HasPrefix(strings.TrimSpace(strings.ToLower(string(body[0:5]))), "