From 1dcc4bfc000e4ab7860005ed29a01859ccbc6fce Mon Sep 17 00:00:00 2001 From: hc-github-team-tf-azure <> Date: Fri, 17 Nov 2023 13:08:38 +0000 Subject: [PATCH] dependencies: updating `redis` to API Version "2023-08-01" from "2023-04-01" --- internal/clients/client.go | 4 +- .../network/private_endpoint_resource.go | 2 +- internal/services/redis/client/client.go | 6 +- .../redis/migration/firewall_rule_v0_to_v1.go | 2 +- .../redis/migration/linked_server_v0_to_v1.go | 2 +- .../redis/migration/redis_cache_v0_to_v1.go | 2 +- .../services/redis/redis_cache_data_source.go | 4 +- .../services/redis/redis_cache_resource.go | 4 +- .../redis/redis_cache_resource_test.go | 2 +- .../redis/redis_firewall_rule_resource.go | 2 +- .../redis_firewall_rule_resource_test.go | 2 +- .../redis/redis_linked_server_resource.go | 2 +- .../redis_linked_server_resource_test.go | 2 +- ...ng_cloud_app_redis_association_resource.go | 2 +- .../redis/2023-08-01/aad/README.md | 144 +++++++++++++ .../redis/2023-08-01/aad/client.go | 26 +++ .../redis/2023-08-01/aad/constants.go | 157 ++++++++++++++ .../redis/2023-08-01/aad/id_accesspolicy.go | 140 +++++++++++++ .../aad/id_accesspolicyassignment.go | 140 +++++++++++++ .../redis/2023-08-01/aad/id_redi.go | 127 ++++++++++++ ...thod_accesspolicyassignmentcreateupdate.go | 74 +++++++ .../method_accesspolicyassignmentdelete.go | 71 +++++++ .../aad/method_accesspolicyassignmentget.go | 51 +++++ .../aad/method_accesspolicyassignmentlist.go | 89 ++++++++ .../aad/method_accesspolicycreateupdate.go | 74 +++++++ .../aad/method_accesspolicydelete.go | 71 +++++++ .../2023-08-01/aad/method_accesspolicyget.go | 51 +++++ .../2023-08-01/aad/method_accesspolicylist.go | 89 ++++++++ .../aad/model_rediscacheaccesspolicy.go | 11 + .../model_rediscacheaccesspolicyassignment.go | 11 + ...iscacheaccesspolicyassignmentproperties.go | 11 + .../model_rediscacheaccesspolicyproperties.go | 10 + .../redis/2023-08-01/aad/predicates.go | 50 +++++ .../redis/2023-08-01/aad/version.go | 12 ++ .../{2023-04-01 => 2023-08-01}/client.go | 21 +- .../firewallrules/README.md | 6 +- .../firewallrules/client.go | 0 .../firewallrules/id_firewallrule.go | 0 .../firewallrules/id_redi.go | 0 .../firewallrules/method_createorupdate.go | 0 .../firewallrules/method_delete.go | 0 .../firewallrules/method_get.go | 0 .../firewallrules/method_list.go | 0 .../firewallrules/model_redisfirewallrule.go | 0 .../model_redisfirewallruleproperties.go | 0 .../firewallrules/predicates.go | 0 .../firewallrules/version.go | 2 +- .../patchschedules/README.md | 6 +- .../patchschedules/client.go | 0 .../patchschedules/constants.go | 0 .../patchschedules/id_redi.go | 0 .../patchschedules/method_createorupdate.go | 0 .../patchschedules/method_delete.go | 0 .../patchschedules/method_get.go | 0 .../method_listbyredisresource.go | 0 .../model_redispatchschedule.go | 0 .../patchschedules/model_scheduleentries.go | 0 .../patchschedules/model_scheduleentry.go | 0 .../patchschedules/predicates.go | 0 .../patchschedules/version.go | 2 +- .../privateendpointconnections/README.md | 6 +- .../privateendpointconnections/client.go | 0 .../privateendpointconnections/constants.go | 0 .../id_privateendpointconnection.go | 0 .../privateendpointconnections/id_redi.go | 0 .../method_delete.go | 0 .../privateendpointconnections/method_get.go | 0 .../privateendpointconnections/method_list.go | 0 .../privateendpointconnections/method_put.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionlistresult.go | 0 ...del_privateendpointconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 .../privateendpointconnections/version.go | 2 +- .../privatelinkresources/README.md | 6 +- .../privatelinkresources/client.go | 0 .../privatelinkresources/id_redi.go | 0 .../method_listbyrediscache.go | 0 .../model_privatelinkresource.go | 0 .../model_privatelinkresourcelistresult.go | 0 .../model_privatelinkresourceproperties.go | 0 .../privatelinkresources/version.go | 2 +- .../redis/README.md | 142 ++++++++++++- .../redis/client.go | 0 .../redis/constants.go | 191 ++++++++++++++++++ .../redis/2023-08-01/redis/id_accesspolicy.go | 140 +++++++++++++ .../redis/id_accesspolicyassignment.go | 140 +++++++++++++ .../redis/id_firewallrule.go | 0 .../redis/id_linkedserver.go | 0 .../redis/id_redi.go | 0 ...thod_accesspolicyassignmentcreateupdate.go | 74 +++++++ .../method_accesspolicyassignmentdelete.go | 71 +++++++ .../redis/method_accesspolicyassignmentget.go | 51 +++++ .../method_accesspolicyassignmentlist.go | 89 ++++++++ .../redis/method_accesspolicycreateupdate.go | 74 +++++++ .../redis/method_accesspolicydelete.go | 71 +++++++ .../redis/method_accesspolicyget.go | 51 +++++ .../redis/method_accesspolicylist.go | 89 ++++++++ .../redis/method_checknameavailability.go | 0 .../redis/method_create.go | 0 .../redis/method_delete.go | 0 .../redis/method_exportdata.go | 0 .../method_firewallrulescreateorupdate.go | 0 .../redis/method_firewallrulesdelete.go | 0 .../redis/method_firewallrulesget.go | 0 .../redis/method_firewallruleslist.go | 0 .../2023-08-01/redis/method_flushcache.go | 70 +++++++ .../redis/method_forcereboot.go | 0 .../redis/method_get.go | 0 .../redis/method_importdata.go | 0 .../redis/method_linkedservercreate.go | 0 .../redis/method_linkedserverdelete.go | 0 .../redis/method_linkedserverget.go | 0 .../redis/method_linkedserverlist.go | 0 .../redis/method_listbyresourcegroup.go | 0 .../redis/method_listbysubscription.go | 0 .../redis/method_listkeys.go | 0 .../redis/method_listupgradenotifications.go | 0 .../method_patchschedulescreateorupdate.go | 0 .../redis/method_patchschedulesdelete.go | 0 .../redis/method_patchschedulesget.go | 0 ...ethod_patchscheduleslistbyredisresource.go | 0 .../redis/method_regeneratekey.go | 0 .../redis/method_update.go | 0 .../model_checknameavailabilityparameters.go | 0 .../redis/model_erroradditionalinfo.go | 9 + .../2023-08-01/redis/model_errordetail.go | 12 ++ .../redis/model_exportrdbparameters.go | 0 .../redis/model_importrdbparameters.go | 0 .../redis/model_operationstatusresult.go | 45 +++++ .../redis/model_privateendpoint.go | 0 .../redis/model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 .../redis/model_redisaccesskeys.go | 0 .../redis/model_rediscacheaccesspolicy.go | 11 + .../model_rediscacheaccesspolicyassignment.go | 11 + ...iscacheaccesspolicyassignmentproperties.go | 11 + .../model_rediscacheaccesspolicyproperties.go | 10 + ...rediscommonpropertiesredisconfiguration.go | 1 + .../redis/model_rediscreateparameters.go | 0 .../redis/model_rediscreateproperties.go | 1 + .../redis/model_redisfirewallrule.go | 0 .../model_redisfirewallruleproperties.go | 0 .../redis/model_redisforcerebootresponse.go | 0 .../redis/model_redisinstancedetails.go | 0 .../redis/model_redislinkedserver.go | 0 ...model_redislinkedservercreateparameters.go | 0 ...model_redislinkedservercreateproperties.go | 0 .../model_redislinkedserverproperties.go | 0 .../model_redislinkedserverwithproperties.go | 0 .../redis/model_redispatchschedule.go | 0 .../redis/model_redisproperties.go | 1 + .../redis/model_redisrebootparameters.go | 0 .../model_redisregeneratekeyparameters.go | 0 .../redis/model_redisresource.go | 0 .../redis/model_redisupdateparameters.go | 0 .../redis/model_redisupdateproperties.go | 1 + .../redis/model_scheduleentries.go | 0 .../redis/model_scheduleentry.go | 0 .../redis/model_sku.go | 0 .../redis/model_upgradenotification.go | 0 .../redis/predicates.go | 46 +++++ .../redis/version.go | 2 +- vendor/modules.txt | 13 +- 166 files changed, 2876 insertions(+), 51 deletions(-) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_accesspolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_accesspolicyassignment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_redi.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentcreateupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicycreateupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicydelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicylist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyassignment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyassignmentproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/client.go (84%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/id_firewallrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/id_redi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/model_redisfirewallrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/model_redisfirewallruleproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/firewallrules/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/id_redi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/method_listbyredisresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/model_redispatchschedule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/model_scheduleentries.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/model_scheduleentry.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/patchschedules/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/id_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/id_redi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/method_put.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/model_privateendpointconnectionlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privateendpointconnections/version.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privatelinkresources/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privatelinkresources/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privatelinkresources/id_redi.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privatelinkresources/method_listbyrediscache.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privatelinkresources/model_privatelinkresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privatelinkresources/model_privatelinkresourcelistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privatelinkresources/model_privatelinkresourceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/privatelinkresources/version.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/README.md (74%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/constants.go (70%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_accesspolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_accesspolicyassignment.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/id_firewallrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/id_linkedserver.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/id_redi.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentcreateupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicycreateupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicydelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicylist.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_checknameavailability.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_exportdata.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_firewallrulescreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_firewallrulesdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_firewallrulesget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_firewallruleslist.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_flushcache.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_forcereboot.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_importdata.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_linkedservercreate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_linkedserverdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_linkedserverget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_linkedserverlist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_listbysubscription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_listkeys.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_listupgradenotifications.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_patchschedulescreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_patchschedulesdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_patchschedulesget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_patchscheduleslistbyredisresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_regeneratekey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_checknameavailabilityparameters.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_erroradditionalinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_errordetail.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_exportrdbparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_importrdbparameters.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_operationstatusresult.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisaccesskeys.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyassignment.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyassignmentproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_rediscommonpropertiesredisconfiguration.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_rediscreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_rediscreateproperties.go (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisfirewallrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisfirewallruleproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisforcerebootresponse.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisinstancedetails.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redislinkedserver.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redislinkedservercreateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redislinkedservercreateproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redislinkedserverproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redislinkedserverwithproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redispatchschedule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisproperties.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisrebootparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisregeneratekeyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisupdateparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_redisupdateproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_scheduleentries.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_scheduleentry.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/model_upgradenotification.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/predicates.go (73%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/{2023-04-01 => 2023-08-01}/redis/version.go (88%) diff --git a/internal/clients/client.go b/internal/clients/client.go index 428dd878ac81..ea0bff77d81f 100644 --- a/internal/clients/client.go +++ b/internal/clients/client.go @@ -17,7 +17,7 @@ import ( eventgrid_v2022_06_15 "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15" fluidrelay_2022_05_26 "github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26" nginx2 "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01" - redis_v2023_04_01 "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01" + redis_2023_08_01 "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01" servicenetworking_v2023_05_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-05-01-preview" storagecache_2023_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01" timeseriesinsights_v2020_05_15 "github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15" @@ -254,7 +254,7 @@ type Client struct { PrivateDnsResolver *dnsresolver.Client Purview *purview.Client RecoveryServices *recoveryServices.Client - Redis *redis_v2023_04_01.Client + Redis *redis_2023_08_01.Client RedisEnterprise *redisenterprise.Client Relay *relay.Client Resource *resource.Client diff --git a/internal/services/network/private_endpoint_resource.go b/internal/services/network/private_endpoint_resource.go index 19eb57e0d6e8..9392f7647a21 100644 --- a/internal/services/network/private_endpoint_resource.go +++ b/internal/services/network/private_endpoint_resource.go @@ -21,7 +21,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-06-01/privateendpoints" postgresqlServers "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/redis/client/client.go b/internal/services/redis/client/client.go index a515f925d0e1..978416776c54 100644 --- a/internal/services/redis/client/client.go +++ b/internal/services/redis/client/client.go @@ -6,13 +6,13 @@ package client import ( "fmt" - redis_2023_04_01 "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01" + redis_2023_08_01 "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) -func NewClient(o *common.ClientOptions) (*redis_2023_04_01.Client, error) { - client, err := redis_2023_04_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { +func NewClient(o *common.ClientOptions) (*redis_2023_08_01.Client, error) { + client, err := redis_2023_08_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { c.Authorizer = o.Authorizers.ResourceManager }) if err != nil { diff --git a/internal/services/redis/migration/firewall_rule_v0_to_v1.go b/internal/services/redis/migration/firewall_rule_v0_to_v1.go index 33c7ab74d527..66e5ec5cc405 100644 --- a/internal/services/redis/migration/firewall_rule_v0_to_v1.go +++ b/internal/services/redis/migration/firewall_rule_v0_to_v1.go @@ -7,7 +7,7 @@ import ( "context" "log" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/redis/migration/linked_server_v0_to_v1.go b/internal/services/redis/migration/linked_server_v0_to_v1.go index 073b0e64e674..a22c0ce16866 100644 --- a/internal/services/redis/migration/linked_server_v0_to_v1.go +++ b/internal/services/redis/migration/linked_server_v0_to_v1.go @@ -7,7 +7,7 @@ import ( "context" "log" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/redis/migration/redis_cache_v0_to_v1.go b/internal/services/redis/migration/redis_cache_v0_to_v1.go index 42ec88edb215..31a71f3b0ce4 100644 --- a/internal/services/redis/migration/redis_cache_v0_to_v1.go +++ b/internal/services/redis/migration/redis_cache_v0_to_v1.go @@ -8,7 +8,7 @@ import ( "log" "strings" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" diff --git a/internal/services/redis/redis_cache_data_source.go b/internal/services/redis/redis_cache_data_source.go index ddfe1dea0968..ce7e9aa7ad12 100644 --- a/internal/services/redis/redis_cache_data_source.go +++ b/internal/services/redis/redis_cache_data_source.go @@ -13,8 +13,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/redis/redis_cache_resource.go b/internal/services/redis/redis_cache_resource.go index 0dffb2b669d2..146d008911f6 100644 --- a/internal/services/redis/redis_cache_resource.go +++ b/internal/services/redis/redis_cache_resource.go @@ -19,8 +19,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" azValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/internal/services/redis/redis_cache_resource_test.go b/internal/services/redis/redis_cache_resource_test.go index d5bd281fd20d..d511c817835f 100644 --- a/internal/services/redis/redis_cache_resource_test.go +++ b/internal/services/redis/redis_cache_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/redis/redis_firewall_rule_resource.go b/internal/services/redis/redis_firewall_rule_resource.go index 7cfb1781bd91..3c2d29438627 100644 --- a/internal/services/redis/redis_firewall_rule_resource.go +++ b/internal/services/redis/redis_firewall_rule_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/redis/migration" diff --git a/internal/services/redis/redis_firewall_rule_resource_test.go b/internal/services/redis/redis_firewall_rule_resource_test.go index ca4c2737cd11..610f1b2a9b02 100644 --- a/internal/services/redis/redis_firewall_rule_resource_test.go +++ b/internal/services/redis/redis_firewall_rule_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/redis/redis_linked_server_resource.go b/internal/services/redis/redis_linked_server_resource.go index c233345e7269..aa070c866399 100644 --- a/internal/services/redis/redis_linked_server_resource.go +++ b/internal/services/redis/redis_linked_server_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/redis/migration" diff --git a/internal/services/redis/redis_linked_server_resource_test.go b/internal/services/redis/redis_linked_server_resource_test.go index bc6555827fb2..20f281355725 100644 --- a/internal/services/redis/redis_linked_server_resource_test.go +++ b/internal/services/redis/redis_linked_server_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/springcloud/spring_cloud_app_redis_association_resource.go b/internal/services/springcloud/spring_cloud_app_redis_association_resource.go index 50485e461e0d..59540a8b65ad 100644 --- a/internal/services/springcloud/spring_cloud_app_redis_association_resource.go +++ b/internal/services/springcloud/spring_cloud_app_redis_association_resource.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/migration" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/README.md new file mode 100644 index 000000000000..75e662f4b423 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/README.md @@ -0,0 +1,144 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad` Documentation + +The `aad` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-08-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad" +``` + + +### Client Initialization + +```go +client := aad.NewAADClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AADClient.AccessPolicyAssignmentCreateUpdate` + +```go +ctx := context.TODO() +id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") + +payload := aad.RedisCacheAccessPolicyAssignment{ + // ... +} + + +if err := client.AccessPolicyAssignmentCreateUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AADClient.AccessPolicyAssignmentDelete` + +```go +ctx := context.TODO() +id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") + +if err := client.AccessPolicyAssignmentDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `AADClient.AccessPolicyAssignmentGet` + +```go +ctx := context.TODO() +id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") + +read, err := client.AccessPolicyAssignmentGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AADClient.AccessPolicyAssignmentList` + +```go +ctx := context.TODO() +id := aad.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") + +// alternatively `client.AccessPolicyAssignmentList(ctx, id)` can be used to do batched pagination +items, err := client.AccessPolicyAssignmentListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AADClient.AccessPolicyCreateUpdate` + +```go +ctx := context.TODO() +id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") + +payload := aad.RedisCacheAccessPolicy{ + // ... +} + + +if err := client.AccessPolicyCreateUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AADClient.AccessPolicyDelete` + +```go +ctx := context.TODO() +id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") + +if err := client.AccessPolicyDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `AADClient.AccessPolicyGet` + +```go +ctx := context.TODO() +id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") + +read, err := client.AccessPolicyGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AADClient.AccessPolicyList` + +```go +ctx := context.TODO() +id := aad.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") + +// alternatively `client.AccessPolicyList(ctx, id)` can be used to do batched pagination +items, err := client.AccessPolicyListComplete(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/redis/2023-08-01/aad/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/client.go new file mode 100644 index 000000000000..d63430798e52 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/client.go @@ -0,0 +1,26 @@ +package aad + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AADClient struct { + Client *resourcemanager.Client +} + +func NewAADClientWithBaseURI(sdkApi sdkEnv.Api) (*AADClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "aad", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating AADClient: %+v", err) + } + + return &AADClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/constants.go new file mode 100644 index 000000000000..986654e8de25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/constants.go @@ -0,0 +1,157 @@ +package aad + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentProvisioningState string + +const ( + AccessPolicyAssignmentProvisioningStateCanceled AccessPolicyAssignmentProvisioningState = "Canceled" + AccessPolicyAssignmentProvisioningStateDeleted AccessPolicyAssignmentProvisioningState = "Deleted" + AccessPolicyAssignmentProvisioningStateDeleting AccessPolicyAssignmentProvisioningState = "Deleting" + AccessPolicyAssignmentProvisioningStateFailed AccessPolicyAssignmentProvisioningState = "Failed" + AccessPolicyAssignmentProvisioningStateSucceeded AccessPolicyAssignmentProvisioningState = "Succeeded" + AccessPolicyAssignmentProvisioningStateUpdating AccessPolicyAssignmentProvisioningState = "Updating" +) + +func PossibleValuesForAccessPolicyAssignmentProvisioningState() []string { + return []string{ + string(AccessPolicyAssignmentProvisioningStateCanceled), + string(AccessPolicyAssignmentProvisioningStateDeleted), + string(AccessPolicyAssignmentProvisioningStateDeleting), + string(AccessPolicyAssignmentProvisioningStateFailed), + string(AccessPolicyAssignmentProvisioningStateSucceeded), + string(AccessPolicyAssignmentProvisioningStateUpdating), + } +} + +func (s *AccessPolicyAssignmentProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccessPolicyAssignmentProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccessPolicyAssignmentProvisioningState(input string) (*AccessPolicyAssignmentProvisioningState, error) { + vals := map[string]AccessPolicyAssignmentProvisioningState{ + "canceled": AccessPolicyAssignmentProvisioningStateCanceled, + "deleted": AccessPolicyAssignmentProvisioningStateDeleted, + "deleting": AccessPolicyAssignmentProvisioningStateDeleting, + "failed": AccessPolicyAssignmentProvisioningStateFailed, + "succeeded": AccessPolicyAssignmentProvisioningStateSucceeded, + "updating": AccessPolicyAssignmentProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AccessPolicyAssignmentProvisioningState(input) + return &out, nil +} + +type AccessPolicyProvisioningState string + +const ( + AccessPolicyProvisioningStateCanceled AccessPolicyProvisioningState = "Canceled" + AccessPolicyProvisioningStateDeleted AccessPolicyProvisioningState = "Deleted" + AccessPolicyProvisioningStateDeleting AccessPolicyProvisioningState = "Deleting" + AccessPolicyProvisioningStateFailed AccessPolicyProvisioningState = "Failed" + AccessPolicyProvisioningStateSucceeded AccessPolicyProvisioningState = "Succeeded" + AccessPolicyProvisioningStateUpdating AccessPolicyProvisioningState = "Updating" +) + +func PossibleValuesForAccessPolicyProvisioningState() []string { + return []string{ + string(AccessPolicyProvisioningStateCanceled), + string(AccessPolicyProvisioningStateDeleted), + string(AccessPolicyProvisioningStateDeleting), + string(AccessPolicyProvisioningStateFailed), + string(AccessPolicyProvisioningStateSucceeded), + string(AccessPolicyProvisioningStateUpdating), + } +} + +func (s *AccessPolicyProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccessPolicyProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccessPolicyProvisioningState(input string) (*AccessPolicyProvisioningState, error) { + vals := map[string]AccessPolicyProvisioningState{ + "canceled": AccessPolicyProvisioningStateCanceled, + "deleted": AccessPolicyProvisioningStateDeleted, + "deleting": AccessPolicyProvisioningStateDeleting, + "failed": AccessPolicyProvisioningStateFailed, + "succeeded": AccessPolicyProvisioningStateSucceeded, + "updating": AccessPolicyProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AccessPolicyProvisioningState(input) + return &out, nil +} + +type AccessPolicyType string + +const ( + AccessPolicyTypeBuiltIn AccessPolicyType = "BuiltIn" + AccessPolicyTypeCustom AccessPolicyType = "Custom" +) + +func PossibleValuesForAccessPolicyType() []string { + return []string{ + string(AccessPolicyTypeBuiltIn), + string(AccessPolicyTypeCustom), + } +} + +func (s *AccessPolicyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccessPolicyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccessPolicyType(input string) (*AccessPolicyType, error) { + vals := map[string]AccessPolicyType{ + "builtin": AccessPolicyTypeBuiltIn, + "custom": AccessPolicyTypeCustom, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AccessPolicyType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_accesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_accesspolicy.go new file mode 100644 index 000000000000..cffea9db453d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_accesspolicy.go @@ -0,0 +1,140 @@ +package aad + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = AccessPolicyId{} + +// AccessPolicyId is a struct representing the Resource ID for a Access Policy +type AccessPolicyId struct { + SubscriptionId string + ResourceGroupName string + RedisName string + AccessPolicyName string +} + +// NewAccessPolicyID returns a new AccessPolicyId struct +func NewAccessPolicyID(subscriptionId string, resourceGroupName string, redisName string, accessPolicyName string) AccessPolicyId { + return AccessPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RedisName: redisName, + AccessPolicyName: accessPolicyName, + } +} + +// ParseAccessPolicyID parses 'input' into a AccessPolicyId +func ParseAccessPolicyID(input string) (*AccessPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(AccessPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := AccessPolicyId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + if id.AccessPolicyName, ok = parsed.Parsed["accessPolicyName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "accessPolicyName", *parsed) + } + + return &id, nil +} + +// ParseAccessPolicyIDInsensitively parses 'input' case-insensitively into a AccessPolicyId +// note: this method should only be used for API response data and not user input +func ParseAccessPolicyIDInsensitively(input string) (*AccessPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(AccessPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := AccessPolicyId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + if id.AccessPolicyName, ok = parsed.Parsed["accessPolicyName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "accessPolicyName", *parsed) + } + + return &id, nil +} + +// ValidateAccessPolicyID checks that 'input' can be parsed as a Access Policy ID +func ValidateAccessPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseAccessPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Access Policy ID +func (id AccessPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Cache/redis/%s/accessPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RedisName, id.AccessPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Access Policy ID +func (id AccessPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), + resourceids.StaticSegment("staticRedis", "redis", "redis"), + resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.StaticSegment("staticAccessPolicies", "accessPolicies", "accessPolicies"), + resourceids.UserSpecifiedSegment("accessPolicyName", "accessPolicyValue"), + } +} + +// String returns a human-readable description of this Access Policy ID +func (id AccessPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Redis Name: %q", id.RedisName), + fmt.Sprintf("Access Policy Name: %q", id.AccessPolicyName), + } + return fmt.Sprintf("Access Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_accesspolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_accesspolicyassignment.go new file mode 100644 index 000000000000..c3d4cd8bc390 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_accesspolicyassignment.go @@ -0,0 +1,140 @@ +package aad + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = AccessPolicyAssignmentId{} + +// AccessPolicyAssignmentId is a struct representing the Resource ID for a Access Policy Assignment +type AccessPolicyAssignmentId struct { + SubscriptionId string + ResourceGroupName string + RedisName string + AccessPolicyAssignmentName string +} + +// NewAccessPolicyAssignmentID returns a new AccessPolicyAssignmentId struct +func NewAccessPolicyAssignmentID(subscriptionId string, resourceGroupName string, redisName string, accessPolicyAssignmentName string) AccessPolicyAssignmentId { + return AccessPolicyAssignmentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RedisName: redisName, + AccessPolicyAssignmentName: accessPolicyAssignmentName, + } +} + +// ParseAccessPolicyAssignmentID parses 'input' into a AccessPolicyAssignmentId +func ParseAccessPolicyAssignmentID(input string) (*AccessPolicyAssignmentId, error) { + parser := resourceids.NewParserFromResourceIdType(AccessPolicyAssignmentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := AccessPolicyAssignmentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + if id.AccessPolicyAssignmentName, ok = parsed.Parsed["accessPolicyAssignmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "accessPolicyAssignmentName", *parsed) + } + + return &id, nil +} + +// ParseAccessPolicyAssignmentIDInsensitively parses 'input' case-insensitively into a AccessPolicyAssignmentId +// note: this method should only be used for API response data and not user input +func ParseAccessPolicyAssignmentIDInsensitively(input string) (*AccessPolicyAssignmentId, error) { + parser := resourceids.NewParserFromResourceIdType(AccessPolicyAssignmentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := AccessPolicyAssignmentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + if id.AccessPolicyAssignmentName, ok = parsed.Parsed["accessPolicyAssignmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "accessPolicyAssignmentName", *parsed) + } + + return &id, nil +} + +// ValidateAccessPolicyAssignmentID checks that 'input' can be parsed as a Access Policy Assignment ID +func ValidateAccessPolicyAssignmentID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseAccessPolicyAssignmentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Access Policy Assignment ID +func (id AccessPolicyAssignmentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Cache/redis/%s/accessPolicyAssignments/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RedisName, id.AccessPolicyAssignmentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Access Policy Assignment ID +func (id AccessPolicyAssignmentId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), + resourceids.StaticSegment("staticRedis", "redis", "redis"), + resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.StaticSegment("staticAccessPolicyAssignments", "accessPolicyAssignments", "accessPolicyAssignments"), + resourceids.UserSpecifiedSegment("accessPolicyAssignmentName", "accessPolicyAssignmentValue"), + } +} + +// String returns a human-readable description of this Access Policy Assignment ID +func (id AccessPolicyAssignmentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Redis Name: %q", id.RedisName), + fmt.Sprintf("Access Policy Assignment Name: %q", id.AccessPolicyAssignmentName), + } + return fmt.Sprintf("Access Policy Assignment (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_redi.go new file mode 100644 index 000000000000..deefc7bac862 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/id_redi.go @@ -0,0 +1,127 @@ +package aad + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = RediId{} + +// RediId is a struct representing the Resource ID for a Redi +type RediId struct { + SubscriptionId string + ResourceGroupName string + RedisName string +} + +// NewRediID returns a new RediId struct +func NewRediID(subscriptionId string, resourceGroupName string, redisName string) RediId { + return RediId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RedisName: redisName, + } +} + +// ParseRediID parses 'input' into a RediId +func ParseRediID(input string) (*RediId, error) { + parser := resourceids.NewParserFromResourceIdType(RediId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := RediId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + return &id, nil +} + +// ParseRediIDInsensitively parses 'input' case-insensitively into a RediId +// note: this method should only be used for API response data and not user input +func ParseRediIDInsensitively(input string) (*RediId, error) { + parser := resourceids.NewParserFromResourceIdType(RediId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := RediId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + return &id, nil +} + +// ValidateRediID checks that 'input' can be parsed as a Redi ID +func ValidateRediID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRediID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Redi ID +func (id RediId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Cache/redis/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RedisName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Redi ID +func (id RediId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), + resourceids.StaticSegment("staticRedis", "redis", "redis"), + resourceids.UserSpecifiedSegment("redisName", "redisValue"), + } +} + +// String returns a human-readable description of this Redi ID +func (id RediId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Redis Name: %q", id.RedisName), + } + return fmt.Sprintf("Redi (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentcreateupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentcreateupdate.go new file mode 100644 index 000000000000..c4381eac4fc2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentcreateupdate.go @@ -0,0 +1,74 @@ +package aad + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentCreateUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AccessPolicyAssignmentCreateUpdate ... +func (c AADClient) AccessPolicyAssignmentCreateUpdate(ctx context.Context, id AccessPolicyAssignmentId, input RedisCacheAccessPolicyAssignment) (result AccessPolicyAssignmentCreateUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AccessPolicyAssignmentCreateUpdateThenPoll performs AccessPolicyAssignmentCreateUpdate then polls until it's completed +func (c AADClient) AccessPolicyAssignmentCreateUpdateThenPoll(ctx context.Context, id AccessPolicyAssignmentId, input RedisCacheAccessPolicyAssignment) error { + result, err := c.AccessPolicyAssignmentCreateUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing AccessPolicyAssignmentCreateUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AccessPolicyAssignmentCreateUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentdelete.go new file mode 100644 index 000000000000..34670691d808 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentdelete.go @@ -0,0 +1,71 @@ +package aad + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AccessPolicyAssignmentDelete ... +func (c AADClient) AccessPolicyAssignmentDelete(ctx context.Context, id AccessPolicyAssignmentId) (result AccessPolicyAssignmentDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AccessPolicyAssignmentDeleteThenPoll performs AccessPolicyAssignmentDelete then polls until it's completed +func (c AADClient) AccessPolicyAssignmentDeleteThenPoll(ctx context.Context, id AccessPolicyAssignmentId) error { + result, err := c.AccessPolicyAssignmentDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing AccessPolicyAssignmentDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AccessPolicyAssignmentDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentget.go new file mode 100644 index 000000000000..a98a62678bbd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentget.go @@ -0,0 +1,51 @@ +package aad + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RedisCacheAccessPolicyAssignment +} + +// AccessPolicyAssignmentGet ... +func (c AADClient) AccessPolicyAssignmentGet(ctx context.Context, id AccessPolicyAssignmentId) (result AccessPolicyAssignmentGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentlist.go new file mode 100644 index 000000000000..cd1d8422ca66 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentlist.go @@ -0,0 +1,89 @@ +package aad + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RedisCacheAccessPolicyAssignment +} + +type AccessPolicyAssignmentListCompleteResult struct { + Items []RedisCacheAccessPolicyAssignment +} + +// AccessPolicyAssignmentList ... +func (c AADClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (result AccessPolicyAssignmentListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/accessPolicyAssignments", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RedisCacheAccessPolicyAssignment `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// AccessPolicyAssignmentListComplete retrieves all the results into a single object +func (c AADClient) AccessPolicyAssignmentListComplete(ctx context.Context, id RediId) (AccessPolicyAssignmentListCompleteResult, error) { + return c.AccessPolicyAssignmentListCompleteMatchingPredicate(ctx, id, RedisCacheAccessPolicyAssignmentOperationPredicate{}) +} + +// AccessPolicyAssignmentListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AADClient) AccessPolicyAssignmentListCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisCacheAccessPolicyAssignmentOperationPredicate) (result AccessPolicyAssignmentListCompleteResult, err error) { + items := make([]RedisCacheAccessPolicyAssignment, 0) + + resp, err := c.AccessPolicyAssignmentList(ctx, id) + 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 = AccessPolicyAssignmentListCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicycreateupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicycreateupdate.go new file mode 100644 index 000000000000..135dd7be9ada --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicycreateupdate.go @@ -0,0 +1,74 @@ +package aad + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyCreateUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AccessPolicyCreateUpdate ... +func (c AADClient) AccessPolicyCreateUpdate(ctx context.Context, id AccessPolicyId, input RedisCacheAccessPolicy) (result AccessPolicyCreateUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AccessPolicyCreateUpdateThenPoll performs AccessPolicyCreateUpdate then polls until it's completed +func (c AADClient) AccessPolicyCreateUpdateThenPoll(ctx context.Context, id AccessPolicyId, input RedisCacheAccessPolicy) error { + result, err := c.AccessPolicyCreateUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing AccessPolicyCreateUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AccessPolicyCreateUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicydelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicydelete.go new file mode 100644 index 000000000000..c61d9ffd6e53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicydelete.go @@ -0,0 +1,71 @@ +package aad + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AccessPolicyDelete ... +func (c AADClient) AccessPolicyDelete(ctx context.Context, id AccessPolicyId) (result AccessPolicyDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AccessPolicyDeleteThenPoll performs AccessPolicyDelete then polls until it's completed +func (c AADClient) AccessPolicyDeleteThenPoll(ctx context.Context, id AccessPolicyId) error { + result, err := c.AccessPolicyDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing AccessPolicyDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AccessPolicyDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyget.go new file mode 100644 index 000000000000..80d3e9e46b1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicyget.go @@ -0,0 +1,51 @@ +package aad + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RedisCacheAccessPolicy +} + +// AccessPolicyGet ... +func (c AADClient) AccessPolicyGet(ctx context.Context, id AccessPolicyId) (result AccessPolicyGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicylist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicylist.go new file mode 100644 index 000000000000..69067db8109a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/method_accesspolicylist.go @@ -0,0 +1,89 @@ +package aad + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RedisCacheAccessPolicy +} + +type AccessPolicyListCompleteResult struct { + Items []RedisCacheAccessPolicy +} + +// AccessPolicyList ... +func (c AADClient) AccessPolicyList(ctx context.Context, id RediId) (result AccessPolicyListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/accessPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RedisCacheAccessPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// AccessPolicyListComplete retrieves all the results into a single object +func (c AADClient) AccessPolicyListComplete(ctx context.Context, id RediId) (AccessPolicyListCompleteResult, error) { + return c.AccessPolicyListCompleteMatchingPredicate(ctx, id, RedisCacheAccessPolicyOperationPredicate{}) +} + +// AccessPolicyListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AADClient) AccessPolicyListCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisCacheAccessPolicyOperationPredicate) (result AccessPolicyListCompleteResult, err error) { + items := make([]RedisCacheAccessPolicy, 0) + + resp, err := c.AccessPolicyList(ctx, id) + 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 = AccessPolicyListCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicy.go new file mode 100644 index 000000000000..c0ebf7c50e61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicy.go @@ -0,0 +1,11 @@ +package aad + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicy struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RedisCacheAccessPolicyProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyassignment.go new file mode 100644 index 000000000000..b92a40296b26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyassignment.go @@ -0,0 +1,11 @@ +package aad + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicyAssignment struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RedisCacheAccessPolicyAssignmentProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyassignmentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyassignmentproperties.go new file mode 100644 index 000000000000..29c78f1456ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyassignmentproperties.go @@ -0,0 +1,11 @@ +package aad + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicyAssignmentProperties struct { + AccessPolicyName string `json:"accessPolicyName"` + ObjectId string `json:"objectId"` + ObjectIdAlias string `json:"objectIdAlias"` + ProvisioningState *AccessPolicyAssignmentProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyproperties.go new file mode 100644 index 000000000000..41925578bd4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/model_rediscacheaccesspolicyproperties.go @@ -0,0 +1,10 @@ +package aad + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicyProperties struct { + Permissions string `json:"permissions"` + ProvisioningState *AccessPolicyProvisioningState `json:"provisioningState,omitempty"` + Type *AccessPolicyType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/predicates.go new file mode 100644 index 000000000000..dff9aa860f92 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/predicates.go @@ -0,0 +1,50 @@ +package aad + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicyOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p RedisCacheAccessPolicyOperationPredicate) Matches(input RedisCacheAccessPolicy) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + 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 + } + + return true +} + +type RedisCacheAccessPolicyAssignmentOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p RedisCacheAccessPolicyAssignmentOperationPredicate) Matches(input RedisCacheAccessPolicyAssignment) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + 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 + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/version.go new file mode 100644 index 000000000000..6308f94f8262 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad/version.go @@ -0,0 +1,12 @@ +package aad + +import "fmt" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-08-01" + +func userAgent() string { + return fmt.Sprintf("hashicorp/go-azure-sdk/aad/%s", defaultApiVersion) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/client.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/client.go index 646057578b51..62086f1d0223 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/client.go @@ -1,4 +1,4 @@ -package v2023_04_01 +package v2023_08_01 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -6,16 +6,18 @@ package v2023_04_01 import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources" - "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources" + "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" ) type Client struct { + AAD *aad.AADClient FirewallRules *firewallrules.FirewallRulesClient PatchSchedules *patchschedules.PatchSchedulesClient PrivateEndpointConnections *privateendpointconnections.PrivateEndpointConnectionsClient @@ -24,6 +26,12 @@ type Client struct { } func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { + aADClient, err := aad.NewAADClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AAD client: %+v", err) + } + configureFunc(aADClient.Client) + firewallRulesClient, err := firewallrules.NewFirewallRulesClientWithBaseURI(sdkApi) if err != nil { return nil, fmt.Errorf("building FirewallRules client: %+v", err) @@ -55,6 +63,7 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag configureFunc(redisClient.Client) return &Client{ + AAD: aADClient, FirewallRules: firewallRulesClient, PatchSchedules: patchSchedulesClient, PrivateEndpointConnections: privateEndpointConnectionsClient, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/README.md index 3ed8bf6f8dde..37db6eb39748 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-04-01`). +The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules" +import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/id_firewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/id_firewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/id_firewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/id_redi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/id_redi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/id_redi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/model_redisfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/model_redisfirewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/model_redisfirewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/model_redisfirewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/model_redisfirewallruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/model_redisfirewallruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/model_redisfirewallruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/model_redisfirewallruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/version.go index 105d76dcc161..462dbea42fa7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-04-01" +const defaultApiVersion = "2023-08-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/firewallrules/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/README.md index 59840a491943..e5978541e01f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules` Documentation -The `patchschedules` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-04-01`). +The `patchschedules` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules" +import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/id_redi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/id_redi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/id_redi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/method_listbyredisresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/method_listbyredisresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/method_listbyredisresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/method_listbyredisresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/model_redispatchschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/model_redispatchschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/model_redispatchschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/model_redispatchschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/model_scheduleentries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/model_scheduleentries.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/model_scheduleentries.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/model_scheduleentries.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/model_scheduleentry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/model_scheduleentry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/model_scheduleentry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/model_scheduleentry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/version.go index e6e56f99518d..fcc70f1e72a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-04-01" +const defaultApiVersion = "2023-08-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/patchschedules/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/README.md index 687f717c721f..ba9547257b3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-04-01`). +The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections" +import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/id_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/id_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/id_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/id_redi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/id_redi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/id_redi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/method_put.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/method_put.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/method_put.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privateendpointconnectionlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privateendpointconnectionlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privateendpointconnectionlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privateendpointconnectionlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/version.go index cd043ed6ee9a..4f6bde1fe04b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-04-01" +const defaultApiVersion = "2023-08-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/README.md index e3f7c7e5b709..9c4af3c57528 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources` Documentation -The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-04-01`). +The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources" +import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/id_redi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/id_redi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/id_redi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/method_listbyrediscache.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/method_listbyrediscache.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/method_listbyrediscache.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/method_listbyrediscache.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/model_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/model_privatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/model_privatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/model_privatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/model_privatelinkresourcelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/model_privatelinkresourcelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/model_privatelinkresourcelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/model_privatelinkresourcelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/model_privatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/model_privatelinkresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/model_privatelinkresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/model_privatelinkresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/version.go index 3e0f00057d5a..a18b2099dd42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-04-01" +const defaultApiVersion = "2023-08-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkresources/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/README.md similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/README.md index aaee226e1f03..29891d03d6b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis` Documentation -The `redis` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-04-01`). +The `redis` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2023-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis" +import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis" ``` @@ -20,6 +20,130 @@ client.Client.Authorizer = authorizer ``` +### Example Usage: `RedisClient.AccessPolicyAssignmentCreateUpdate` + +```go +ctx := context.TODO() +id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") + +payload := redis.RedisCacheAccessPolicyAssignment{ + // ... +} + + +if err := client.AccessPolicyAssignmentCreateUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RedisClient.AccessPolicyAssignmentDelete` + +```go +ctx := context.TODO() +id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") + +if err := client.AccessPolicyAssignmentDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RedisClient.AccessPolicyAssignmentGet` + +```go +ctx := context.TODO() +id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") + +read, err := client.AccessPolicyAssignmentGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RedisClient.AccessPolicyAssignmentList` + +```go +ctx := context.TODO() +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") + +// alternatively `client.AccessPolicyAssignmentList(ctx, id)` can be used to do batched pagination +items, err := client.AccessPolicyAssignmentListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RedisClient.AccessPolicyCreateUpdate` + +```go +ctx := context.TODO() +id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") + +payload := redis.RedisCacheAccessPolicy{ + // ... +} + + +if err := client.AccessPolicyCreateUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RedisClient.AccessPolicyDelete` + +```go +ctx := context.TODO() +id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") + +if err := client.AccessPolicyDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RedisClient.AccessPolicyGet` + +```go +ctx := context.TODO() +id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") + +read, err := client.AccessPolicyGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RedisClient.AccessPolicyList` + +```go +ctx := context.TODO() +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") + +// alternatively `client.AccessPolicyList(ctx, id)` can be used to do batched pagination +items, err := client.AccessPolicyListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + ### Example Usage: `RedisClient.CheckNameAvailability` ```go @@ -157,6 +281,18 @@ for _, item := range items { ``` +### Example Usage: `RedisClient.FlushCache` + +```go +ctx := context.TODO() +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") + +if err := client.FlushCacheThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + ### Example Usage: `RedisClient.ForceReboot` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/constants.go similarity index 70% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/constants.go index 69ce70f28669..7e45a324d5df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/constants.go @@ -9,6 +9,153 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type AccessPolicyAssignmentProvisioningState string + +const ( + AccessPolicyAssignmentProvisioningStateCanceled AccessPolicyAssignmentProvisioningState = "Canceled" + AccessPolicyAssignmentProvisioningStateDeleted AccessPolicyAssignmentProvisioningState = "Deleted" + AccessPolicyAssignmentProvisioningStateDeleting AccessPolicyAssignmentProvisioningState = "Deleting" + AccessPolicyAssignmentProvisioningStateFailed AccessPolicyAssignmentProvisioningState = "Failed" + AccessPolicyAssignmentProvisioningStateSucceeded AccessPolicyAssignmentProvisioningState = "Succeeded" + AccessPolicyAssignmentProvisioningStateUpdating AccessPolicyAssignmentProvisioningState = "Updating" +) + +func PossibleValuesForAccessPolicyAssignmentProvisioningState() []string { + return []string{ + string(AccessPolicyAssignmentProvisioningStateCanceled), + string(AccessPolicyAssignmentProvisioningStateDeleted), + string(AccessPolicyAssignmentProvisioningStateDeleting), + string(AccessPolicyAssignmentProvisioningStateFailed), + string(AccessPolicyAssignmentProvisioningStateSucceeded), + string(AccessPolicyAssignmentProvisioningStateUpdating), + } +} + +func (s *AccessPolicyAssignmentProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccessPolicyAssignmentProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccessPolicyAssignmentProvisioningState(input string) (*AccessPolicyAssignmentProvisioningState, error) { + vals := map[string]AccessPolicyAssignmentProvisioningState{ + "canceled": AccessPolicyAssignmentProvisioningStateCanceled, + "deleted": AccessPolicyAssignmentProvisioningStateDeleted, + "deleting": AccessPolicyAssignmentProvisioningStateDeleting, + "failed": AccessPolicyAssignmentProvisioningStateFailed, + "succeeded": AccessPolicyAssignmentProvisioningStateSucceeded, + "updating": AccessPolicyAssignmentProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AccessPolicyAssignmentProvisioningState(input) + return &out, nil +} + +type AccessPolicyProvisioningState string + +const ( + AccessPolicyProvisioningStateCanceled AccessPolicyProvisioningState = "Canceled" + AccessPolicyProvisioningStateDeleted AccessPolicyProvisioningState = "Deleted" + AccessPolicyProvisioningStateDeleting AccessPolicyProvisioningState = "Deleting" + AccessPolicyProvisioningStateFailed AccessPolicyProvisioningState = "Failed" + AccessPolicyProvisioningStateSucceeded AccessPolicyProvisioningState = "Succeeded" + AccessPolicyProvisioningStateUpdating AccessPolicyProvisioningState = "Updating" +) + +func PossibleValuesForAccessPolicyProvisioningState() []string { + return []string{ + string(AccessPolicyProvisioningStateCanceled), + string(AccessPolicyProvisioningStateDeleted), + string(AccessPolicyProvisioningStateDeleting), + string(AccessPolicyProvisioningStateFailed), + string(AccessPolicyProvisioningStateSucceeded), + string(AccessPolicyProvisioningStateUpdating), + } +} + +func (s *AccessPolicyProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccessPolicyProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccessPolicyProvisioningState(input string) (*AccessPolicyProvisioningState, error) { + vals := map[string]AccessPolicyProvisioningState{ + "canceled": AccessPolicyProvisioningStateCanceled, + "deleted": AccessPolicyProvisioningStateDeleted, + "deleting": AccessPolicyProvisioningStateDeleting, + "failed": AccessPolicyProvisioningStateFailed, + "succeeded": AccessPolicyProvisioningStateSucceeded, + "updating": AccessPolicyProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AccessPolicyProvisioningState(input) + return &out, nil +} + +type AccessPolicyType string + +const ( + AccessPolicyTypeBuiltIn AccessPolicyType = "BuiltIn" + AccessPolicyTypeCustom AccessPolicyType = "Custom" +) + +func PossibleValuesForAccessPolicyType() []string { + return []string{ + string(AccessPolicyTypeBuiltIn), + string(AccessPolicyTypeCustom), + } +} + +func (s *AccessPolicyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccessPolicyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccessPolicyType(input string) (*AccessPolicyType, error) { + vals := map[string]AccessPolicyType{ + "builtin": AccessPolicyTypeBuiltIn, + "custom": AccessPolicyTypeCustom, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AccessPolicyType(input) + return &out, nil +} + type DayOfWeek string const ( @@ -165,6 +312,7 @@ func parsePrivateEndpointServiceConnectionStatus(input string) (*PrivateEndpoint type ProvisioningState string const ( + ProvisioningStateConfiguringAAD ProvisioningState = "ConfiguringAAD" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateDisabled ProvisioningState = "Disabled" @@ -181,6 +329,7 @@ const ( func PossibleValuesForProvisioningState() []string { return []string{ + string(ProvisioningStateConfiguringAAD), string(ProvisioningStateCreating), string(ProvisioningStateDeleting), string(ProvisioningStateDisabled), @@ -211,6 +360,7 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { func parseProvisioningState(input string) (*ProvisioningState, error) { vals := map[string]ProvisioningState{ + "configuringaad": ProvisioningStateConfiguringAAD, "creating": ProvisioningStateCreating, "deleting": ProvisioningStateDeleting, "disabled": ProvisioningStateDisabled, @@ -528,3 +678,44 @@ func parseTlsVersion(input string) (*TlsVersion, error) { out := TlsVersion(input) return &out, nil } + +type UpdateChannel string + +const ( + UpdateChannelPreview UpdateChannel = "Preview" + UpdateChannelStable UpdateChannel = "Stable" +) + +func PossibleValuesForUpdateChannel() []string { + return []string{ + string(UpdateChannelPreview), + string(UpdateChannelStable), + } +} + +func (s *UpdateChannel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUpdateChannel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUpdateChannel(input string) (*UpdateChannel, error) { + vals := map[string]UpdateChannel{ + "preview": UpdateChannelPreview, + "stable": UpdateChannelStable, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UpdateChannel(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_accesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_accesspolicy.go new file mode 100644 index 000000000000..511bbf9c56c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_accesspolicy.go @@ -0,0 +1,140 @@ +package redis + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = AccessPolicyId{} + +// AccessPolicyId is a struct representing the Resource ID for a Access Policy +type AccessPolicyId struct { + SubscriptionId string + ResourceGroupName string + RedisName string + AccessPolicyName string +} + +// NewAccessPolicyID returns a new AccessPolicyId struct +func NewAccessPolicyID(subscriptionId string, resourceGroupName string, redisName string, accessPolicyName string) AccessPolicyId { + return AccessPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RedisName: redisName, + AccessPolicyName: accessPolicyName, + } +} + +// ParseAccessPolicyID parses 'input' into a AccessPolicyId +func ParseAccessPolicyID(input string) (*AccessPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(AccessPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := AccessPolicyId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + if id.AccessPolicyName, ok = parsed.Parsed["accessPolicyName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "accessPolicyName", *parsed) + } + + return &id, nil +} + +// ParseAccessPolicyIDInsensitively parses 'input' case-insensitively into a AccessPolicyId +// note: this method should only be used for API response data and not user input +func ParseAccessPolicyIDInsensitively(input string) (*AccessPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(AccessPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := AccessPolicyId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + if id.AccessPolicyName, ok = parsed.Parsed["accessPolicyName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "accessPolicyName", *parsed) + } + + return &id, nil +} + +// ValidateAccessPolicyID checks that 'input' can be parsed as a Access Policy ID +func ValidateAccessPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseAccessPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Access Policy ID +func (id AccessPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Cache/redis/%s/accessPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RedisName, id.AccessPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Access Policy ID +func (id AccessPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), + resourceids.StaticSegment("staticRedis", "redis", "redis"), + resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.StaticSegment("staticAccessPolicies", "accessPolicies", "accessPolicies"), + resourceids.UserSpecifiedSegment("accessPolicyName", "accessPolicyValue"), + } +} + +// String returns a human-readable description of this Access Policy ID +func (id AccessPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Redis Name: %q", id.RedisName), + fmt.Sprintf("Access Policy Name: %q", id.AccessPolicyName), + } + return fmt.Sprintf("Access Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_accesspolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_accesspolicyassignment.go new file mode 100644 index 000000000000..ee52831a8b01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_accesspolicyassignment.go @@ -0,0 +1,140 @@ +package redis + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = AccessPolicyAssignmentId{} + +// AccessPolicyAssignmentId is a struct representing the Resource ID for a Access Policy Assignment +type AccessPolicyAssignmentId struct { + SubscriptionId string + ResourceGroupName string + RedisName string + AccessPolicyAssignmentName string +} + +// NewAccessPolicyAssignmentID returns a new AccessPolicyAssignmentId struct +func NewAccessPolicyAssignmentID(subscriptionId string, resourceGroupName string, redisName string, accessPolicyAssignmentName string) AccessPolicyAssignmentId { + return AccessPolicyAssignmentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RedisName: redisName, + AccessPolicyAssignmentName: accessPolicyAssignmentName, + } +} + +// ParseAccessPolicyAssignmentID parses 'input' into a AccessPolicyAssignmentId +func ParseAccessPolicyAssignmentID(input string) (*AccessPolicyAssignmentId, error) { + parser := resourceids.NewParserFromResourceIdType(AccessPolicyAssignmentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := AccessPolicyAssignmentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + if id.AccessPolicyAssignmentName, ok = parsed.Parsed["accessPolicyAssignmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "accessPolicyAssignmentName", *parsed) + } + + return &id, nil +} + +// ParseAccessPolicyAssignmentIDInsensitively parses 'input' case-insensitively into a AccessPolicyAssignmentId +// note: this method should only be used for API response data and not user input +func ParseAccessPolicyAssignmentIDInsensitively(input string) (*AccessPolicyAssignmentId, error) { + parser := resourceids.NewParserFromResourceIdType(AccessPolicyAssignmentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := AccessPolicyAssignmentId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.RedisName, ok = parsed.Parsed["redisName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "redisName", *parsed) + } + + if id.AccessPolicyAssignmentName, ok = parsed.Parsed["accessPolicyAssignmentName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "accessPolicyAssignmentName", *parsed) + } + + return &id, nil +} + +// ValidateAccessPolicyAssignmentID checks that 'input' can be parsed as a Access Policy Assignment ID +func ValidateAccessPolicyAssignmentID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseAccessPolicyAssignmentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Access Policy Assignment ID +func (id AccessPolicyAssignmentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Cache/redis/%s/accessPolicyAssignments/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RedisName, id.AccessPolicyAssignmentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Access Policy Assignment ID +func (id AccessPolicyAssignmentId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), + resourceids.StaticSegment("staticRedis", "redis", "redis"), + resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.StaticSegment("staticAccessPolicyAssignments", "accessPolicyAssignments", "accessPolicyAssignments"), + resourceids.UserSpecifiedSegment("accessPolicyAssignmentName", "accessPolicyAssignmentValue"), + } +} + +// String returns a human-readable description of this Access Policy Assignment ID +func (id AccessPolicyAssignmentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Redis Name: %q", id.RedisName), + fmt.Sprintf("Access Policy Assignment Name: %q", id.AccessPolicyAssignmentName), + } + return fmt.Sprintf("Access Policy Assignment (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_firewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/id_firewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_firewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/id_linkedserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_linkedserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/id_linkedserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_linkedserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_redi.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/id_redi.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/id_redi.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentcreateupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentcreateupdate.go new file mode 100644 index 000000000000..71612ca42eb7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentcreateupdate.go @@ -0,0 +1,74 @@ +package redis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentCreateUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AccessPolicyAssignmentCreateUpdate ... +func (c RedisClient) AccessPolicyAssignmentCreateUpdate(ctx context.Context, id AccessPolicyAssignmentId, input RedisCacheAccessPolicyAssignment) (result AccessPolicyAssignmentCreateUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AccessPolicyAssignmentCreateUpdateThenPoll performs AccessPolicyAssignmentCreateUpdate then polls until it's completed +func (c RedisClient) AccessPolicyAssignmentCreateUpdateThenPoll(ctx context.Context, id AccessPolicyAssignmentId, input RedisCacheAccessPolicyAssignment) error { + result, err := c.AccessPolicyAssignmentCreateUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing AccessPolicyAssignmentCreateUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AccessPolicyAssignmentCreateUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentdelete.go new file mode 100644 index 000000000000..98abbb4c537a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentdelete.go @@ -0,0 +1,71 @@ +package redis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AccessPolicyAssignmentDelete ... +func (c RedisClient) AccessPolicyAssignmentDelete(ctx context.Context, id AccessPolicyAssignmentId) (result AccessPolicyAssignmentDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AccessPolicyAssignmentDeleteThenPoll performs AccessPolicyAssignmentDelete then polls until it's completed +func (c RedisClient) AccessPolicyAssignmentDeleteThenPoll(ctx context.Context, id AccessPolicyAssignmentId) error { + result, err := c.AccessPolicyAssignmentDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing AccessPolicyAssignmentDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AccessPolicyAssignmentDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentget.go new file mode 100644 index 000000000000..ab5e4c5bca94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentget.go @@ -0,0 +1,51 @@ +package redis + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RedisCacheAccessPolicyAssignment +} + +// AccessPolicyAssignmentGet ... +func (c RedisClient) AccessPolicyAssignmentGet(ctx context.Context, id AccessPolicyAssignmentId) (result AccessPolicyAssignmentGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentlist.go new file mode 100644 index 000000000000..d2001a7b1644 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentlist.go @@ -0,0 +1,89 @@ +package redis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyAssignmentListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RedisCacheAccessPolicyAssignment +} + +type AccessPolicyAssignmentListCompleteResult struct { + Items []RedisCacheAccessPolicyAssignment +} + +// AccessPolicyAssignmentList ... +func (c RedisClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (result AccessPolicyAssignmentListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/accessPolicyAssignments", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RedisCacheAccessPolicyAssignment `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// AccessPolicyAssignmentListComplete retrieves all the results into a single object +func (c RedisClient) AccessPolicyAssignmentListComplete(ctx context.Context, id RediId) (AccessPolicyAssignmentListCompleteResult, error) { + return c.AccessPolicyAssignmentListCompleteMatchingPredicate(ctx, id, RedisCacheAccessPolicyAssignmentOperationPredicate{}) +} + +// AccessPolicyAssignmentListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RedisClient) AccessPolicyAssignmentListCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisCacheAccessPolicyAssignmentOperationPredicate) (result AccessPolicyAssignmentListCompleteResult, err error) { + items := make([]RedisCacheAccessPolicyAssignment, 0) + + resp, err := c.AccessPolicyAssignmentList(ctx, id) + 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 = AccessPolicyAssignmentListCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicycreateupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicycreateupdate.go new file mode 100644 index 000000000000..d2b1d3421a16 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicycreateupdate.go @@ -0,0 +1,74 @@ +package redis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyCreateUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AccessPolicyCreateUpdate ... +func (c RedisClient) AccessPolicyCreateUpdate(ctx context.Context, id AccessPolicyId, input RedisCacheAccessPolicy) (result AccessPolicyCreateUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AccessPolicyCreateUpdateThenPoll performs AccessPolicyCreateUpdate then polls until it's completed +func (c RedisClient) AccessPolicyCreateUpdateThenPoll(ctx context.Context, id AccessPolicyId, input RedisCacheAccessPolicy) error { + result, err := c.AccessPolicyCreateUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing AccessPolicyCreateUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AccessPolicyCreateUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicydelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicydelete.go new file mode 100644 index 000000000000..9ea351ca1e85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicydelete.go @@ -0,0 +1,71 @@ +package redis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AccessPolicyDelete ... +func (c RedisClient) AccessPolicyDelete(ctx context.Context, id AccessPolicyId) (result AccessPolicyDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AccessPolicyDeleteThenPoll performs AccessPolicyDelete then polls until it's completed +func (c RedisClient) AccessPolicyDeleteThenPoll(ctx context.Context, id AccessPolicyId) error { + result, err := c.AccessPolicyDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing AccessPolicyDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AccessPolicyDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyget.go new file mode 100644 index 000000000000..8632a2594216 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicyget.go @@ -0,0 +1,51 @@ +package redis + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RedisCacheAccessPolicy +} + +// AccessPolicyGet ... +func (c RedisClient) AccessPolicyGet(ctx context.Context, id AccessPolicyId) (result AccessPolicyGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicylist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicylist.go new file mode 100644 index 000000000000..5bed1108f4dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_accesspolicylist.go @@ -0,0 +1,89 @@ +package redis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicyListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RedisCacheAccessPolicy +} + +type AccessPolicyListCompleteResult struct { + Items []RedisCacheAccessPolicy +} + +// AccessPolicyList ... +func (c RedisClient) AccessPolicyList(ctx context.Context, id RediId) (result AccessPolicyListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/accessPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RedisCacheAccessPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// AccessPolicyListComplete retrieves all the results into a single object +func (c RedisClient) AccessPolicyListComplete(ctx context.Context, id RediId) (AccessPolicyListCompleteResult, error) { + return c.AccessPolicyListCompleteMatchingPredicate(ctx, id, RedisCacheAccessPolicyOperationPredicate{}) +} + +// AccessPolicyListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RedisClient) AccessPolicyListCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisCacheAccessPolicyOperationPredicate) (result AccessPolicyListCompleteResult, err error) { + items := make([]RedisCacheAccessPolicy, 0) + + resp, err := c.AccessPolicyList(ctx, id) + 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 = AccessPolicyListCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_checknameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_checknameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_checknameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_exportdata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_exportdata.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_exportdata.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_exportdata.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_firewallrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_firewallrulescreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_firewallrulescreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_firewallrulescreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_firewallrulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_firewallrulesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_firewallrulesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_firewallrulesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_firewallrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_firewallrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_firewallrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_firewallrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_firewallruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_firewallruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_firewallruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_firewallruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_flushcache.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_flushcache.go new file mode 100644 index 000000000000..0c88147069d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_flushcache.go @@ -0,0 +1,70 @@ +package redis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlushCacheOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// FlushCache ... +func (c RedisClient) FlushCache(ctx context.Context, id RediId) (result FlushCacheOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/flush", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// FlushCacheThenPoll performs FlushCache then polls until it's completed +func (c RedisClient) FlushCacheThenPoll(ctx context.Context, id RediId) error { + result, err := c.FlushCache(ctx, id) + if err != nil { + return fmt.Errorf("performing FlushCache: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after FlushCache: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_forcereboot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_forcereboot.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_forcereboot.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_forcereboot.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_importdata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_importdata.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_importdata.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_importdata.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_linkedservercreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_linkedservercreate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_linkedservercreate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_linkedservercreate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_linkedserverdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_linkedserverdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_linkedserverdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_linkedserverdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_linkedserverget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_linkedserverget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_linkedserverget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_linkedserverget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_linkedserverlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_linkedserverlist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_linkedserverlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_linkedserverlist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_listkeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_listkeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_listkeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_listupgradenotifications.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_listupgradenotifications.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_listupgradenotifications.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_listupgradenotifications.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_patchschedulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_patchschedulescreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_patchschedulescreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_patchschedulescreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_patchschedulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_patchschedulesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_patchschedulesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_patchschedulesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_patchschedulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_patchschedulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_patchschedulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_patchschedulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_patchscheduleslistbyredisresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_patchscheduleslistbyredisresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_patchscheduleslistbyredisresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_patchscheduleslistbyredisresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_regeneratekey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_regeneratekey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_regeneratekey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_checknameavailabilityparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_checknameavailabilityparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_checknameavailabilityparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_checknameavailabilityparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_erroradditionalinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_erroradditionalinfo.go new file mode 100644 index 000000000000..7d21c06cfbce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_erroradditionalinfo.go @@ -0,0 +1,9 @@ +package redis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ErrorAdditionalInfo struct { + Info *interface{} `json:"info,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_errordetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_errordetail.go new file mode 100644 index 000000000000..596d83bf4b29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_errordetail.go @@ -0,0 +1,12 @@ +package redis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ErrorDetail struct { + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` + Code *string `json:"code,omitempty"` + Details *[]ErrorDetail `json:"details,omitempty"` + Message *string `json:"message,omitempty"` + Target *string `json:"target,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_exportrdbparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_exportrdbparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_exportrdbparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_exportrdbparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_importrdbparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_importrdbparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_importrdbparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_importrdbparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_operationstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_operationstatusresult.go new file mode 100644 index 000000000000..3c96128a1641 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_operationstatusresult.go @@ -0,0 +1,45 @@ +package redis + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OperationStatusResult struct { + EndTime *string `json:"endTime,omitempty"` + Error *ErrorDetail `json:"error,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Operations *[]OperationStatusResult `json:"operations,omitempty"` + PercentComplete *float64 `json:"percentComplete,omitempty"` + StartTime *string `json:"startTime,omitempty"` + Status string `json:"status"` +} + +func (o *OperationStatusResult) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *OperationStatusResult) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *OperationStatusResult) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *OperationStatusResult) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisaccesskeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisaccesskeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisaccesskeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisaccesskeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicy.go new file mode 100644 index 000000000000..286bea0dba0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicy.go @@ -0,0 +1,11 @@ +package redis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicy struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RedisCacheAccessPolicyProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyassignment.go new file mode 100644 index 000000000000..b9590293f19a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyassignment.go @@ -0,0 +1,11 @@ +package redis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicyAssignment struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RedisCacheAccessPolicyAssignmentProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyassignmentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyassignmentproperties.go new file mode 100644 index 000000000000..3bdfef2c9a41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyassignmentproperties.go @@ -0,0 +1,11 @@ +package redis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicyAssignmentProperties struct { + AccessPolicyName string `json:"accessPolicyName"` + ObjectId string `json:"objectId"` + ObjectIdAlias string `json:"objectIdAlias"` + ProvisioningState *AccessPolicyAssignmentProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyproperties.go new file mode 100644 index 000000000000..09e526628697 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscacheaccesspolicyproperties.go @@ -0,0 +1,10 @@ +package redis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RedisCacheAccessPolicyProperties struct { + Permissions string `json:"permissions"` + ProvisioningState *AccessPolicyProvisioningState `json:"provisioningState,omitempty"` + Type *AccessPolicyType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_rediscommonpropertiesredisconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscommonpropertiesredisconfiguration.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_rediscommonpropertiesredisconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscommonpropertiesredisconfiguration.go index 1ba34385671d..738fc5dd4a78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_rediscommonpropertiesredisconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscommonpropertiesredisconfiguration.go @@ -4,6 +4,7 @@ package redis // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RedisCommonPropertiesRedisConfiguration struct { + AadEnabled *string `json:"aad-enabled,omitempty"` AofBackupEnabled *string `json:"aof-backup-enabled,omitempty"` AofStorageConnectionString0 *string `json:"aof-storage-connection-string-0,omitempty"` AofStorageConnectionString1 *string `json:"aof-storage-connection-string-1,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_rediscreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_rediscreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_rediscreateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscreateproperties.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_rediscreateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscreateproperties.go index 0ef298ce288b..6d96f4cd088e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_rediscreateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_rediscreateproperties.go @@ -16,4 +16,5 @@ type RedisCreateProperties struct { StaticIP *string `json:"staticIP,omitempty"` SubnetId *string `json:"subnetId,omitempty"` TenantSettings *map[string]string `json:"tenantSettings,omitempty"` + UpdateChannel *UpdateChannel `json:"updateChannel,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisfirewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisfirewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisfirewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisfirewallruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisfirewallruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisfirewallruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisfirewallruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisforcerebootresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisforcerebootresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisforcerebootresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisforcerebootresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisinstancedetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisinstancedetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisinstancedetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisinstancedetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedservercreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedservercreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedservercreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedservercreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedservercreateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedservercreateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedservercreateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedservercreateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedserverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedserverproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedserverproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedserverproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedserverwithproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedserverwithproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redislinkedserverwithproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redislinkedserverwithproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redispatchschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redispatchschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redispatchschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redispatchschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisproperties.go index a96036196abb..87e15f307de9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisproperties.go @@ -24,4 +24,5 @@ type RedisProperties struct { StaticIP *string `json:"staticIP,omitempty"` SubnetId *string `json:"subnetId,omitempty"` TenantSettings *map[string]string `json:"tenantSettings,omitempty"` + UpdateChannel *UpdateChannel `json:"updateChannel,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisrebootparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisrebootparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisrebootparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisrebootparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisregeneratekeyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisregeneratekeyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisregeneratekeyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisregeneratekeyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisupdateproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisupdateproperties.go index e7e74932773d..c0bfe6bdba6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_redisupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_redisupdateproperties.go @@ -14,4 +14,5 @@ type RedisUpdateProperties struct { ShardCount *int64 `json:"shardCount,omitempty"` Sku *Sku `json:"sku,omitempty"` TenantSettings *map[string]string `json:"tenantSettings,omitempty"` + UpdateChannel *UpdateChannel `json:"updateChannel,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_scheduleentries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_scheduleentries.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_scheduleentries.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_scheduleentries.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_scheduleentry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_scheduleentry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_scheduleentry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_scheduleentry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_upgradenotification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_upgradenotification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/model_upgradenotification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/model_upgradenotification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/predicates.go similarity index 73% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/predicates.go index d35468bd7546..bb9e71bc3c0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/predicates.go @@ -3,6 +3,52 @@ package redis // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type RedisCacheAccessPolicyOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p RedisCacheAccessPolicyOperationPredicate) Matches(input RedisCacheAccessPolicy) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + 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 + } + + return true +} + +type RedisCacheAccessPolicyAssignmentOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p RedisCacheAccessPolicyAssignmentOperationPredicate) Matches(input RedisCacheAccessPolicyAssignment) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + 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 + } + + return true +} + type RedisFirewallRuleOperationPredicate struct { Id *string Name *string diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/version.go index 0b455f8f3c89..4b58beff8f39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-04-01" +const defaultApiVersion = "2023-08-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/redis/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index 9326bd04e2e2..1a00380f5bf4 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -846,12 +846,13 @@ github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/ github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryplans github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvaultsetting -github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01 -github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/firewallrules -github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/patchschedules -github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privateendpointconnections -github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/privatelinkresources -github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-04-01/redis +github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01 +github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/aad +github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/firewallrules +github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/patchschedules +github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privateendpointconnections +github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/privatelinkresources +github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections