From eb742484fe7c1895feaf0cd16e66daa1dfde1c1b Mon Sep 17 00:00:00 2001 From: Dave Butler Date: Tue, 3 Aug 2021 15:55:32 -0600 Subject: [PATCH] v0.6.0 release (upgrade Azure array version to 6.1.8. Deactivation for Azure. Fix for #3) --- .gitignore | 2 +- .goreleaser.yml | 2 +- CHANGELOG.md | 8 + Makefile | 65 ++- auth/bootstrap_interface.go | 31 ++ auth/bootstrap_service.go | 308 ++++++++++++++ auth/mock_bootstrap.go | 48 +++ auth/util.go | 15 + auth/util_test.go | 72 ++++ cbs/cbs_service.go | 64 +-- cbs/cloud_services.go | 159 ------- cbs/common.go | 19 + cbs/internal/array/api.go | 28 ++ cbs/internal/array/fa.go | 79 ++++ .../active_directory_client.go | 0 ...lete_api_24_active_directory_parameters.go | 0 ...elete_api_24_active_directory_responses.go | 42 ++ .../get_api_24_active_directory_parameters.go | 0 .../get_api_24_active_directory_responses.go | 41 +- ...post_api_24_active_directory_parameters.go | 2 +- .../post_api_24_active_directory_responses.go | 41 +- .../administrators/administrators_client.go | 0 ...ete_api_24_admins_api_tokens_parameters.go | 0 ...lete_api_24_admins_api_tokens_responses.go | 42 ++ .../delete_api_24_admins_cache_parameters.go | 0 .../delete_api_24_admins_cache_responses.go | 42 ++ .../delete_api_24_admins_parameters.go | 0 .../delete_api_24_admins_responses.go | 42 ++ ...get_api_24_admins_api_tokens_parameters.go | 0 .../get_api_24_admins_api_tokens_responses.go | 41 +- .../get_api_24_admins_cache_parameters.go | 0 .../get_api_24_admins_cache_responses.go | 41 +- .../get_api_24_admins_parameters.go | 0 .../get_api_24_admins_responses.go | 41 +- .../get_api_24_admins_settings_parameters.go | 0 .../get_api_24_admins_settings_responses.go | 41 +- .../patch_api_24_admins_parameters.go | 2 +- .../patch_api_24_admins_responses.go | 41 +- ...patch_api_24_admins_settings_parameters.go | 2 +- .../patch_api_24_admins_settings_responses.go | 41 +- ...ost_api_24_admins_api_tokens_parameters.go | 0 ...post_api_24_admins_api_tokens_responses.go | 41 +- .../post_api_24_admins_parameters.go | 2 +- .../post_api_24_admins_responses.go | 41 +- .../put_api_24_admins_cache_parameters.go | 0 .../put_api_24_admins_cache_responses.go | 41 +- .../alert_watchers/alert_watchers_client.go | 0 ...delete_api_24_alert_watchers_parameters.go | 0 .../delete_api_24_alert_watchers_responses.go | 42 ++ .../get_api_24_alert_watchers_parameters.go | 0 .../get_api_24_alert_watchers_responses.go | 41 +- ..._alert_watchers_test_swagger_parameters.go | 0 ...4_alert_watchers_test_swagger_responses.go | 41 +- .../patch_api_24_alert_watchers_parameters.go | 2 +- .../patch_api_24_alert_watchers_responses.go | 41 +- .../post_api_24_alert_watchers_parameters.go | 2 +- .../post_api_24_alert_watchers_responses.go | 41 +- .../2.4/client/alerts/alerts_client.go | 0 .../get_api_24_alerts_events_parameters.go | 0 .../get_api_24_alerts_events_responses.go | 41 +- .../alerts/get_api_24_alerts_parameters.go | 0 .../alerts/get_api_24_alerts_responses.go | 41 +- .../alerts/patch_api_24_alerts_parameters.go | 2 +- .../alerts/patch_api_24_alerts_responses.go | 41 +- .../client/api_clients/api_clients_client.go | 0 .../delete_api_24_api_clients_parameters.go | 0 .../delete_api_24_api_clients_responses.go | 42 ++ .../get_api_24_api_clients_parameters.go | 0 .../get_api_24_api_clients_responses.go | 41 +- .../patch_api_24_api_clients_parameters.go | 2 +- .../patch_api_24_api_clients_responses.go | 41 +- .../post_api_24_api_clients_parameters.go | 2 +- .../post_api_24_api_clients_responses.go | 41 +- .../faclient/2.4/client/apps/apps_client.go | 0 .../apps/get_api_24_apps_nodes_parameters.go | 0 .../apps/get_api_24_apps_nodes_responses.go | 41 +- .../client/apps/get_api_24_apps_parameters.go | 0 .../client/apps/get_api_24_apps_responses.go | 41 +- .../apps/patch_api_24_apps_parameters.go | 2 +- .../apps/patch_api_24_apps_responses.go | 41 +- .../array_connections_client.go | 0 ...ete_api_24_array_connections_parameters.go | 0 ...lete_api_24_array_connections_responses.go | 42 ++ ...y_connections_connection_key_parameters.go | 0 ...ay_connections_connection_key_responses.go | 41 +- ...get_api_24_array_connections_parameters.go | 0 ...pi_24_array_connections_path_parameters.go | 0 ...api_24_array_connections_path_responses.go | 41 +- .../get_api_24_array_connections_responses.go | 41 +- ...tch_api_24_array_connections_parameters.go | 2 +- ...atch_api_24_array_connections_responses.go | 41 +- ...ost_api_24_array_connections_parameters.go | 2 +- ...post_api_24_array_connections_responses.go | 41 +- .../2.4/client/arrays/arrays_client.go | 0 ...4_arrays_factory_reset_token_parameters.go | 0 ...24_arrays_factory_reset_token_responses.go | 42 ++ .../arrays/delete_api_24_arrays_parameters.go | 0 .../arrays/delete_api_24_arrays_responses.go | 42 ++ .../get_api_24_arrays_eula_parameters.go | 0 .../get_api_24_arrays_eula_responses.go | 41 +- ...4_arrays_factory_reset_token_parameters.go | 0 ...24_arrays_factory_reset_token_responses.go | 41 +- ...i_24_arrays_ntp_test_swagger_parameters.go | 0 ...pi_24_arrays_ntp_test_swagger_responses.go | 41 +- .../arrays/get_api_24_arrays_parameters.go | 0 ...et_api_24_arrays_performance_parameters.go | 0 ...get_api_24_arrays_performance_responses.go | 41 +- .../arrays/get_api_24_arrays_responses.go | 41 +- .../get_api_24_arrays_space_parameters.go | 0 .../get_api_24_arrays_space_responses.go | 41 +- .../patch_api_24_arrays_eula_parameters.go | 2 +- .../patch_api_24_arrays_eula_responses.go | 41 +- .../arrays/patch_api_24_arrays_parameters.go | 2 +- .../arrays/patch_api_24_arrays_responses.go | 41 +- ...4_arrays_factory_reset_token_parameters.go | 0 ...24_arrays_factory_reset_token_responses.go | 41 +- .../2.4/client/audits/audits_client.go | 0 .../audits/get_api_24_audits_parameters.go | 0 .../audits/get_api_24_audits_responses.go | 41 +- .../authorization/authorization_client.go | 0 .../get_api_api_version_parameters.go | 0 .../get_api_api_version_responses.go | 41 +- .../post_api_24_login_parameters.go | 0 .../post_api_24_login_responses.go | 41 +- .../post_api_24_logout_parameters.go | 0 .../post_api_24_logout_responses.go | 42 ++ .../post_oauth210_token_parameters.go | 0 .../post_oauth210_token_responses.go | 2 +- .../certificates/certificates_client.go | 0 .../delete_api_24_certificates_parameters.go | 0 .../delete_api_24_certificates_responses.go | 42 ++ .../get_api_24_certificates_parameters.go | 0 .../get_api_24_certificates_responses.go | 41 +- .../patch_api_24_certificates_parameters.go | 2 +- .../patch_api_24_certificates_responses.go | 41 +- ...certificate_signing_requests_parameters.go | 2 +- ..._certificate_signing_requests_responses.go | 41 +- .../post_api_24_certificates_parameters.go | 2 +- .../post_api_24_certificates_responses.go | 41 +- .../client/connections/connections_client.go | 0 .../delete_api_24_connections_parameters.go | 0 .../delete_api_24_connections_responses.go | 42 ++ .../get_api_24_connections_parameters.go | 0 .../get_api_24_connections_responses.go | 41 +- .../post_api_24_connections_parameters.go | 2 +- .../post_api_24_connections_responses.go | 41 +- .../client/controllers/controllers_client.go | 0 .../get_api_24_controllers_parameters.go | 0 .../get_api_24_controllers_responses.go | 41 +- .../delete_api_24_directories_parameters.go | 0 ..._24_directories_policies_nfs_parameters.go | 0 ...i_24_directories_policies_nfs_responses.go | 42 ++ ..._24_directories_policies_smb_parameters.go | 0 ...i_24_directories_policies_smb_responses.go | 42 ++ ...irectories_policies_snapshot_parameters.go | 0 ...directories_policies_snapshot_responses.go | 42 ++ .../delete_api_24_directories_responses.go | 42 ++ .../client/directories/directories_client.go | 0 .../get_api_24_directories_parameters.go | 0 ...i_24_directories_performance_parameters.go | 0 ...pi_24_directories_performance_responses.go | 41 +- ..._24_directories_policies_nfs_parameters.go | 0 ...i_24_directories_policies_nfs_responses.go | 41 +- ..._api_24_directories_policies_parameters.go | 0 ...t_api_24_directories_policies_responses.go | 41 +- ..._24_directories_policies_smb_parameters.go | 0 ...i_24_directories_policies_smb_responses.go | 41 +- ...irectories_policies_snapshot_parameters.go | 0 ...directories_policies_snapshot_responses.go | 41 +- .../get_api_24_directories_responses.go | 41 +- ...get_api_24_directories_space_parameters.go | 0 .../get_api_24_directories_space_responses.go | 41 +- .../patch_api_24_directories_parameters.go | 2 +- .../patch_api_24_directories_responses.go | 41 +- .../post_api_24_directories_parameters.go | 2 +- ..._24_directories_policies_nfs_parameters.go | 2 +- ...i_24_directories_policies_nfs_responses.go | 41 +- ..._24_directories_policies_smb_parameters.go | 2 +- ...i_24_directories_policies_smb_responses.go | 41 +- ...irectories_policies_snapshot_parameters.go | 2 +- ...directories_policies_snapshot_responses.go | 41 +- .../post_api_24_directories_responses.go | 41 +- ...ete_api_24_directory_exports_parameters.go | 0 ...lete_api_24_directory_exports_responses.go | 42 ++ .../directory_exports_client.go | 0 ...get_api_24_directory_exports_parameters.go | 0 .../get_api_24_directory_exports_responses.go | 41 +- ...ost_api_24_directory_exports_parameters.go | 2 +- ...post_api_24_directory_exports_responses.go | 41 +- .../directory_services_client.go | 0 ...et_api_24_directory_services_parameters.go | 0 ...get_api_24_directory_services_responses.go | 41 +- ..._24_directory_services_roles_parameters.go | 0 ...i_24_directory_services_roles_responses.go | 41 +- ...ectory_services_test_swagger_parameters.go | 0 ...rectory_services_test_swagger_responses.go | 41 +- ...ch_api_24_directory_services_parameters.go | 2 +- ...tch_api_24_directory_services_responses.go | 41 +- ..._24_directory_services_roles_parameters.go | 2 +- ...i_24_directory_services_roles_responses.go | 41 +- ...e_api_24_directory_snapshots_parameters.go | 0 ...te_api_24_directory_snapshots_responses.go | 42 ++ .../directory_snapshots_client.go | 0 ...t_api_24_directory_snapshots_parameters.go | 0 ...et_api_24_directory_snapshots_responses.go | 41 +- ...h_api_24_directory_snapshots_parameters.go | 2 +- ...ch_api_24_directory_snapshots_responses.go | 41 +- ...t_api_24_directory_snapshots_parameters.go | 2 +- ...st_api_24_directory_snapshots_responses.go | 41 +- .../faclient/2.4/client/dns/dns_client.go | 0 .../client/dns/get_api_24_dns_parameters.go | 0 .../client/dns/get_api_24_dns_responses.go | 41 +- .../client/dns/patch_api_24_dns_parameters.go | 2 +- .../client/dns/patch_api_24_dns_responses.go | 41 +- .../2.4/client/drives/drives_client.go | 0 .../drives/get_api_24_drives_parameters.go | 0 .../drives/get_api_24_drives_responses.go | 41 +- .../drives/patch_api_24_drives_parameters.go | 0 .../drives/patch_api_24_drives_responses.go | 41 +- .../delete_api_24_file_systems_parameters.go | 0 .../delete_api_24_file_systems_responses.go | 42 ++ .../file_systems/file_systems_client.go | 0 .../get_api_24_file_systems_parameters.go | 0 .../get_api_24_file_systems_responses.go | 41 +- .../patch_api_24_file_systems_parameters.go | 2 +- .../patch_api_24_file_systems_responses.go | 41 +- .../post_api_24_file_systems_parameters.go | 0 .../post_api_24_file_systems_responses.go | 41 +- .../faclient/2.4/client/flasharray_client.go | 98 ++--- .../get_api_24_hardware_parameters.go | 0 .../hardware/get_api_24_hardware_responses.go | 41 +- .../2.4/client/hardware/hardware_client.go | 0 .../patch_api_24_hardware_parameters.go | 2 +- .../patch_api_24_hardware_responses.go | 41 +- ...ete_api_24_host_groups_hosts_parameters.go | 0 ...lete_api_24_host_groups_hosts_responses.go | 42 ++ .../delete_api_24_host_groups_parameters.go | 0 ...ost_groups_protection_groups_parameters.go | 0 ...host_groups_protection_groups_responses.go | 42 ++ .../delete_api_24_host_groups_responses.go | 42 ++ ...get_api_24_host_groups_hosts_parameters.go | 0 .../get_api_24_host_groups_hosts_responses.go | 41 +- .../get_api_24_host_groups_parameters.go | 0 ..._groups_performance_by_array_parameters.go | 0 ...t_groups_performance_by_array_responses.go | 41 +- ...i_24_host_groups_performance_parameters.go | 0 ...pi_24_host_groups_performance_responses.go | 41 +- ...ost_groups_protection_groups_parameters.go | 0 ...host_groups_protection_groups_responses.go | 41 +- .../get_api_24_host_groups_responses.go | 41 +- ...get_api_24_host_groups_space_parameters.go | 0 .../get_api_24_host_groups_space_responses.go | 41 +- .../client/host_groups/host_groups_client.go | 0 .../patch_api_24_host_groups_parameters.go | 2 +- .../patch_api_24_host_groups_responses.go | 41 +- ...ost_api_24_host_groups_hosts_parameters.go | 0 ...post_api_24_host_groups_hosts_responses.go | 41 +- .../post_api_24_host_groups_parameters.go | 0 ...ost_groups_protection_groups_parameters.go | 0 ...host_groups_protection_groups_responses.go | 41 +- .../post_api_24_host_groups_responses.go | 41 +- ...ete_api_24_hosts_host_groups_parameters.go | 0 ...lete_api_24_hosts_host_groups_responses.go | 42 ++ .../hosts/delete_api_24_hosts_parameters.go | 0 ...i_24_hosts_protection_groups_parameters.go | 0 ...pi_24_hosts_protection_groups_responses.go | 42 ++ .../hosts/delete_api_24_hosts_responses.go | 42 ++ ...get_api_24_hosts_host_groups_parameters.go | 0 .../get_api_24_hosts_host_groups_responses.go | 41 +- .../hosts/get_api_24_hosts_parameters.go | 0 ...24_hosts_performance_balance_parameters.go | 0 ..._24_hosts_performance_balance_responses.go | 41 +- ...4_hosts_performance_by_array_parameters.go | 0 ...24_hosts_performance_by_array_responses.go | 41 +- ...get_api_24_hosts_performance_parameters.go | 0 .../get_api_24_hosts_performance_responses.go | 41 +- ...i_24_hosts_protection_groups_parameters.go | 0 ...pi_24_hosts_protection_groups_responses.go | 41 +- .../hosts/get_api_24_hosts_responses.go | 41 +- .../get_api_24_hosts_space_parameters.go | 0 .../hosts/get_api_24_hosts_space_responses.go | 41 +- .../faclient/2.4/client/hosts/hosts_client.go | 0 .../hosts/patch_api_24_hosts_parameters.go | 2 +- .../hosts/patch_api_24_hosts_responses.go | 41 +- ...ost_api_24_hosts_host_groups_parameters.go | 0 ...post_api_24_hosts_host_groups_responses.go | 41 +- .../hosts/post_api_24_hosts_parameters.go | 2 +- ...i_24_hosts_protection_groups_parameters.go | 0 ...pi_24_hosts_protection_groups_responses.go | 41 +- .../hosts/post_api_24_hosts_responses.go | 41 +- .../kmip/delete_api_24_kmip_parameters.go | 0 .../kmip/delete_api_24_kmip_responses.go | 42 ++ .../client/kmip/get_api_24_kmip_parameters.go | 0 .../client/kmip/get_api_24_kmip_responses.go | 41 +- ...get_api_24_kmip_test_swagger_parameters.go | 0 .../get_api_24_kmip_test_swagger_responses.go | 41 +- .../faclient/2.4/client/kmip/kmip_client.go | 0 .../kmip/patch_api_24_kmip_parameters.go | 2 +- .../kmip/patch_api_24_kmip_responses.go | 41 +- .../kmip/post_api_24_kmip_parameters.go | 2 +- .../client/kmip/post_api_24_kmip_responses.go | 41 +- ..._maintenance_windows_swagger_parameters.go | 0 ...4_maintenance_windows_swagger_responses.go | 42 ++ ..._maintenance_windows_swagger_parameters.go | 0 ...4_maintenance_windows_swagger_responses.go | 41 +- .../maintenance_windows_swagger_client.go | 0 ..._maintenance_windows_swagger_parameters.go | 2 +- ...4_maintenance_windows_swagger_responses.go | 41 +- ...te_api_24_network_interfaces_parameters.go | 0 ...ete_api_24_network_interfaces_responses.go | 42 ++ ...et_api_24_network_interfaces_parameters.go | 0 ...twork_interfaces_performance_parameters.go | 0 ...etwork_interfaces_performance_responses.go | 41 +- ...get_api_24_network_interfaces_responses.go | 41 +- .../network_interfaces_client.go | 0 ...ch_api_24_network_interfaces_parameters.go | 2 +- ...tch_api_24_network_interfaces_responses.go | 41 +- ...st_api_24_network_interfaces_parameters.go | 2 +- ...ost_api_24_network_interfaces_responses.go | 41 +- .../delete_api_24_offloads_parameters.go | 0 .../delete_api_24_offloads_responses.go | 42 ++ .../get_api_24_offloads_parameters.go | 0 .../offloads/get_api_24_offloads_responses.go | 41 +- .../2.4/client/offloads/offloads_client.go | 0 .../post_api_24_offloads_parameters.go | 2 +- .../post_api_24_offloads_responses.go | 41 +- ...ete_api_24_pod_replica_links_parameters.go | 0 ...lete_api_24_pod_replica_links_responses.go | 42 ++ ...api_24_pod_replica_links_lag_parameters.go | 0 ..._api_24_pod_replica_links_lag_responses.go | 41 +- ...get_api_24_pod_replica_links_parameters.go | 0 ...inks_performance_replication_parameters.go | 0 ...links_performance_replication_responses.go | 41 +- .../get_api_24_pod_replica_links_responses.go | 41 +- ...tch_api_24_pod_replica_links_parameters.go | 2 +- ...atch_api_24_pod_replica_links_responses.go | 41 +- .../pod_replica_links_client.go | 0 ...ost_api_24_pod_replica_links_parameters.go | 0 ...post_api_24_pod_replica_links_responses.go | 41 +- .../delete_api_24_pods_arrays_parameters.go | 0 .../delete_api_24_pods_arrays_responses.go | 42 ++ .../pods/delete_api_24_pods_parameters.go | 0 .../pods/delete_api_24_pods_responses.go | 42 ++ .../pods/get_api_24_pods_arrays_parameters.go | 0 .../pods/get_api_24_pods_arrays_responses.go | 41 +- .../client/pods/get_api_24_pods_parameters.go | 0 ...24_pods_performance_by_array_parameters.go | 0 ..._24_pods_performance_by_array_responses.go | 41 +- .../get_api_24_pods_performance_parameters.go | 0 ...ormance_replication_by_array_parameters.go | 0 ...formance_replication_by_array_responses.go | 41 +- ...pods_performance_replication_parameters.go | 0 ..._pods_performance_replication_responses.go | 41 +- .../get_api_24_pods_performance_responses.go | 41 +- .../client/pods/get_api_24_pods_responses.go | 41 +- .../pods/get_api_24_pods_space_parameters.go | 0 .../pods/get_api_24_pods_space_responses.go | 41 +- .../pods/patch_api_24_pods_parameters.go | 2 +- .../pods/patch_api_24_pods_responses.go | 41 +- .../faclient/2.4/client/pods/pods_client.go | 0 .../post_api_24_pods_arrays_parameters.go | 0 .../pods/post_api_24_pods_arrays_responses.go | 41 +- .../pods/post_api_24_pods_parameters.go | 2 +- .../client/pods/post_api_24_pods_responses.go | 41 +- ...24_policies_nfs_client_rules_parameters.go | 0 ..._24_policies_nfs_client_rules_responses.go | 42 ++ ..._api_24_policies_nfs_members_parameters.go | 0 ...e_api_24_policies_nfs_members_responses.go | 42 ++ .../delete_api_24_policies_nfs_parameters.go | 0 .../delete_api_24_policies_nfs_responses.go | 42 ++ ...24_policies_smb_client_rules_parameters.go | 0 ..._24_policies_smb_client_rules_responses.go | 42 ++ ..._api_24_policies_smb_members_parameters.go | 0 ...e_api_24_policies_smb_members_responses.go | 42 ++ .../delete_api_24_policies_smb_parameters.go | 0 .../delete_api_24_policies_smb_responses.go | 42 ++ ...24_policies_snapshot_members_parameters.go | 0 ..._24_policies_snapshot_members_responses.go | 42 ++ ...ete_api_24_policies_snapshot_parameters.go | 0 ...lete_api_24_policies_snapshot_responses.go | 42 ++ ...i_24_policies_snapshot_rules_parameters.go | 0 ...pi_24_policies_snapshot_rules_responses.go | 42 ++ .../get_api_24_policies_members_parameters.go | 0 .../get_api_24_policies_members_responses.go | 41 +- ...24_policies_nfs_client_rules_parameters.go | 0 ..._24_policies_nfs_client_rules_responses.go | 41 +- ..._api_24_policies_nfs_members_parameters.go | 0 ...t_api_24_policies_nfs_members_responses.go | 41 +- .../get_api_24_policies_nfs_parameters.go | 0 .../get_api_24_policies_nfs_responses.go | 41 +- .../get_api_24_policies_parameters.go | 0 .../policies/get_api_24_policies_responses.go | 41 +- ...24_policies_smb_client_rules_parameters.go | 0 ..._24_policies_smb_client_rules_responses.go | 41 +- ..._api_24_policies_smb_members_parameters.go | 0 ...t_api_24_policies_smb_members_responses.go | 41 +- .../get_api_24_policies_smb_parameters.go | 0 .../get_api_24_policies_smb_responses.go | 41 +- ...24_policies_snapshot_members_parameters.go | 0 ..._24_policies_snapshot_members_responses.go | 41 +- ...get_api_24_policies_snapshot_parameters.go | 0 .../get_api_24_policies_snapshot_responses.go | 41 +- ...i_24_policies_snapshot_rules_parameters.go | 0 ...pi_24_policies_snapshot_rules_responses.go | 41 +- .../patch_api_24_policies_nfs_parameters.go | 2 +- .../patch_api_24_policies_nfs_responses.go | 41 +- .../patch_api_24_policies_smb_parameters.go | 2 +- .../patch_api_24_policies_smb_responses.go | 41 +- ...tch_api_24_policies_snapshot_parameters.go | 2 +- ...atch_api_24_policies_snapshot_responses.go | 41 +- .../2.4/client/policies/policies_client.go | 0 ...24_policies_nfs_client_rules_parameters.go | 2 +- ..._24_policies_nfs_client_rules_responses.go | 41 +- ..._api_24_policies_nfs_members_parameters.go | 2 +- ...t_api_24_policies_nfs_members_responses.go | 41 +- .../post_api_24_policies_nfs_parameters.go | 2 +- .../post_api_24_policies_nfs_responses.go | 41 +- ...24_policies_smb_client_rules_parameters.go | 2 +- ..._24_policies_smb_client_rules_responses.go | 41 +- ..._api_24_policies_smb_members_parameters.go | 2 +- ...t_api_24_policies_smb_members_responses.go | 41 +- .../post_api_24_policies_smb_parameters.go | 2 +- .../post_api_24_policies_smb_responses.go | 41 +- ...24_policies_snapshot_members_parameters.go | 2 +- ..._24_policies_snapshot_members_responses.go | 41 +- ...ost_api_24_policies_snapshot_parameters.go | 2 +- ...post_api_24_policies_snapshot_responses.go | 41 +- ...i_24_policies_snapshot_rules_parameters.go | 2 +- ...pi_24_policies_snapshot_rules_responses.go | 41 +- .../get_api_24_ports_initiators_parameters.go | 0 .../get_api_24_ports_initiators_responses.go | 41 +- .../ports/get_api_24_ports_parameters.go | 0 .../ports/get_api_24_ports_responses.go | 41 +- .../faclient/2.4/client/ports/ports_client.go | 0 ...4_protection_group_snapshots_parameters.go | 0 ...24_protection_group_snapshots_responses.go | 42 ++ ...4_protection_group_snapshots_parameters.go | 0 ...24_protection_group_snapshots_responses.go | 41 +- ...ion_group_snapshots_transfer_parameters.go | 0 ...tion_group_snapshots_transfer_responses.go | 41 +- ...4_protection_group_snapshots_parameters.go | 2 +- ...24_protection_group_snapshots_responses.go | 41 +- ...4_protection_group_snapshots_parameters.go | 2 +- ...24_protection_group_snapshots_responses.go | 41 +- .../protection_group_snapshots_client.go | 0 ...rotection_groups_host_groups_parameters.go | 0 ...protection_groups_host_groups_responses.go | 42 ++ ...i_24_protection_groups_hosts_parameters.go | 0 ...pi_24_protection_groups_hosts_responses.go | 42 ++ ...ete_api_24_protection_groups_parameters.go | 0 ...lete_api_24_protection_groups_responses.go | 42 ++ ...24_protection_groups_targets_parameters.go | 0 ..._24_protection_groups_targets_responses.go | 42 ++ ...24_protection_groups_volumes_parameters.go | 0 ..._24_protection_groups_volumes_responses.go | 42 ++ ...rotection_groups_host_groups_parameters.go | 0 ...protection_groups_host_groups_responses.go | 41 +- ...i_24_protection_groups_hosts_parameters.go | 0 ...pi_24_protection_groups_hosts_responses.go | 41 +- ...get_api_24_protection_groups_parameters.go | 0 ...ormance_replication_by_array_parameters.go | 0 ...formance_replication_by_array_responses.go | 41 +- ...oups_performance_replication_parameters.go | 0 ...roups_performance_replication_responses.go | 41 +- .../get_api_24_protection_groups_responses.go | 41 +- ...i_24_protection_groups_space_parameters.go | 0 ...pi_24_protection_groups_space_responses.go | 41 +- ...24_protection_groups_targets_parameters.go | 0 ..._24_protection_groups_targets_responses.go | 41 +- ...24_protection_groups_volumes_parameters.go | 0 ..._24_protection_groups_volumes_responses.go | 41 +- ...tch_api_24_protection_groups_parameters.go | 2 +- ...atch_api_24_protection_groups_responses.go | 41 +- ...24_protection_groups_targets_parameters.go | 2 +- ..._24_protection_groups_targets_responses.go | 41 +- ...rotection_groups_host_groups_parameters.go | 0 ...protection_groups_host_groups_responses.go | 41 +- ...i_24_protection_groups_hosts_parameters.go | 0 ...pi_24_protection_groups_hosts_responses.go | 41 +- ...ost_api_24_protection_groups_parameters.go | 0 ...post_api_24_protection_groups_responses.go | 41 +- ...24_protection_groups_targets_parameters.go | 0 ..._24_protection_groups_targets_responses.go | 41 +- ...24_protection_groups_volumes_parameters.go | 0 ..._24_protection_groups_volumes_responses.go | 41 +- .../protection_groups_client.go | 0 .../get_api_24_remote_pods_parameters.go | 0 .../get_api_24_remote_pods_responses.go | 41 +- .../client/remote_pods/remote_pods_client.go | 0 ...e_protection_group_snapshots_parameters.go | 0 ...te_protection_group_snapshots_responses.go | 42 ++ ...e_protection_group_snapshots_parameters.go | 0 ...te_protection_group_snapshots_responses.go | 41 +- ...ion_group_snapshots_transfer_parameters.go | 0 ...tion_group_snapshots_transfer_responses.go | 41 +- ...e_protection_group_snapshots_parameters.go | 2 +- ...te_protection_group_snapshots_responses.go | 41 +- ...e_protection_group_snapshots_parameters.go | 2 +- ...te_protection_group_snapshots_responses.go | 41 +- ...emote_protection_group_snapshots_client.go | 0 ..._24_remote_protection_groups_parameters.go | 0 ...i_24_remote_protection_groups_responses.go | 42 ++ ..._24_remote_protection_groups_parameters.go | 0 ...i_24_remote_protection_groups_responses.go | 41 +- ..._24_remote_protection_groups_parameters.go | 2 +- ...i_24_remote_protection_groups_responses.go | 41 +- .../remote_protection_groups_client.go | 0 ...i_24_remote_volume_snapshots_parameters.go | 0 ...pi_24_remote_volume_snapshots_responses.go | 42 ++ ...i_24_remote_volume_snapshots_parameters.go | 0 ...pi_24_remote_volume_snapshots_responses.go | 41 +- ...te_volume_snapshots_transfer_parameters.go | 0 ...ote_volume_snapshots_transfer_responses.go | 41 +- ...i_24_remote_volume_snapshots_parameters.go | 2 +- ...pi_24_remote_volume_snapshots_responses.go | 41 +- ...i_24_remote_volume_snapshots_parameters.go | 0 ...pi_24_remote_volume_snapshots_responses.go | 41 +- .../remote_volume_snapshots_client.go | 0 .../get_api_24_sessions_parameters.go | 0 .../sessions/get_api_24_sessions_responses.go | 41 +- .../2.4/client/sessions/sessions_client.go | 0 .../smi_s/get_api_24_smis_parameters.go | 0 .../client/smi_s/get_api_24_smis_responses.go | 41 +- .../smi_s/patch_api_24_smis_parameters.go | 2 +- .../smi_s/patch_api_24_smis_responses.go | 41 +- .../2.4/client/smi_s/s_m_is_client.go | 0 .../get_api_24_smtp_servers_parameters.go | 0 .../smtp/get_api_24_smtp_servers_responses.go | 41 +- .../patch_api_24_smtp_servers_parameters.go | 2 +- .../patch_api_24_smtp_servers_responses.go | 41 +- .../faclient/2.4/client/smtp/smtp_client.go | 0 .../get_api_24_snmp_agents_mib_parameters.go | 0 .../get_api_24_snmp_agents_mib_responses.go | 41 +- .../get_api_24_snmp_agents_parameters.go | 0 .../get_api_24_snmp_agents_responses.go | 41 +- .../patch_api_24_snmp_agents_parameters.go | 2 +- .../patch_api_24_snmp_agents_responses.go | 41 +- .../client/snmp_agents/snmp_agents_client.go | 0 .../delete_api_24_snmp_managers_parameters.go | 0 .../delete_api_24_snmp_managers_responses.go | 42 ++ .../get_api_24_snmp_managers_parameters.go | 0 .../get_api_24_snmp_managers_responses.go | 41 +- ...4_snmp_managers_test_swagger_parameters.go | 0 ...24_snmp_managers_test_swagger_responses.go | 41 +- .../patch_api_24_snmp_managers_parameters.go | 2 +- .../patch_api_24_snmp_managers_responses.go | 41 +- .../post_api_24_snmp_managers_parameters.go | 2 +- .../post_api_24_snmp_managers_responses.go | 41 +- .../snmp_managers/snmp_managers_client.go | 0 ..._software_installation_steps_parameters.go | 0 ...4_software_installation_steps_responses.go | 41 +- ...pi_24_software_installations_parameters.go | 0 ...api_24_software_installations_responses.go | 41 +- .../get_api_24_software_parameters.go | 0 .../software/get_api_24_software_responses.go | 41 +- ...pi_24_software_installations_parameters.go | 2 +- ...api_24_software_installations_responses.go | 41 +- ...pi_24_software_installations_parameters.go | 2 +- ...api_24_software_installations_responses.go | 41 +- .../2.4/client/software/software_client.go | 0 .../delete_api_24_subnets_parameters.go | 0 .../delete_api_24_subnets_responses.go | 42 ++ .../subnets/get_api_24_subnets_parameters.go | 0 .../subnets/get_api_24_subnets_responses.go | 41 +- .../patch_api_24_subnets_parameters.go | 2 +- .../subnets/patch_api_24_subnets_responses.go | 41 +- .../subnets/post_api_24_subnets_parameters.go | 2 +- .../subnets/post_api_24_subnets_responses.go | 41 +- .../2.4/client/subnets/subnets_client.go | 0 .../support/get_api_24_support_parameters.go | 0 .../support/get_api_24_support_responses.go | 41 +- ..._api_24_support_test_swagger_parameters.go | 0 ...t_api_24_support_test_swagger_responses.go | 41 +- .../patch_api_24_support_parameters.go | 2 +- .../support/patch_api_24_support_responses.go | 41 +- .../2.4/client/support/support_client.go | 0 ...delete_api_24_syslog_servers_parameters.go | 0 .../delete_api_24_syslog_servers_responses.go | 42 ++ .../get_api_24_syslog_servers_parameters.go | 0 .../get_api_24_syslog_servers_responses.go | 41 +- ...i_24_syslog_servers_settings_parameters.go | 0 ...pi_24_syslog_servers_settings_responses.go | 41 +- ..._syslog_servers_test_swagger_parameters.go | 0 ...4_syslog_servers_test_swagger_responses.go | 41 +- .../patch_api_24_syslog_servers_parameters.go | 2 +- .../patch_api_24_syslog_servers_responses.go | 41 +- ...i_24_syslog_servers_settings_parameters.go | 2 +- ...pi_24_syslog_servers_settings_responses.go | 41 +- .../post_api_24_syslog_servers_parameters.go | 2 +- .../post_api_24_syslog_servers_responses.go | 41 +- .../2.4/client/syslog/syslog_client.go | 0 .../delete_api_24_volume_groups_parameters.go | 0 .../delete_api_24_volume_groups_responses.go | 42 ++ .../get_api_24_volume_groups_parameters.go | 0 ...24_volume_groups_performance_parameters.go | 0 ..._24_volume_groups_performance_responses.go | 41 +- .../get_api_24_volume_groups_responses.go | 41 +- ...t_api_24_volume_groups_space_parameters.go | 0 ...et_api_24_volume_groups_space_responses.go | 41 +- ...api_24_volume_groups_volumes_parameters.go | 0 ..._api_24_volume_groups_volumes_responses.go | 41 +- .../patch_api_24_volume_groups_parameters.go | 2 +- .../patch_api_24_volume_groups_responses.go | 41 +- .../post_api_24_volume_groups_parameters.go | 2 +- .../post_api_24_volume_groups_responses.go | 41 +- .../volume_groups/volume_groups_client.go | 0 ...lete_api_24_volume_snapshots_parameters.go | 0 ...elete_api_24_volume_snapshots_responses.go | 42 ++ ...api_24_volume_snapshots_tags_parameters.go | 0 ..._api_24_volume_snapshots_tags_responses.go | 42 ++ .../get_api_24_volume_snapshots_parameters.go | 0 .../get_api_24_volume_snapshots_responses.go | 41 +- ...api_24_volume_snapshots_tags_parameters.go | 0 ..._api_24_volume_snapshots_tags_responses.go | 41 +- ...24_volume_snapshots_transfer_parameters.go | 0 ..._24_volume_snapshots_transfer_responses.go | 41 +- ...atch_api_24_volume_snapshots_parameters.go | 2 +- ...patch_api_24_volume_snapshots_responses.go | 41 +- ...post_api_24_volume_snapshots_parameters.go | 2 +- .../post_api_24_volume_snapshots_responses.go | 41 +- ..._volume_snapshots_tags_batch_parameters.go | 2 +- ...4_volume_snapshots_tags_batch_responses.go | 41 +- .../volume_snapshots_client.go | 0 .../delete_api_24_volumes_parameters.go | 0 ...24_volumes_protection_groups_parameters.go | 0 ..._24_volumes_protection_groups_responses.go | 42 ++ .../delete_api_24_volumes_responses.go | 42 ++ .../delete_api_24_volumes_tags_parameters.go | 0 .../delete_api_24_volumes_tags_responses.go | 42 ++ .../volumes/get_api_24_volumes_parameters.go | 0 ...volumes_performance_by_array_parameters.go | 0 ..._volumes_performance_by_array_responses.go | 41 +- ...t_api_24_volumes_performance_parameters.go | 0 ...et_api_24_volumes_performance_responses.go | 41 +- ...24_volumes_protection_groups_parameters.go | 0 ..._24_volumes_protection_groups_responses.go | 41 +- .../volumes/get_api_24_volumes_responses.go | 41 +- .../get_api_24_volumes_space_parameters.go | 0 .../get_api_24_volumes_space_responses.go | 41 +- .../get_api_24_volumes_tags_parameters.go | 0 .../get_api_24_volumes_tags_responses.go | 41 +- ...api_24_volumes_volume_groups_parameters.go | 0 ..._api_24_volumes_volume_groups_responses.go | 41 +- .../patch_api_24_volumes_parameters.go | 2 +- .../volumes/patch_api_24_volumes_responses.go | 41 +- .../volumes/post_api_24_volumes_parameters.go | 2 +- ...24_volumes_protection_groups_parameters.go | 0 ..._24_volumes_protection_groups_responses.go | 41 +- .../volumes/post_api_24_volumes_responses.go | 41 +- ...ut_api_24_volumes_tags_batch_parameters.go | 2 +- ...put_api_24_volumes_tags_batch_responses.go | 41 +- .../2.4/client/volumes/volumes_client.go | 0 .../faclient/2.4/models/active_directory.go | 0 .../2.4/models/active_directory_all_of1.go | 4 +- .../models/active_directory_get_response.go | 0 .../2.4/models/active_directory_post.go | 0 .../models/active_directory_post_all_of1.go | 38 +- .../2.4/models/active_directory_response.go | 0 .../{ => array}/faclient/2.4/models/admin.go | 0 .../faclient/2.4/models/admin_api_token.go | 0 .../models/admin_api_token_get_response.go | 0 .../models/admin_api_token_oai_gen_all_of2.go | 0 .../2.4/models/admin_api_token_response.go | 0 .../faclient/2.4/models/admin_cache.go | 0 .../2.4/models/admin_cache_get_response.go | 0 .../2.4/models/admin_cache_oai_gen_all_of2.go | 0 .../2.4/models/admin_cache_response.go | 0 .../faclient/2.4/models/admin_get_response.go | 0 .../2.4/models/admin_oai_gen_all_of2.go | 0 .../faclient/2.4/models/admin_patch.go | 0 .../2.4/models/admin_patch_all_of1.go | 0 .../faclient/2.4/models/admin_post.go | 0 .../faclient/2.4/models/admin_response.go | 0 .../faclient/2.4/models/admin_role.go | 0 .../faclient/2.4/models/admin_settings.go | 0 .../2.4/models/admin_settings_response.go | 0 .../aggregate_replication_performance.go | 0 .../{ => array}/faclient/2.4/models/alert.go | 0 .../faclient/2.4/models/alert_event.go | 0 .../2.4/models/alert_event_get_response.go | 0 .../2.4/models/alert_event_oai_gen_all_of1.go | 0 .../alert_event_oai_gen_all_of1_alert.go | 0 .../2.4/models/alert_event_response.go | 0 .../faclient/2.4/models/alert_get_response.go | 0 .../2.4/models/alert_oai_gen_all_of1.go | 0 .../faclient/2.4/models/alert_response.go | 0 .../faclient/2.4/models/alert_watcher.go | 0 .../2.4/models/alert_watcher_get_response.go | 0 .../models/alert_watcher_oai_gen_all_of1.go | 0 .../2.4/models/alert_watcher_patch.go | 0 .../faclient/2.4/models/alert_watcher_post.go | 0 .../2.4/models/alert_watcher_response.go | 0 .../faclient/2.4/models/api_client.go | 0 .../2.4/models/api_client_get_response.go | 0 .../faclient/2.4/models/api_client_patch.go | 0 .../faclient/2.4/models/api_client_post.go | 0 .../2.4/models/api_client_response.go | 0 .../faclient/2.4/models/api_token.go | 0 .../2.4/models/api_version_response.go | 0 .../{ => array}/faclient/2.4/models/app.go | 0 .../faclient/2.4/models/app_get_response.go | 0 .../faclient/2.4/models/app_node.go | 0 .../2.4/models/app_node_get_response.go | 0 .../2.4/models/app_node_oai_gen_app.go | 0 .../faclient/2.4/models/app_node_response.go | 0 .../2.4/models/app_oai_gen_all_of1.go | 0 .../faclient/2.4/models/app_response.go | 0 .../{ => array}/faclient/2.4/models/array.go | 0 .../faclient/2.4/models/array_connection.go | 0 .../models/array_connection_get_response.go | 0 .../2.4/models/array_connection_key.go | 0 .../array_connection_key_get_response.go | 0 ...ray_connection_key_get_response_all_of1.go | 0 .../array_connection_oai_gen_all_of2.go | 0 .../2.4/models/array_connection_path.go | 0 .../array_connection_path_get_response.go | 0 .../array_connection_path_oai_gen_all_of1.go | 0 .../models/array_connection_path_response.go | 0 .../2.4/models/array_connection_post.go | 0 .../models/array_connection_post_all_of1.go | 0 .../2.4/models/array_connection_response.go | 0 .../2.4/models/array_factory_reset_token.go | 0 .../array_factory_reset_token_get_response.go | 0 ...ray_factory_reset_token_oai_gen_all_of1.go | 0 .../array_factory_reset_token_response.go | 0 .../faclient/2.4/models/array_get_response.go | 0 .../faclient/2.4/models/array_performance.go | 0 .../models/array_performance_get_response.go | 0 .../array_performance_get_response_all_of1.go | 0 .../array_performance_oai_gen_all_of2.go | 0 .../faclient/2.4/models/array_response.go | 0 .../faclient/2.4/models/array_space.go | 0 .../2.4/models/array_space_get_response.go | 0 .../array_space_get_response_all_of1.go | 0 ..._space_get_response_all_of1_items_items.go | 0 .../2.4/models/array_space_oai_gen_all_of1.go | 0 .../array_space_oai_gen_all_of1_space.go | 0 ...ray_space_oai_gen_all_of1_space_all_of0.go | 0 ...ray_space_oai_gen_all_of1_space_all_of1.go | 0 .../{ => array}/faclient/2.4/models/arrays.go | 0 .../faclient/2.4/models/arrays_all_of1.go | 0 .../{ => array}/faclient/2.4/models/audit.go | 0 .../faclient/2.4/models/audit_get_response.go | 0 .../2.4/models/audit_oai_gen_all_of1.go | 0 .../models/audit_oai_gen_all_of1_origin.go | 0 .../faclient/2.4/models/audit_response.go | 0 .../faclient/2.4/models/built_in.go | 0 .../2.4/models/built_in_relationship.go | 0 .../2.4/models/built_in_resource_no_id.go | 0 .../faclient/2.4/models/certificate.go | 0 .../2.4/models/certificate_get_response.go | 0 .../2.4/models/certificate_oai_gen_all_of1.go | 0 .../faclient/2.4/models/certificate_post.go | 0 .../2.4/models/certificate_post_all_of1.go | 0 .../2.4/models/certificate_response.go | 0 .../2.4/models/certificate_signing_request.go | 0 .../certificate_signing_request_post.go | 0 ...ficate_signing_request_post_certificate.go | 0 .../certificate_signing_request_response.go | 0 .../{ => array}/faclient/2.4/models/chap.go | 0 .../faclient/2.4/models/connection.go | 0 .../faclient/2.4/models/connection_all_of0.go | 0 .../2.4/models/connection_get_response.go | 0 .../2.4/models/connection_oai_gen1_host.go | 0 .../models/connection_oai_gen1_host_group.go | 0 .../connection_oai_gen1_protocol_endpoint.go | 0 .../2.4/models/connection_oai_gen1_volume.go | 0 .../2.4/models/connection_oai_gen_all_of1.go | 0 .../faclient/2.4/models/connection_post.go | 0 .../connection_post_protocol_endpoint.go | 0 .../2.4/models/connection_response.go | 0 .../faclient/2.4/models/controller.go | 0 .../faclient/2.4/models/controller_all_of1.go | 0 .../2.4/models/controller_get_response.go | 0 .../models/controller_get_response_all_of1.go | 0 .../faclient/2.4/models/controllers.go | 0 .../2.4/models/destroyed_patch_post.go | 0 .../faclient/2.4/models/directory.go | 0 .../faclient/2.4/models/directory_export.go | 0 .../models/directory_export_get_response.go | 0 .../directory_export_oai_gen_directory.go | 0 .../models/directory_export_oai_gen_policy.go | 0 .../2.4/models/directory_export_post.go | 0 .../2.4/models/directory_export_response.go | 0 .../2.4/models/directory_get_response.go | 0 .../models/directory_get_response_all_of2.go | 0 .../2.4/models/directory_oai_gen_all_of1.go | 0 .../directory_oai_gen_all_of1_file_system.go | 0 .../models/directory_oai_gen_all_of1_space.go | 0 .../faclient/2.4/models/directory_patch.go | 0 .../2.4/models/directory_performance.go | 0 .../directory_performance_get_response.go | 0 ...ectory_performance_get_response_all_of1.go | 0 .../directory_performance_oai_gen_all_of1.go | 0 .../models/directory_policy_export_post.go | 0 ...ctory_policy_export_post_policies_items.go | 0 ...olicy_export_post_policies_items_policy.go | 0 .../2.4/models/directory_policy_post.go | 0 .../directory_policy_post_policies_items.go | 0 ...ctory_policy_post_policies_items_policy.go | 0 .../faclient/2.4/models/directory_post.go | 0 .../faclient/2.4/models/directory_response.go | 0 .../faclient/2.4/models/directory_service.go | 0 .../models/directory_service_get_response.go | 0 .../directory_service_oai_gen_all_of1.go | 0 ...tory_service_oai_gen_all_of1_management.go | 0 .../2.4/models/directory_service_response.go | 0 .../2.4/models/directory_service_role.go | 0 .../directory_service_role_get_response.go | 0 .../directory_service_role_oai_gen_role.go | 0 .../models/directory_service_role_response.go | 0 .../faclient/2.4/models/directory_snapshot.go | 0 .../models/directory_snapshot_get_response.go | 0 ...directory_snapshot_get_response_all_of2.go | 0 .../directory_snapshot_oai_gen_all_of1.go | 0 ...rectory_snapshot_oai_gen_all_of1_policy.go | 0 ...rectory_snapshot_oai_gen_all_of1_source.go | 0 ...irectory_snapshot_oai_gen_all_of1_space.go | 0 .../2.4/models/directory_snapshot_patch.go | 0 .../directory_snapshot_patch_all_of1.go | 0 ...directory_snapshot_patch_all_of1_policy.go | 0 .../2.4/models/directory_snapshot_post.go | 0 .../models/directory_snapshot_post_all_of0.go | 0 .../models/directory_snapshot_post_all_of1.go | 0 .../2.4/models/directory_snapshot_response.go | 0 .../faclient/2.4/models/directory_space.go | 0 .../{ => array}/faclient/2.4/models/dns.go | 0 .../faclient/2.4/models/dns_get_response.go | 0 .../faclient/2.4/models/dns_patch.go | 0 .../faclient/2.4/models/dns_response.go | 0 .../{ => array}/faclient/2.4/models/drive.go | 0 .../faclient/2.4/models/drive_get_response.go | 0 .../2.4/models/drive_get_response_all_of1.go | 0 .../2.4/models/drive_oai_gen_all_of1.go | 0 .../faclient/2.4/models/drive_response.go | 0 .../array/faclient/2.4/models/error.go | 80 ++++ .../faclient/2.4/models/error_errors_items.go | 46 +++ .../array/faclient/2.4/models/error_unroll.go | 11 + .../{ => array}/faclient/2.4/models/eula.go | 0 .../faclient/2.4/models/eula_get_response.go | 0 .../faclient/2.4/models/eula_response.go | 0 .../faclient/2.4/models/eula_signature.go | 0 .../faclient/2.4/models/file_system.go | 0 .../2.4/models/file_system_get_response.go | 0 .../2.4/models/file_system_oai_gen_all_of1.go | 0 .../faclient/2.4/models/file_system_patch.go | 0 .../2.4/models/file_system_response.go | 0 .../2.4/models/fixed_name_resource_no_id.go | 0 .../faclient/2.4/models/fixed_reference.go | 0 .../2.4/models/fixed_reference_no_id.go | 0 .../2.4/models/fixed_reference_with_type.go | 0 .../fixed_reference_with_type_all_of1.go | 2 +- .../faclient/2.4/models/hardware.go | 0 .../2.4/models/hardware_get_response.go | 0 .../2.4/models/hardware_oai_gen_all_of1.go | 0 .../faclient/2.4/models/hardware_patch.go | 0 .../2.4/models/hardware_patch_all_of1.go | 0 .../faclient/2.4/models/hardware_response.go | 0 .../{ => array}/faclient/2.4/models/host.go | 0 .../faclient/2.4/models/host_all_of0.go | 0 .../faclient/2.4/models/host_get_response.go | 0 .../faclient/2.4/models/host_group.go | 0 .../2.4/models/host_group_get_response.go | 0 .../2.4/models/host_group_oai_gen_all_of1.go | 0 .../host_group_oai_gen_all_of1_space.go | 0 .../faclient/2.4/models/host_group_patch.go | 0 .../2.4/models/host_group_performance.go | 0 .../models/host_group_performance_by_array.go | 0 .../2.4/models/host_group_response.go | 0 .../faclient/2.4/models/host_group_space.go | 0 .../2.4/models/host_oai_gen1_all_of1.go | 0 .../host_oai_gen1_all_of1_host_group.go | 0 .../2.4/models/host_oai_gen1_all_of1_space.go | 0 .../2.4/models/host_oai_gen_all_of1.go | 0 .../faclient/2.4/models/host_patch.go | 0 .../faclient/2.4/models/host_patch_all_of1.go | 0 .../models/host_patch_all_of1_host_group.go | 0 .../faclient/2.4/models/host_performance.go | 0 .../2.4/models/host_performance_balance.go | 0 .../host_performance_balance_get_response.go | 0 ...erformance_balance_get_response_all_of1.go | 0 ...ost_performance_balance_oai_gen_all_of1.go | 0 ...formance_balance_oai_gen_all_of1_target.go | 0 .../2.4/models/host_performance_by_array.go | 0 .../2.4/models/host_port_connectivity.go | 0 .../faclient/2.4/models/host_post.go | 0 .../faclient/2.4/models/host_post_all_of0.go | 0 .../faclient/2.4/models/host_response.go | 0 .../faclient/2.4/models/host_space.go | 0 .../{ => array}/faclient/2.4/models/kmip.go | 0 .../faclient/2.4/models/kmip_get_response.go | 0 .../2.4/models/kmip_oai_gen_all_of1.go | 0 .../kmip_oai_gen_all_of1_certificate.go | 0 .../faclient/2.4/models/kmip_patch.go | 0 .../faclient/2.4/models/kmip_patch_all_of0.go | 0 .../models/kmip_patch_all_of0_certificate.go | 0 .../faclient/2.4/models/kmip_post.go | 0 .../faclient/2.4/models/kmip_post_all_of0.go | 0 .../models/kmip_post_all_of0_certificate.go | 0 .../faclient/2.4/models/kmip_response.go | 0 .../faclient/2.4/models/kmip_test_result.go | 0 .../models/kmip_test_result_get_response.go | 0 .../kmip_test_result_get_response_all_of1.go | 0 .../faclient/2.4/models/maintenance_window.go | 0 .../maintenance_window_oai_gen_all_of1.go | 0 .../2.4/models/maintenance_window_post.go | 0 .../models/maintenance_window_post_all_of0.go | 0 .../maintenance_windows_get_response.go | 0 .../models/maintenance_windows_response.go | 0 .../{ => array}/faclient/2.4/models/member.go | 0 .../2.4/models/member_get_response.go | 0 .../faclient/2.4/models/member_no_id_all.go | 0 .../models/member_no_id_all_get_response.go | 0 .../member_no_id_all_oai_gen_all_of0.go | 0 .../member_no_id_all_oai_gen_all_of0_group.go | 0 ...member_no_id_all_oai_gen_all_of0_member.go | 0 .../2.4/models/member_no_id_all_response.go | 0 .../faclient/2.4/models/member_no_id_group.go | 0 .../member_no_id_group_oai_gen_all_of0.go | 0 .../2.4/models/member_oai_gen_all_of0.go | 0 .../faclient/2.4/models/member_response.go | 0 .../faclient/2.4/models/network_interface.go | 0 .../models/network_interface_get_response.go | 0 .../network_interface_oai_gen_all_of1.go | 0 .../network_interface_oai_gen_all_of1_eth.go | 0 ...rk_interface_oai_gen_all_of1_eth_subnet.go | 0 .../network_interface_oai_gen_all_of1_fc.go | 0 .../2.4/models/network_interface_patch.go | 0 .../models/network_interface_patch_all_of0.go | 0 .../network_interface_patch_all_of0_eth.go | 0 ...work_interface_patch_all_of0_eth_subnet.go | 0 .../models/network_interface_performance.go | 0 ...work_interface_performance_get_response.go | 0 ...erface_performance_get_response_all_of1.go | 0 ...k_interface_performance_oai_gen_all_of1.go | 0 ...terface_performance_oai_gen_all_of1_eth.go | 0 ...nterface_performance_oai_gen_all_of1_fc.go | 0 .../2.4/models/network_interface_post.go | 0 .../models/network_interface_post_all_of1.go | 0 .../network_interface_post_all_of1_eth.go | 0 ...twork_interface_post_all_of1_eth_subnet.go | 0 .../2.4/models/network_interface_response.go | 0 .../faclient/2.4/models/new_name.go | 0 .../faclient/2.4/models/offload.go | 0 .../faclient/2.4/models/offload_azure.go | 0 .../2.4/models/offload_get_response.go | 0 .../models/offload_get_response_all_of2.go | 0 .../2.4/models/offload_google_cloud.go | 0 .../faclient/2.4/models/offload_nfs.go | 0 .../2.4/models/offload_oai_gen_all_of2.go | 0 .../faclient/2.4/models/offload_post.go | 0 .../faclient/2.4/models/offload_post_azure.go | 0 .../2.4/models/offload_post_google_cloud.go | 0 .../faclient/2.4/models/offload_post_nfs.go | 0 .../faclient/2.4/models/offload_post_s3.go | 0 .../faclient/2.4/models/offload_response.go | 0 .../faclient/2.4/models/offload_s3.go | 0 .../faclient/2.4/models/override_check.go | 0 .../faclient/2.4/models/page_info.go | 0 .../faclient/2.4/models/page_info_all_of0.go | 0 .../faclient/2.4/models/page_info_all_of1.go | 0 .../faclient/2.4/models/performance.go | 0 .../2.4/models/performance_all_of0.go | 0 .../2.4/models/performance_all_of1.go | 0 .../{ => array}/faclient/2.4/models/pod.go | 0 .../faclient/2.4/models/pod_all_of0.go | 0 .../2.4/models/pod_all_of0_all_of0.go | 0 .../faclient/2.4/models/pod_array_status.go | 0 .../2.4/models/pod_array_status_all_of2.go | 0 .../faclient/2.4/models/pod_get_response.go | 0 .../2.4/models/pod_get_response_all_of2.go | 0 .../2.4/models/pod_oai_gen1_all_of1.go | 0 .../2.4/models/pod_oai_gen2_all_of1.go | 0 .../2.4/models/pod_oai_gen2_all_of1_source.go | 0 .../2.4/models/pod_oai_gen2_all_of1_space.go | 0 .../2.4/models/pod_oai_gen_all_of1.go | 0 .../faclient/2.4/models/pod_patch.go | 0 .../faclient/2.4/models/pod_patch_all_of0.go | 0 .../faclient/2.4/models/pod_patch_all_of1.go | 0 .../2.4/models/pod_patch_oai_gen_all_of1.go | 0 .../faclient/2.4/models/pod_performance.go | 0 .../2.4/models/pod_performance_by_array.go | 0 .../2.4/models/pod_performance_replication.go | 0 .../pod_performance_replication_by_array.go | 0 ...mance_replication_by_array_get_response.go | 0 ...ce_replication_by_array_oai_gen_all_of1.go | 0 ...lication_by_array_oai_gen_all_of1_array.go | 0 ...rformance_replication_by_array_response.go | 0 ...od_performance_replication_get_response.go | 0 ...cation_oai_gen_continuous_bytes_per_sec.go | 0 ...lication_oai_gen_periodic_bytes_per_sec.go | 0 ...pod_performance_replication_oai_gen_pod.go | 0 ...eplication_oai_gen_resync_bytes_per_sec.go | 0 ..._replication_oai_gen_sync_bytes_per_sec.go | 0 .../pod_performance_replication_response.go | 0 ...rmance_replication_response_items_items.go | 0 .../faclient/2.4/models/pod_post.go | 0 .../faclient/2.4/models/pod_post_all_of1.go | 0 .../2.4/models/pod_post_all_of1_source.go | 0 .../faclient/2.4/models/pod_replica_link.go | 0 .../models/pod_replica_link_get_response.go | 0 .../2.4/models/pod_replica_link_lag.go | 0 .../pod_replica_link_lag_get_response.go | 0 .../pod_replica_link_lag_oai_gen_all_of1.go | 0 ...od_replica_link_lag_oai_gen_all_of1_lag.go | 0 ...lica_link_lag_oai_gen_all_of1_local_pod.go | 0 ...ica_link_lag_oai_gen_all_of1_remote_pod.go | 0 .../models/pod_replica_link_lag_response.go | 0 .../pod_replica_link_oai_gen_all_of1.go | 0 ..._replica_link_oai_gen_all_of1_local_pod.go | 0 ...replica_link_oai_gen_all_of1_remote_pod.go | 0 .../2.4/models/pod_replica_link_patch.go | 0 .../models/pod_replica_link_performance.go | 0 ...od_replica_link_performance_replication.go | 0 ...nk_performance_replication_get_response.go | 0 ...a_link_performance_replication_response.go | 0 .../2.4/models/pod_replica_link_response.go | 0 .../faclient/2.4/models/pod_response.go | 0 .../faclient/2.4/models/pod_space.go | 0 .../faclient/2.4/models/pod_space1.go | 0 .../faclient/2.4/models/pod_space_all_of1.go | 0 .../{ => array}/faclient/2.4/models/policy.go | 0 .../2.4/models/policy_get_response.go | 0 .../faclient/2.4/models/policy_member.go | 0 .../2.4/models/policy_member_export.go | 0 .../policy_member_export_get_response.go | 0 .../policy_member_export_oai_gen_all_of1.go | 0 .../2.4/models/policy_member_export_post.go | 0 ...policy_member_export_post_members_items.go | 0 ...member_export_post_members_items_member.go | 0 .../models/policy_member_export_response.go | 0 .../2.4/models/policy_member_get_response.go | 0 .../models/policy_member_oai_gen_member.go | 0 .../models/policy_member_oai_gen_policy.go | 0 .../faclient/2.4/models/policy_member_post.go | 0 .../policy_member_post_members_items.go | 0 ...policy_member_post_members_items_member.go | 0 .../2.4/models/policy_member_response.go | 0 .../2.4/models/policy_oai_gen_all_of1.go | 2 +- .../faclient/2.4/models/policy_patch.go | 0 .../2.4/models/policy_patch_all_of1.go | 0 .../faclient/2.4/models/policy_post.go | 0 .../faclient/2.4/models/policy_response.go | 0 .../2.4/models/policy_rule_nfs_client.go | 0 .../policy_rule_nfs_client_get_response.go | 0 .../policy_rule_nfs_client_oai_gen_policy.go | 0 .../2.4/models/policy_rule_nfs_client_post.go | 0 ...policy_rule_nfs_client_post_rules_items.go | 0 .../models/policy_rule_nfs_client_response.go | 0 .../2.4/models/policy_rule_smb_client.go | 0 .../policy_rule_smb_client_get_response.go | 0 .../policy_rule_smb_client_oai_gen_policy.go | 0 .../2.4/models/policy_rule_smb_client_post.go | 0 ...policy_rule_smb_client_post_rules_items.go | 0 .../models/policy_rule_smb_client_response.go | 0 .../2.4/models/policy_rule_snapshot.go | 0 .../policy_rule_snapshot_get_response.go | 0 .../policy_rule_snapshot_oai_gen_policy.go | 0 .../2.4/models/policy_rule_snapshot_post.go | 0 .../models/policy_rule_snapshot_response.go | 0 .../faclient/2.4/models/policy_smb.go | 0 .../2.4/models/policy_smb_get_response.go | 0 .../2.4/models/policy_smb_oai_gen_all_of1.go | 0 .../faclient/2.4/models/policy_smb_patch.go | 0 .../2.4/models/policy_smb_patch_all_of1.go | 0 .../faclient/2.4/models/policy_smb_post.go | 0 .../2.4/models/policy_smb_post_all_of1.go | 0 .../2.4/models/policy_smb_response.go | 0 .../models/policyrulesnapshotpost_rules.go | 0 .../{ => array}/faclient/2.4/models/port.go | 0 .../faclient/2.4/models/port_common.go | 0 .../faclient/2.4/models/port_get_response.go | 0 .../2.4/models/port_get_response_all_of1.go | 0 .../faclient/2.4/models/port_initiator.go | 0 .../models/port_initiators_get_response.go | 0 .../port_initiators_get_response_all_of1.go | 0 .../2.4/models/port_oai_gen_all_of2.go | 0 .../post_oauth210_token_bad_request_body.go | 0 .../models/post_oauth210_token_o_k_body.go | 0 .../post_oauth210_token_unauthorized_body.go | 0 .../faclient/2.4/models/protection_group.go | 0 .../models/protection_group_get_response.go | 0 .../protection_group_get_response_all_of2.go | 0 .../protection_group_oai_gen_all_of1.go | 0 .../protection_group_oai_gen_all_of1_pod.go | 0 ...up_oai_gen_all_of1_replication_schedule.go | 0 ...group_oai_gen_all_of1_snapshot_schedule.go | 0 ...protection_group_oai_gen_all_of1_source.go | 0 ..._group_oai_gen_all_of1_source_retention.go | 0 .../protection_group_oai_gen_all_of1_space.go | 0 ..._group_oai_gen_all_of1_target_retention.go | 0 .../models/protection_group_performance.go | 0 .../protection_group_performance_array.go | 0 ...tection_group_performance_array_all_of2.go | 0 ...ection_group_performance_array_response.go | 0 ...roup_performance_array_response_all_of1.go | 0 .../protection_group_performance_by_array.go | 0 ...ction_group_performance_oai_gen_all_of2.go | 0 .../protection_group_performance_response.go | 0 ...tion_group_performance_response_all_of1.go | 0 .../2.4/models/protection_group_response.go | 0 .../2.4/models/protection_group_snapshot.go | 0 .../protection_group_snapshot_get_response.go | 0 ...ion_group_snapshot_get_response_all_of2.go | 0 ...otection_group_snapshot_oai_gen_all_of1.go | 0 ...tion_group_snapshot_oai_gen_all_of1_pod.go | 0 ...n_group_snapshot_oai_gen_all_of1_source.go | 0 ...on_group_snapshot_oai_gen_all_of1_space.go | 0 .../models/protection_group_snapshot_patch.go | 0 ...protection_group_snapshot_patch_all_of1.go | 0 .../models/protection_group_snapshot_post.go | 0 .../protection_group_snapshot_post_all_of2.go | 0 .../protection_group_snapshot_response.go | 0 .../protection_group_snapshot_transfer.go | 0 ...on_group_snapshot_transfer_get_response.go | 0 ..._snapshot_transfer_get_response_all_of2.go | 0 ...ection_group_snapshot_transfer_response.go | 0 .../2.4/models/protection_group_space.go | 0 .../2.4/models/protection_group_target.go | 0 .../protection_group_target_get_response.go | 0 ...protection_group_target_oai_gen_all_of0.go | 0 .../protection_group_target_response.go | 0 .../{ => array}/faclient/2.4/models/qos.go | 0 .../faclient/2.4/models/reference.go | 0 .../faclient/2.4/models/reference_no_id.go | 0 .../2.4/models/reference_with_type.go | 0 .../2.4/models/reference_with_type_all_of1.go | 0 .../faclient/2.4/models/remote_pod.go | 0 .../faclient/2.4/models/remote_pod_all_of1.go | 0 .../2.4/models/remote_pods_response.go | 0 .../models/remote_pods_response_all_of1.go | 0 .../2.4/models/remote_protection_group.go | 0 .../remote_protection_group_get_response.go | 0 ...remote_protection_group_oai_gen_all_of1.go | 0 ...protection_group_oai_gen_all_of1_remote.go | 0 ...protection_group_oai_gen_all_of1_source.go | 0 ..._group_oai_gen_all_of1_target_retention.go | 0 .../remote_protection_group_response.go | 0 .../remote_protection_group_snapshot.go | 0 ..._protection_group_snapshot_get_response.go | 0 ...otection_group_snapshot_oai_gen_all_of1.go | 0 ...n_group_snapshot_oai_gen_all_of1_remote.go | 0 ...n_group_snapshot_oai_gen_all_of1_source.go | 0 .../remote_protection_group_snapshot_post.go | 0 ..._protection_group_snapshot_post_all_of2.go | 0 ...mote_protection_group_snapshot_response.go | 0 ...mote_protection_group_snapshot_transfer.go | 0 ...on_group_snapshot_transfer_get_response.go | 0 ..._snapshot_transfer_get_response_all_of2.go | 0 ...ection_group_snapshot_transfer_response.go | 0 .../2.4/models/remote_volume_snapshot.go | 0 .../remote_volume_snapshot_get_response.go | 0 .../remote_volume_snapshot_oai_gen_all_of2.go | 0 ..._volume_snapshot_oai_gen_all_of2_remote.go | 0 .../models/remote_volume_snapshot_response.go | 0 .../models/remote_volume_snapshot_transfer.go | 0 ...e_volume_snapshot_transfer_get_response.go | 0 ..._snapshot_transfer_get_response_all_of2.go | 0 ...emote_volume_snapshot_transfer_response.go | 0 .../faclient/2.4/models/replica_link_lag.go | 0 .../replica_link_performance_replication.go | 0 ..._link_performance_replication_local_pod.go | 0 ...link_performance_replication_remote_pod.go | 0 .../replication_performance_with_total.go | 0 .../2.4/models/replication_schedule.go | 0 .../models/replication_schedule_all_of1.go | 0 .../replication_schedule_all_of1_blackout.go | 0 .../faclient/2.4/models/resource.go | 0 .../models/resource_fixed_non_unique_name.go | 0 .../faclient/2.4/models/resource_no_id.go | 0 .../2.4/models/resource_performance.go | 0 .../models/resource_performance_by_array.go | 0 .../resource_performance_by_array_all_of1.go | 0 ...urce_performance_by_array_all_of1_array.go | 0 ...ource_performance_by_array_get_response.go | 0 ...rformance_by_array_get_response_all_of1.go | 0 .../resource_performance_get_response.go | 0 ...source_performance_get_response_all_of1.go | 0 .../2.4/models/resource_performance_no_id.go | 0 .../resource_performance_no_id_by_array.go | 0 ...urce_performance_no_id_by_array_all_of1.go | 0 ...erformance_no_id_by_array_all_of1_array.go | 0 ...performance_no_id_by_array_get_response.go | 0 ...nce_no_id_by_array_get_response_all_of1.go | 0 ...resource_performance_no_id_get_response.go | 0 ..._performance_no_id_get_response_all_of1.go | 0 .../faclient/2.4/models/resource_pod_space.go | 0 .../2.4/models/resource_pod_space_all_of1.go | 0 .../resource_pod_space_all_of1_space.go | 0 .../models/resource_pod_space_get_response.go | 0 ...resource_pod_space_get_response_all_of1.go | 0 .../faclient/2.4/models/resource_space.go | 0 .../2.4/models/resource_space_all_of1.go | 0 .../models/resource_space_all_of1_space.go | 0 .../2.4/models/resource_space_get_response.go | 0 .../resource_space_get_response_all_of1.go | 0 .../2.4/models/resource_space_no_id.go | 0 .../models/resource_space_no_id_all_of1.go | 0 .../resource_space_no_id_all_of1_space.go | 0 .../resource_space_no_id_get_response.go | 0 ...source_space_no_id_get_response_all_of1.go | 0 .../faclient/2.4/models/retention_policy.go | 0 .../faclient/2.4/models/session.go | 0 .../2.4/models/session_get_response.go | 0 .../models/session_get_response_all_of1.go | 0 .../2.4/models/session_oai_gen_all_of1.go | 0 .../{ => array}/faclient/2.4/models/smis.go | 0 .../faclient/2.4/models/smis_get_response.go | 0 .../faclient/2.4/models/smis_response.go | 0 .../{ => array}/faclient/2.4/models/smtp.go | 0 .../faclient/2.4/models/smtp_server.go | 0 .../2.4/models/smtp_server_all_of1.go | 0 .../2.4/models/smtp_server_get_response.go | 0 .../2.4/models/smtp_server_response.go | 0 .../faclient/2.4/models/snapshot.go | 0 .../faclient/2.4/models/snapshot_pod.go | 0 .../faclient/2.4/models/snapshot_schedule.go | 0 .../faclient/2.4/models/snapshot_source.go | 0 .../faclient/2.4/models/snmp_agent.go | 0 .../2.4/models/snmp_agent_get_response.go | 0 .../faclient/2.4/models/snmp_agent_mib.go | 0 .../2.4/models/snmp_agent_mib_all_of0.go | 0 .../2.4/models/snmp_agent_mib_get_response.go | 0 .../2.4/models/snmp_agent_mib_response.go | 0 .../2.4/models/snmp_agent_oai_gen_all_of1.go | 0 .../faclient/2.4/models/snmp_agent_patch.go | 0 .../2.4/models/snmp_agent_patch_all_of1.go | 0 .../2.4/models/snmp_agent_response.go | 0 .../faclient/2.4/models/snmp_manager.go | 0 .../2.4/models/snmp_manager_all_of1.go | 0 .../2.4/models/snmp_manager_get_response.go | 0 .../faclient/2.4/models/snmp_manager_patch.go | 0 .../2.4/models/snmp_manager_patch_all_of1.go | 0 .../faclient/2.4/models/snmp_manager_post.go | 0 .../2.4/models/snmp_manager_response.go | 0 .../faclient/2.4/models/snmp_managers.go | 0 .../faclient/2.4/models/snmp_v2c.go | 0 .../faclient/2.4/models/snmp_v3.go | 0 .../faclient/2.4/models/snmp_v3_patch.go | 0 .../faclient/2.4/models/snmp_v3_post.go | 0 .../faclient/2.4/models/software.go | 0 .../faclient/2.4/models/software_all_of0.go | 0 .../2.4/models/software_get_response.go | 0 .../2.4/models/software_installation.go | 0 .../models/software_installation_all_of2.go | 0 .../software_installation_all_of2_software.go | 0 .../2.4/models/software_installation_patch.go | 0 .../2.4/models/software_installation_post.go | 0 .../2.4/models/software_installation_step.go | 0 .../software_installation_step_all_of2.go | 0 ..._installation_step_all_of2_checks_items.go | 0 ..._installation_step_all_of2_installation.go | 0 .../2.4/models/software_installation_steps.go | 0 ...oftware_installation_steps_get_response.go | 0 .../software_installation_steps_response.go | 0 .../2.4/models/software_installations.go | 0 .../software_installations_get_response.go | 0 .../models/software_installations_response.go | 0 .../2.4/models/software_oai_gen1_all_of1.go | 0 .../2.4/models/software_oai_gen_all_of1.go | 0 ...ware_oai_gen_all_of1_upgrade_plan_items.go | 0 .../faclient/2.4/models/software_response.go | 0 .../{ => array}/faclient/2.4/models/space.go | 0 .../faclient/2.4/models/space_all_of1.go | 0 .../faclient/2.4/models/start_end_time.go | 0 .../{ => array}/faclient/2.4/models/subnet.go | 0 .../2.4/models/subnet_get_response.go | 0 .../2.4/models/subnet_oai_gen_all_of2.go | 0 .../faclient/2.4/models/subnet_patch.go | 0 .../faclient/2.4/models/subnet_post.go | 0 .../faclient/2.4/models/subnet_response.go | 0 .../faclient/2.4/models/support.go | 0 .../2.4/models/support_get_response.go | 0 .../2.4/models/support_oai_gen_all_of1.go | 0 ...i_gen_all_of1_remote_assist_paths_items.go | 0 .../faclient/2.4/models/support_patch.go | 0 .../faclient/2.4/models/support_response.go | 0 .../faclient/2.4/models/syslog_server.go | 0 .../2.4/models/syslog_server_get_response.go | 0 .../models/syslog_server_oai_gen_all_of1.go | 0 .../2.4/models/syslog_server_response.go | 0 .../2.4/models/syslog_server_settings.go | 0 .../syslog_server_settings_get_response.go | 0 .../models/syslog_server_settings_response.go | 0 .../{ => array}/faclient/2.4/models/tag.go | 0 .../faclient/2.4/models/tag_get_response.go | 0 .../faclient/2.4/models/tag_response.go | 0 .../2.4/models/target_protection_group.go | 0 .../models/target_protection_group_all_of0.go | 0 .../target_protection_group_post_patch.go | 0 ...get_protection_group_post_patch_all_of0.go | 0 .../faclient/2.4/models/test_result.go | 0 .../2.4/models/test_result_get_response.go | 0 .../2.4/models/test_result_response.go | 0 .../2.4/models/test_result_with_resource.go | 0 .../test_result_with_resource_get_response.go | 0 ...sult_with_resource_get_response_all_of1.go | 0 ...st_result_with_resource_oai_gen_all_of1.go | 0 ..._with_resource_oai_gen_all_of1_resource.go | 0 .../test_result_with_resource_response.go | 0 ...t_result_with_resource_response_all_of1.go | 0 .../faclient/2.4/models/throttle.go | 0 .../faclient/2.4/models/throttle_window.go | 0 .../faclient/2.4/models/time_window.go | 0 .../2.4/models/total_item_count_response.go | 0 .../faclient/2.4/models/transfer.go | 0 .../faclient/2.4/models/username.go | 0 .../faclient/2.4/models/username_response.go | 0 .../{ => array}/faclient/2.4/models/volume.go | 0 .../faclient/2.4/models/volume_all_of0.go | 0 .../faclient/2.4/models/volume_common.go | 0 .../2.4/models/volume_common_all_of1.go | 0 .../2.4/models/volume_common_all_of1_qos.go | 0 .../2.4/models/volume_common_all_of1_space.go | 0 .../2.4/models/volume_get_response.go | 0 .../2.4/models/volume_get_response_all_of2.go | 0 .../faclient/2.4/models/volume_group.go | 0 .../2.4/models/volume_group_get_response.go | 0 .../volume_group_get_response_all_of2.go | 0 .../models/volume_group_oai_gen_all_of1.go | 0 .../2.4/models/volume_group_performance.go | 0 .../faclient/2.4/models/volume_group_post.go | 0 .../2.4/models/volume_group_post_all_of2.go | 0 .../2.4/models/volume_group_response.go | 0 .../faclient/2.4/models/volume_group_space.go | 0 .../2.4/models/volume_oai_gen1_all_of1.go | 0 .../2.4/models/volume_oai_gen1_all_of1_pod.go | 0 .../models/volume_oai_gen1_all_of1_source.go | 0 .../volume_oai_gen1_all_of1_volume_group.go | 0 .../2.4/models/volume_oai_gen_all_of1.go | 0 .../faclient/2.4/models/volume_patch.go | 0 .../2.4/models/volume_patch_all_of0.go | 0 .../2.4/models/volume_patch_all_of1.go | 0 .../models/volume_patch_oai_gen_all_of2.go | 0 .../volume_patch_oai_gen_all_of2_pod.go | 0 .../volume_patch_oai_gen_all_of2_qos.go | 0 ...lume_patch_oai_gen_all_of2_volume_group.go | 0 .../faclient/2.4/models/volume_performance.go | 0 .../2.4/models/volume_performance_by_array.go | 0 .../faclient/2.4/models/volume_post.go | 0 .../2.4/models/volume_post_all_of1.go | 0 .../2.4/models/volume_post_all_of1_qos.go | 0 .../2.4/models/volume_post_all_of1_source.go | 0 .../faclient/2.4/models/volume_response.go | 0 .../faclient/2.4/models/volume_snapshot.go | 0 .../models/volume_snapshot_get_response.go | 0 .../volume_snapshot_get_response_all_of2.go | 0 .../models/volume_snapshot_oai_gen_all_of2.go | 0 .../volume_snapshot_oai_gen_all_of2_space.go | 0 ...e_snapshot_oai_gen_all_of2_volume_group.go | 0 .../2.4/models/volume_snapshot_patch.go | 0 .../2.4/models/volume_snapshot_post.go | 0 .../models/volume_snapshot_post_all_of1.go | 0 .../2.4/models/volume_snapshot_response.go | 0 .../2.4/models/volume_snapshot_transfer.go | 0 .../volume_snapshot_transfer_get_response.go | 0 ..._snapshot_transfer_get_response_all_of2.go | 0 .../volume_snapshot_transfer_response.go | 0 .../faclient/2.4/models/volume_space.go | 0 cbs/internal/array/faclient/auth/auth.go | 46 +++ cbs/internal/array/faclient/auth/tex.go | 73 ++++ cbs/internal/array/faclient/faclient.go | 38 ++ cbs/internal/array/faclient/faclient_test.go | 83 ++++ cbs/internal/array/mock_fa.go | 73 ++++ cbs/internal/cloud/api.go | 73 ++++ cbs/internal/cloud/aws.go | 114 +++++ cbs/internal/cloud/azure.go | 241 +++++++++++ cbs/internal/cloud/mock_aws.go | 184 +++++++++ cbs/internal/cloud/mock_azure.go | 197 +++++++++ cbs/internal/faclient/faclient.go | 287 ------------- cbs/internal/faclient/faclient_test.go | 81 ---- cbs/internal/service/version_mapper.go | 175 ++++++++ cbs/internal/service/version_mapper_test.go | 186 +++++++++ cbs/mock_aws.go | 125 ------ cbs/mock_azure.go | 109 ----- cbs/mock_db.go | 184 --------- cbs/provider.go | 31 +- cbs/provider_test.go | 37 +- cbs/resource_array_aws.go | 134 +++++- cbs/resource_array_aws_test.go | 110 +++-- cbs/resource_array_azure.go | 369 +++++++++++++---- cbs/resource_array_azure_test.go | 67 ++- docs/resources/array_azure.md | 81 +++- examples/aws_array/terraform.tfvars | 1 + examples/aws_array/variables.tf | 4 + examples/azure_array/main.tf | 10 +- examples/azure_array/terraform.tfvars | 7 +- examples/azure_array/variables.tf | 20 +- go.mod | 56 +-- go.sum | 391 ++++++++++++++---- internal/mockdb/aws.go | 105 +++++ internal/mockdb/azure.go | 103 +++++ internal/mockdb/db.go | 125 ++++++ internal/tfazurerm/parse.go | 33 ++ internal/tfazurerm/resourceid.go | 166 ++++++++ testing/example_aws_config | 2 +- testing/example_azure_config | 9 +- testing/mock-params-aws.json | 2 + testing/mock-params-azure.json | 9 +- testing/mock.env | 2 +- testing/private-key.gpg | 57 +++ testing/ssh-private-key.pem | 27 ++ testing/test_version_config.json | 40 ++ version/version.go | 22 + 1404 files changed, 15941 insertions(+), 1771 deletions(-) create mode 100644 auth/bootstrap_interface.go create mode 100644 auth/bootstrap_service.go create mode 100644 auth/mock_bootstrap.go create mode 100644 auth/util.go create mode 100644 auth/util_test.go delete mode 100644 cbs/cloud_services.go create mode 100644 cbs/internal/array/api.go create mode 100644 cbs/internal/array/fa.go rename cbs/internal/{ => array}/faclient/2.4/client/active_directory/active_directory_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/active_directory/delete_api_24_active_directory_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/active_directory/delete_api_24_active_directory_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/active_directory/get_api_24_active_directory_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/active_directory/get_api_24_active_directory_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/active_directory/post_api_24_active_directory_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/active_directory/post_api_24_active_directory_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/administrators_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/delete_api_24_admins_cache_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/delete_api_24_admins_cache_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/delete_api_24_admins_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/delete_api_24_admins_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/get_api_24_admins_cache_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/get_api_24_admins_cache_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/get_api_24_admins_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/get_api_24_admins_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/get_api_24_admins_settings_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/get_api_24_admins_settings_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/patch_api_24_admins_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/patch_api_24_admins_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/patch_api_24_admins_settings_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/patch_api_24_admins_settings_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/post_api_24_admins_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/post_api_24_admins_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/put_api_24_admins_cache_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/administrators/put_api_24_admins_cache_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/alert_watchers_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/alerts/alerts_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/alerts/get_api_24_alerts_events_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/alerts/get_api_24_alerts_events_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/alerts/get_api_24_alerts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/alerts/get_api_24_alerts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/alerts/patch_api_24_alerts_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/alerts/patch_api_24_alerts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/api_clients_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/delete_api_24_api_clients_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/delete_api_24_api_clients_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/get_api_24_api_clients_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/get_api_24_api_clients_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/patch_api_24_api_clients_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/patch_api_24_api_clients_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/post_api_24_api_clients_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/api_clients/post_api_24_api_clients_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/apps/apps_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/apps/get_api_24_apps_nodes_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/apps/get_api_24_apps_nodes_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/apps/get_api_24_apps_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/apps/get_api_24_apps_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/apps/patch_api_24_apps_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/apps/patch_api_24_apps_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/array_connections_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/delete_api_24_array_connections_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/delete_api_24_array_connections_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/get_api_24_array_connections_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/get_api_24_array_connections_path_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/get_api_24_array_connections_path_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/get_api_24_array_connections_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/patch_api_24_array_connections_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/patch_api_24_array_connections_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/post_api_24_array_connections_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/array_connections/post_api_24_array_connections_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/arrays_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/delete_api_24_arrays_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/delete_api_24_arrays_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_eula_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_eula_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_performance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_performance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_space_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/get_api_24_arrays_space_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/patch_api_24_arrays_eula_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/patch_api_24_arrays_eula_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/patch_api_24_arrays_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/patch_api_24_arrays_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/audits/audits_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/audits/get_api_24_audits_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/audits/get_api_24_audits_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/authorization_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/get_api_api_version_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/get_api_api_version_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/post_api_24_login_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/post_api_24_login_responses.go (63%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/post_api_24_logout_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/post_api_24_logout_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/post_oauth210_token_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/authorization/post_oauth210_token_responses.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/certificates_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/delete_api_24_certificates_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/delete_api_24_certificates_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/get_api_24_certificates_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/get_api_24_certificates_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/patch_api_24_certificates_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/patch_api_24_certificates_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/post_api_24_certificates_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/certificates/post_api_24_certificates_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/connections/connections_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/connections/delete_api_24_connections_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/connections/delete_api_24_connections_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/connections/get_api_24_connections_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/connections/get_api_24_connections_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/connections/post_api_24_connections_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/connections/post_api_24_connections_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/controllers/controllers_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/controllers/get_api_24_controllers_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/controllers/get_api_24_controllers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/delete_api_24_directories_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/delete_api_24_directories_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/directories_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_performance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_performance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_policies_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_policies_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_policies_smb_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_policies_smb_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_space_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/get_api_24_directories_space_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/patch_api_24_directories_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/patch_api_24_directories_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/post_api_24_directories_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/post_api_24_directories_policies_smb_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/post_api_24_directories_policies_smb_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_responses.go (60%) rename cbs/internal/{ => array}/faclient/2.4/client/directories/post_api_24_directories_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_exports/directory_exports_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_exports/get_api_24_directory_exports_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_exports/get_api_24_directory_exports_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_exports/post_api_24_directory_exports_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_exports/post_api_24_directory_exports_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/directory_services_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/get_api_24_directory_services_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/get_api_24_directory_services_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/patch_api_24_directory_services_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/patch_api_24_directory_services_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/directory_snapshots_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/dns/dns_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/dns/get_api_24_dns_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/dns/get_api_24_dns_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/dns/patch_api_24_dns_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/dns/patch_api_24_dns_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/drives/drives_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/drives/get_api_24_drives_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/drives/get_api_24_drives_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/drives/patch_api_24_drives_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/drives/patch_api_24_drives_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/delete_api_24_file_systems_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/delete_api_24_file_systems_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/file_systems_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/get_api_24_file_systems_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/get_api_24_file_systems_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/patch_api_24_file_systems_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/patch_api_24_file_systems_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/post_api_24_file_systems_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/file_systems/post_api_24_file_systems_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/flasharray_client.go (83%) rename cbs/internal/{ => array}/faclient/2.4/client/hardware/get_api_24_hardware_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hardware/get_api_24_hardware_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hardware/hardware_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hardware/patch_api_24_hardware_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/hardware/patch_api_24_hardware_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/delete_api_24_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/delete_api_24_host_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_space_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/get_api_24_host_groups_space_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/host_groups_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/patch_api_24_host_groups_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/patch_api_24_host_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/post_api_24_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/host_groups/post_api_24_host_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/delete_api_24_hosts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/delete_api_24_hosts_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_performance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_performance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_space_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/get_api_24_hosts_space_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/hosts_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/patch_api_24_hosts_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/patch_api_24_hosts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/post_api_24_hosts_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/hosts/post_api_24_hosts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/delete_api_24_kmip_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/delete_api_24_kmip_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/get_api_24_kmip_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/get_api_24_kmip_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/kmip_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/patch_api_24_kmip_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/patch_api_24_kmip_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/post_api_24_kmip_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/kmip/post_api_24_kmip_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/maintenance_windows/maintenance_windows_swagger_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/network_interfaces_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/offloads/delete_api_24_offloads_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/offloads/delete_api_24_offloads_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/offloads/get_api_24_offloads_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/offloads/get_api_24_offloads_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/offloads/offloads_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/offloads/post_api_24_offloads_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/offloads/post_api_24_offloads_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/pod_replica_links_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/delete_api_24_pods_arrays_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/delete_api_24_pods_arrays_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/delete_api_24_pods_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/delete_api_24_pods_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_arrays_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_arrays_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_performance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_performance_replication_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_performance_replication_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_performance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_space_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/get_api_24_pods_space_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/patch_api_24_pods_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/patch_api_24_pods_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/pods_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/post_api_24_pods_arrays_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/post_api_24_pods_arrays_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/post_api_24_pods_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/pods/post_api_24_pods_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_nfs_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_nfs_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_smb_members_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_smb_members_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_smb_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_smb_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_snapshot_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_snapshot_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_members_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_members_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_nfs_members_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_nfs_members_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_nfs_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_nfs_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_smb_members_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_smb_members_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_smb_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_smb_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_snapshot_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_snapshot_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/patch_api_24_policies_nfs_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/patch_api_24_policies_nfs_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/patch_api_24_policies_smb_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/patch_api_24_policies_smb_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/patch_api_24_policies_snapshot_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/patch_api_24_policies_snapshot_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/policies_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_nfs_members_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_nfs_members_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_nfs_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_nfs_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_smb_members_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_smb_members_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_smb_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_smb_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_snapshot_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_snapshot_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/ports/get_api_24_ports_initiators_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/ports/get_api_24_ports_initiators_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/ports/get_api_24_ports_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/ports/get_api_24_ports_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/ports/ports_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_group_snapshots/protection_group_snapshots_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/protection_groups/protection_groups_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_pods/get_api_24_remote_pods_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_pods/get_api_24_remote_pods_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_pods/remote_pods_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_responses.go (55%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_group_snapshots/remote_protection_group_snapshots_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_protection_groups/remote_protection_groups_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/remote_volume_snapshots/remote_volume_snapshots_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/sessions/get_api_24_sessions_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/sessions/get_api_24_sessions_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/sessions/sessions_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/smi_s/get_api_24_smis_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/smi_s/get_api_24_smis_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/smi_s/patch_api_24_smis_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/smi_s/patch_api_24_smis_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/smi_s/s_m_is_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/smtp/get_api_24_smtp_servers_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/smtp/get_api_24_smtp_servers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/smtp/patch_api_24_smtp_servers_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/smtp/patch_api_24_smtp_servers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/smtp/smtp_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_agents/snmp_agents_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/snmp_managers/snmp_managers_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/software/get_api_24_software_installation_steps_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/software/get_api_24_software_installation_steps_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/software/get_api_24_software_installations_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/software/get_api_24_software_installations_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/software/get_api_24_software_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/software/get_api_24_software_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/software/patch_api_24_software_installations_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/software/patch_api_24_software_installations_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/software/post_api_24_software_installations_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/software/post_api_24_software_installations_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/software/software_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/delete_api_24_subnets_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/delete_api_24_subnets_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/get_api_24_subnets_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/get_api_24_subnets_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/patch_api_24_subnets_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/patch_api_24_subnets_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/post_api_24_subnets_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/post_api_24_subnets_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/subnets/subnets_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/support/get_api_24_support_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/support/get_api_24_support_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/support/get_api_24_support_test_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/support/get_api_24_support_test_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/support/patch_api_24_support_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/support/patch_api_24_support_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/support/support_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/delete_api_24_syslog_servers_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/delete_api_24_syslog_servers_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/get_api_24_syslog_servers_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/get_api_24_syslog_servers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/patch_api_24_syslog_servers_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/patch_api_24_syslog_servers_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/post_api_24_syslog_servers_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/post_api_24_syslog_servers_responses.go (62%) rename cbs/internal/{ => array}/faclient/2.4/client/syslog/syslog_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/get_api_24_volume_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/get_api_24_volume_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/post_api_24_volume_groups_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/post_api_24_volume_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_groups/volume_groups_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_responses.go (60%) rename cbs/internal/{ => array}/faclient/2.4/client/volume_snapshots/volume_snapshots_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/delete_api_24_volumes_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/delete_api_24_volumes_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/delete_api_24_volumes_tags_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/delete_api_24_volumes_tags_responses.go (54%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_performance_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_performance_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_space_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_space_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_tags_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_tags_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/patch_api_24_volumes_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/patch_api_24_volumes_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/post_api_24_volumes_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_parameters.go (100%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/post_api_24_volumes_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_parameters.go (99%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_responses.go (61%) rename cbs/internal/{ => array}/faclient/2.4/client/volumes/volumes_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/active_directory.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/active_directory_all_of1.go (75%) rename cbs/internal/{ => array}/faclient/2.4/models/active_directory_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/active_directory_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/active_directory_post_all_of1.go (60%) rename cbs/internal/{ => array}/faclient/2.4/models/active_directory_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_api_token.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_api_token_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_api_token_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_api_token_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_cache.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_cache_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_cache_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_cache_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_role.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_settings.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/admin_settings_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/aggregate_replication_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_event.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_event_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_event_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_event_oai_gen_all_of1_alert.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_event_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_watcher.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_watcher_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_watcher_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_watcher_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_watcher_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/alert_watcher_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/api_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/api_client_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/api_client_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/api_client_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/api_client_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/api_token.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/api_version_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/app.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/app_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/app_node.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/app_node_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/app_node_oai_gen_app.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/app_node_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/app_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/app_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_key.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_key_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_key_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_path.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_path_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_path_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_path_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_post_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_connection_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_factory_reset_token.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_factory_reset_token_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_factory_reset_token_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_factory_reset_token_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_performance_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_performance_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_performance_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_space_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_space_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_space_get_response_all_of1_items_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_space_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_space_oai_gen_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/arrays.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/arrays_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/audit.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/audit_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/audit_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/audit_oai_gen_all_of1_origin.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/audit_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/built_in.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/built_in_relationship.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/built_in_resource_no_id.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_post_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_signing_request.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_signing_request_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_signing_request_post_certificate.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/certificate_signing_request_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/chap.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_oai_gen1_host.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_oai_gen1_host_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_oai_gen1_protocol_endpoint.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_oai_gen1_volume.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_post_protocol_endpoint.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/connection_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/controller.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/controller_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/controller_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/controller_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/controllers.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/destroyed_patch_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_export.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_export_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_export_oai_gen_directory.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_export_oai_gen_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_export_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_export_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_oai_gen_all_of1_file_system.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_oai_gen_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_performance_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_performance_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_performance_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_policy_export_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_policy_export_post_policies_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_policy_export_post_policies_items_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_policy_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_policy_post_policies_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_policy_post_policies_items_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service_oai_gen_all_of1_management.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service_role.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service_role_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service_role_oai_gen_role.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_service_role_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_patch_all_of1_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_post_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_post_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_snapshot_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/directory_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/dns.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/dns_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/dns_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/dns_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/drive.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/drive_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/drive_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/drive_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/drive_response.go (100%) create mode 100644 cbs/internal/array/faclient/2.4/models/error.go create mode 100644 cbs/internal/array/faclient/2.4/models/error_errors_items.go create mode 100644 cbs/internal/array/faclient/2.4/models/error_unroll.go rename cbs/internal/{ => array}/faclient/2.4/models/eula.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/eula_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/eula_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/eula_signature.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/file_system.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/file_system_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/file_system_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/file_system_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/file_system_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/fixed_name_resource_no_id.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/fixed_reference.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/fixed_reference_no_id.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/fixed_reference_with_type.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/fixed_reference_with_type_all_of1.go (82%) rename cbs/internal/{ => array}/faclient/2.4/models/hardware.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/hardware_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/hardware_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/hardware_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/hardware_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/hardware_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group_oai_gen_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group_performance_by_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_group_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_oai_gen1_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_oai_gen1_all_of1_host_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_oai_gen1_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_patch_all_of1_host_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_performance_balance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_performance_balance_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_performance_balance_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_performance_balance_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_performance_balance_oai_gen_all_of1_target.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_performance_by_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_port_connectivity.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_post_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/host_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_oai_gen_all_of1_certificate.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_patch_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_patch_all_of0_certificate.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_post_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_post_all_of0_certificate.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_test_result.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_test_result_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/kmip_test_result_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/maintenance_window.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/maintenance_window_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/maintenance_window_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/maintenance_window_post_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/maintenance_windows_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/maintenance_windows_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_no_id_all.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_no_id_all_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_no_id_all_oai_gen_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_member.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_no_id_all_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_no_id_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_no_id_group_oai_gen_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_oai_gen_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/member_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_oai_gen_all_of1_eth.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_oai_gen_all_of1_eth_subnet.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_oai_gen_all_of1_fc.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_patch_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_patch_all_of0_eth.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_patch_all_of0_eth_subnet.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_performance_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_performance_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_performance_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_eth.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_fc.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_post_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_post_all_of1_eth.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_post_all_of1_eth_subnet.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/network_interface_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/new_name.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_azure.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_google_cloud.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_nfs.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_post_azure.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_post_google_cloud.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_post_nfs.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_post_s3.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/offload_s3.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/override_check.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/page_info.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/page_info_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/page_info_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/performance_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/performance_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_all_of0_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_array_status.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_array_status_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_oai_gen1_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_oai_gen2_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_oai_gen2_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_oai_gen2_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_patch_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_patch_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_by_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_by_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_by_array_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_by_array_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_oai_gen_continuous_bytes_per_sec.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_oai_gen_periodic_bytes_per_sec.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_oai_gen_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_oai_gen_resync_bytes_per_sec.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_oai_gen_sync_bytes_per_sec.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_performance_replication_response_items_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_post_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_post_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_lag.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_lag_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_lag.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_local_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_remote_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_lag_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_local_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_remote_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_performance_replication.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_performance_replication_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_performance_replication_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_replica_link_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_space1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/pod_space_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_export.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_export_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_export_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_export_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_export_post_members_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_export_post_members_items_member.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_export_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_oai_gen_member.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_oai_gen_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_post_members_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_post_members_items_member.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_member_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_oai_gen_all_of1.go (92%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_nfs_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_nfs_client_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_nfs_client_oai_gen_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_nfs_client_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_nfs_client_post_rules_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_nfs_client_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_smb_client.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_smb_client_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_smb_client_oai_gen_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_smb_client_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_smb_client_post_rules_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_smb_client_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_snapshot.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_snapshot_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_snapshot_oai_gen_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_snapshot_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_rule_snapshot_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_smb.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_smb_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_smb_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_smb_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_smb_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_smb_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_smb_post_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policy_smb_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/policyrulesnapshotpost_rules.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/port.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/port_common.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/port_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/port_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/port_initiator.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/port_initiators_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/port_initiators_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/port_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/post_oauth210_token_bad_request_body.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/post_oauth210_token_o_k_body.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/post_oauth210_token_unauthorized_body.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_oai_gen_all_of1_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_oai_gen_all_of1_replication_schedule.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_oai_gen_all_of1_snapshot_schedule.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_oai_gen_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_oai_gen_all_of1_source_retention.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_oai_gen_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_oai_gen_all_of1_target_retention.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance_array_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance_array_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance_array_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance_by_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_performance_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_post_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_transfer.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_transfer_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_transfer_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_snapshot_transfer_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_target.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_target_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_target_oai_gen_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/protection_group_target_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/qos.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/reference.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/reference_no_id.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/reference_with_type.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/reference_with_type_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_pod_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_pods_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_pods_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_remote.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_target_retention.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_remote.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_post_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_transfer.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_protection_group_snapshot_transfer_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2_remote.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot_transfer.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot_transfer_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot_transfer_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/remote_volume_snapshot_transfer_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/replica_link_lag.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/replica_link_performance_replication.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/replica_link_performance_replication_local_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/replica_link_performance_replication_remote_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/replication_performance_with_total.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/replication_schedule.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/replication_schedule_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/replication_schedule_all_of1_blackout.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_fixed_non_unique_name.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_no_id.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_by_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_by_array_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_by_array_all_of1_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_by_array_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_by_array_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_no_id.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_no_id_by_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_no_id_by_array_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_no_id_by_array_all_of1_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_no_id_by_array_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_no_id_by_array_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_no_id_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_performance_no_id_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_pod_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_pod_space_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_pod_space_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_pod_space_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_pod_space_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_no_id.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_no_id_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_no_id_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_no_id_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/resource_space_no_id_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/retention_policy.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/session.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/session_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/session_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/session_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/smis.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/smis_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/smis_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/smtp.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/smtp_server.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/smtp_server_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/smtp_server_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/smtp_server_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snapshot.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snapshot_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snapshot_schedule.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snapshot_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_mib.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_mib_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_mib_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_mib_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_agent_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_manager.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_manager_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_manager_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_manager_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_manager_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_manager_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_manager_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_managers.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_v2c.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_v3.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_v3_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/snmp_v3_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_all_of2_software.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_step.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_step_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_step_all_of2_checks_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_step_all_of2_installation.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_steps.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_steps_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installation_steps_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installations.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installations_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_installations_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_oai_gen1_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_oai_gen_all_of1_upgrade_plan_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/software_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/space_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/start_end_time.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/subnet.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/subnet_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/subnet_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/subnet_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/subnet_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/subnet_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/support.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/support_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/support_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/support_oai_gen_all_of1_remote_assist_paths_items.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/support_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/support_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/syslog_server.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/syslog_server_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/syslog_server_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/syslog_server_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/syslog_server_settings.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/syslog_server_settings_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/syslog_server_settings_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/tag.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/tag_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/tag_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/target_protection_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/target_protection_group_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/target_protection_group_post_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/target_protection_group_post_patch_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_with_resource.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_with_resource_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_with_resource_get_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1_resource.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_with_resource_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/test_result_with_resource_response_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/throttle.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/throttle_window.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/time_window.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/total_item_count_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/transfer.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/username.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/username_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_common.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_common_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_common_all_of1_qos.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_common_all_of1_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group_post_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_group_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_oai_gen1_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_oai_gen1_all_of1_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_oai_gen1_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_oai_gen1_all_of1_volume_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_oai_gen_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_patch_all_of0.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_patch_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_patch_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_patch_oai_gen_all_of2_pod.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_patch_oai_gen_all_of2_qos.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_patch_oai_gen_all_of2_volume_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_performance.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_performance_by_array.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_post_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_post_all_of1_qos.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_post_all_of1_source.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_oai_gen_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_space.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_volume_group.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_patch.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_post.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_post_all_of1.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_transfer.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_transfer_get_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_transfer_get_response_all_of2.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_snapshot_transfer_response.go (100%) rename cbs/internal/{ => array}/faclient/2.4/models/volume_space.go (100%) create mode 100644 cbs/internal/array/faclient/auth/auth.go create mode 100644 cbs/internal/array/faclient/auth/tex.go create mode 100644 cbs/internal/array/faclient/faclient.go create mode 100644 cbs/internal/array/faclient/faclient_test.go create mode 100644 cbs/internal/array/mock_fa.go create mode 100644 cbs/internal/cloud/api.go create mode 100644 cbs/internal/cloud/aws.go create mode 100644 cbs/internal/cloud/azure.go create mode 100644 cbs/internal/cloud/mock_aws.go create mode 100644 cbs/internal/cloud/mock_azure.go delete mode 100644 cbs/internal/faclient/faclient.go delete mode 100644 cbs/internal/faclient/faclient_test.go create mode 100644 cbs/internal/service/version_mapper.go create mode 100644 cbs/internal/service/version_mapper_test.go delete mode 100644 cbs/mock_aws.go delete mode 100644 cbs/mock_azure.go delete mode 100644 cbs/mock_db.go create mode 100644 internal/mockdb/aws.go create mode 100644 internal/mockdb/azure.go create mode 100644 internal/mockdb/db.go create mode 100644 internal/tfazurerm/parse.go create mode 100644 internal/tfazurerm/resourceid.go create mode 100644 testing/private-key.gpg create mode 100644 testing/ssh-private-key.pem create mode 100644 testing/test_version_config.json create mode 100644 version/version.go diff --git a/.gitignore b/.gitignore index 381efb2..c0fc684 100644 --- a/.gitignore +++ b/.gitignore @@ -21,5 +21,5 @@ **/.terraform.lock.hcl /.build/ +/.build-logs/ **/.vscode/ - diff --git a/.goreleaser.yml b/.goreleaser.yml index 828a26c..7f0b902 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -16,7 +16,7 @@ builds: flags: - -trimpath ldflags: - - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' + - '-s -w -X github.dev.purestorage.com/FlashArray/terraform-provider-cbs/version.ProviderVersion={{.Version}}' goos: - freebsd - windows diff --git a/CHANGELOG.md b/CHANGELOG.md index e5acd1a..7f11412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.6.0 (Aug 3, 2021) + +* Update Purity version of cbs_array_azure from 6.1.7 to 6.1.8 +* Deactivation now supported for Azure +* Better handling of SecureString fields, fixes issue #3 +* Simplified Azure networking parameters +* Multiple Azure parameters were changed as part of deactivation and networking work, as always refer to the [documentation](docs/resources/array_azure.md) + ## 0.5.0 (July 20, 2021) * Update Purity version of cbs_array_azure from 6.1.6 to 6.1.7 diff --git a/Makefile b/Makefile index 5b536cb..b1ab0e4 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,39 @@ DEV_PKGDIR := $(HOME)/.terraform.d/plugins/terraform.purestorage.com/flasharray/cbs/ DEV_GOBIN := $(DEV_PKGDIR)/99.99/linux_amd64/ +SRC_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) +SHELL=/bin/bash -eEuo pipefail # Set sane shell options +MAKEFLAGS += -j4 +TMPBIN=/tmp/bin +TEST_GPG_FINGERPRINT=47F12A8402BBC3906D7C3FAB78C24746203D8F4E +export GNUPGHOME := /tmp/gnupg +export PATH := $(TMPBIN):$(PATH) default: build +setup-basic: + @mkdir -p .build-logs/ + + +setup-goreleaser: + @curl -sfLO https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh + @bash goreleaser.sh -b $(TMPBIN) &> /dev/null + @rm goreleaser.sh +# Replace with just this after go 1.16: +# @GOBIN=$(TMPBIN) go install github.com/goreleaser/goreleaser@latest + +# CI="" for goreleaser will prevent extra control characters from cluttering +# the logs. See https://github.com/goreleaser/goreleaser/blob/b43a2e95ec03261a847fdf9239100d9d36adc60c/cmd/root.go#L15 +test-goreleaser-release: setup-goreleaser setup-basic + @mkdir -p $(GNUPGHOME) + @chmod 0700 $(GNUPGHOME) + @gpg --batch --delete-secret-keys $(TEST_GPG_FINGERPRINT) &>/dev/null || true + @gpg --batch --delete-keys $(TEST_GPG_FINGERPRINT) &>/dev/null || true + @gpg --import < testing/private-key.gpg >> .build-logs/goreleaser-release 2>&1 + @GPG_FINGERPRINT=$(TEST_GPG_FINGERPRINT) CI="" goreleaser release --debug --snapshot --rm-dist >> .build-logs/goreleaser-release 2>&1 + +test-goreleaser-check: setup-goreleaser setup-basic + @CI="" goreleaser check >> .build-logs/goreleaser-check 2>&1 + build: go build @@ -16,22 +47,32 @@ install-dev: GOBIN=$(DEV_GOBIN) go install install-dev-clean: - rm -rvf $(DEV_PKGDIR) + @rm -rvf $(DEV_PKGDIR) -test-acc-mock: - set -a; . testing/mock.env; go test --tags mock,mock_trace ./cbs -v -timeout 120m + +# This part just helps reduce noise, we + +test-everything-with-mocks: setup-basic + @set -a; . testing/mock.env; TF_LOG=TRACE TF_LOG_PATH="$(SRC_DIR)/.build-logs/terraform" go test --tags mock ./... -v -timeout 120m \ + 2>&1 | tee .build-logs/acc-mock | grep -vE '^=== RUN|^--- PASS:|^--- SKIP:|^=== PAUSE|^=== CONT|^PASS|^ok|\[no test files\]' + +# The redirections and tee/grep stuff above is to help reduce console noise, we filter out all of the nominal messages, so its easier to see any errors +# the full unfiltered log is in .build-logs/acc-mock test-vet: - go vet ./cbs - go vet -tags mock ./cbs + @go vet ./cbs + @go vet -tags mock ./cbs # Tests that should run on each pull request -test-pull-request: test-vet test-acc-mock +test-pull-request: test-vet test-everything-with-mocks test-goreleaser-release test-goreleaser-check + +reset-mock-db: + @rm -v .build/test.db tidy: - go get -u - go mod tidy -v - go fmt ./cbs - go fix ./cbs - go clean ./cbs - go clean --tags mock ./cbs + @go get -u + @go mod tidy -v + @go fmt ./cbs + @go fix ./cbs + @go clean ./cbs + @go clean --tags mock ./cbs diff --git a/auth/bootstrap_interface.go b/auth/bootstrap_interface.go new file mode 100644 index 0000000..0f60f85 --- /dev/null +++ b/auth/bootstrap_interface.go @@ -0,0 +1,31 @@ +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +package auth + +type Bootstrapper interface { + GenerateSecretPayload(host string, pureuserPrivateKey []byte) ([]byte, error) +} + +type SecretPayload struct { + UserName string `json:"user_name"` + Issuer string `json:"issuer"` + ClientID string `json:"client_id"` + KeyID string `json:"key_id"` + RestPrivateKey string `json:"rest_private_key"` +} diff --git a/auth/bootstrap_service.go b/auth/bootstrap_service.go new file mode 100644 index 0000000..17ece9b --- /dev/null +++ b/auth/bootstrap_service.go @@ -0,0 +1,308 @@ +// +build !mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +package auth + +import ( + "bufio" + "crypto/rand" + "crypto/rsa" + "crypto/x509" + "encoding/base64" + "encoding/json" + "encoding/pem" + "fmt" + "io" + "net" + "strings" + + "golang.org/x/crypto/ssh" +) + +type bootstrapService struct{} + +func NewBootstrapService() Bootstrapper { + return &bootstrapService{} +} + +func (b *bootstrapService) GenerateSecretPayload(host string, pureuserPrivateKey []byte) ([]byte, error) { + privatePem, publicPem, err := generateKeyPair() + if err != nil { + return nil, err + } + + authMethod, err := pureuserPublicKeyAuth(pureuserPrivateKey) + if err != nil { + return nil, err + } + + sshConfig := &ssh.ClientConfig{ + User: "pureuser", + Auth: []ssh.AuthMethod{authMethod}, + HostKeyCallback: ssh.InsecureIgnoreHostKey(), + } + + conn, err := net.Dial("tcp", net.JoinHostPort(host, "22")) + if err != nil { + return nil, fmt.Errorf("dial error: %+v", err) + } + + sshConn, chans, reqs, err := ssh.NewClientConn(conn, host, sshConfig) + if err != nil { + return nil, fmt.Errorf("failed to create new ssh client session: %+v", err) + } + + client := ssh.NewClient(sshConn, chans, reqs) + + adminUserPwd, err := generateAdminUserPwd() + if err != nil { + return nil, fmt.Errorf("failed to generate a random password: %+v", err) + } + + const adminUser = "orchestration-user" + const apiClient = "orchestration-client" + if err = executeCmdPwdInput(client, "pureadmin create --role array_admin "+adminUser, adminUserPwd); err != nil { + return nil, err + } + + if err = executeCmdPubKeyInput(client, "pureapiclient create --max-role array_admin --public-key "+apiClient, string(publicPem)); err != nil { + return nil, err + } + + if _, err := executeCmd(client, "pureapiclient enable "+apiClient); err != nil { + return nil, err + } + + output, err := executeCmd(client, "pureapiclient list "+apiClient+" --csv") + if err != nil { + return nil, err + } + if len(output) != 2 { + return nil, fmt.Errorf("got an unexpected number of outputs from command: pureapiclient list " + apiClient) + } + fields := strings.Split(output[0], ",") + values := strings.Split(output[1], ",") + + apiClientMap := make(map[string]string) + for i := 0; i < len(fields); i++ { + apiClientMap[fields[i]] = values[i] + } + + payload := SecretPayload{ + UserName: adminUser, + Issuer: apiClientMap["Issuer"], + ClientID: apiClientMap["Client ID"], + KeyID: apiClientMap["Key ID"], + RestPrivateKey: string(privatePem), + } + credentials, err := json.Marshal(payload) + if err != nil { + return nil, err + } + + return credentials, nil +} + +func generateKeyPair() ([]byte, []byte, error) { + // generate private keys + privateRSAKey, err := rsa.GenerateKey(rand.Reader, 2048) + if err != nil { + return nil, nil, err + } + if err = privateRSAKey.Validate(); err != nil { + return nil, nil, err + } + + privateBytes := x509.MarshalPKCS1PrivateKey(privateRSAKey) + privateBlock := &pem.Block{ + Type: "RSA PRIVATE KEY", + Bytes: privateBytes, + } + + privatePem := pem.EncodeToMemory(privateBlock) + + // generate public keys + publicBytes, err := x509.MarshalPKIXPublicKey(&privateRSAKey.PublicKey) + if err != nil { + return nil, nil, err + } + publicKeyBlock := &pem.Block{ + Type: "PUBLIC KEY", + Bytes: publicBytes, + } + + publicPem := pem.EncodeToMemory(publicKeyBlock) + + return privatePem, publicPem, nil +} + +// generates a random password that we never intend to use +func generateAdminUserPwd() (string, error) { + b := make([]byte, 32) + _, err := rand.Read(b) + if err != nil { + return "", err + } + return base64.StdEncoding.EncodeToString(b), nil +} + +func executeCmd(client *ssh.Client, cmd string) ([]string, error) { + session, err := client.NewSession() + if err != nil { + return nil, fmt.Errorf("failed to start a new session: %+v", err) + } + defer session.Close() + + out, err := session.StdoutPipe() + if err != nil { + return nil, fmt.Errorf("failed to setup stdout for session: %+v", err) + } + lines := make([]string, 0) + go func() { + reader := bufio.NewReader(out) + for { + line, _, err := reader.ReadLine() + if err != nil { + break + } + lines = append(lines, string(line)) + } + }() + err = session.Run(cmd) + if err != nil { + return nil, fmt.Errorf("failed to execute command %q: %+v", cmd, err) + } + return lines, nil +} + +func executeCmdPubKeyInput(client *ssh.Client, cmd string, input string) error { + session, err := client.NewSession() + if err != nil { + return fmt.Errorf("failed to start a new session: %+v", err) + } + defer session.Close() + + modes := ssh.TerminalModes{ + ssh.ECHO: 0, // disable echoing + ssh.TTY_OP_ISPEED: 14400, // input speed = 14.4kbaud + ssh.TTY_OP_OSPEED: 14400, // output speed = 14.4kbaud + } + if err := session.RequestPty("xterm", 80, 40, modes); err != nil { + session.Close() + return fmt.Errorf("request for pseudo terminal failed: %+v", err) + } + + in, err := session.StdinPipe() + if err != nil { + return fmt.Errorf("failed to setup stdin for session: %+v", err) + } + + out, err := session.StdoutPipe() + if err != nil { + return fmt.Errorf("failed to setup stdout for session: %+v", err) + } + + go func(in io.WriteCloser, out io.Reader) { + reader := bufio.NewReader(out) + for { + line, _, err := reader.ReadLine() + if err != nil { + break + } + + if string(line) == "Please enter public key followed by Enter and then Ctrl-D:" { + in.Write([]byte(input + "\n\x04")) + in.Close() + break + } + } + }(in, out) + err = session.Run(cmd) + if err != nil { + return fmt.Errorf("failed to execute command %q: %+v", cmd, err) + } + + return nil +} + +func executeCmdPwdInput(client *ssh.Client, cmd string, password string) error { + session, err := client.NewSession() + if err != nil { + return fmt.Errorf("failed to start a new session: %+v", err) + } + defer session.Close() + + modes := ssh.TerminalModes{ + ssh.ECHO: 0, // disable echoing + ssh.TTY_OP_ISPEED: 14400, // input speed = 14.4kbaud + ssh.TTY_OP_OSPEED: 14400, // output speed = 14.4kbaud + } + if err := session.RequestPty("xterm", 80, 40, modes); err != nil { + session.Close() + return fmt.Errorf("request for pseudo terminal failed: %+v", err) + } + + in, err := session.StdinPipe() + if err != nil { + return fmt.Errorf("failed to setup stdin for session: %+v", err) + } + + out, err := session.StdoutPipe() + if err != nil { + return fmt.Errorf("failed to setup stdout for session: %+v", err) + } + + go func(in io.WriteCloser, out io.Reader) { + reader := bufio.NewReader(out) + var line []byte + + for { + b, err := reader.ReadByte() + if err != nil { + break + } + line = append(line, b) + + if string(line) == "Enter password:" { + in.Write([]byte(password + "\n")) + line = line[:0] + } + if strings.Contains(string(line), "Retype password:") { + in.Write([]byte(password + "\n")) + in.Close() + break + } + } + }(in, out) + err = session.Run(cmd) + if err != nil { + return fmt.Errorf("failed to execute command %q: %+v", cmd, err) + } + + return nil +} + +func pureuserPublicKeyAuth(pureuserPrivateKey []byte) (ssh.AuthMethod, error) { + key, err := ssh.ParsePrivateKey(pureuserPrivateKey) + if err != nil { + return nil, fmt.Errorf("failed to parse private key: %+v", err) + } + return ssh.PublicKeys(key), nil +} diff --git a/auth/mock_bootstrap.go b/auth/mock_bootstrap.go new file mode 100644 index 0000000..cd7f537 --- /dev/null +++ b/auth/mock_bootstrap.go @@ -0,0 +1,48 @@ +// +build mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + This file contains a mock implementation of the AWS cloud service + calls. + +*/ + +package auth + +import ( + "encoding/json" +) + +func NewBootstrapService() Bootstrapper { + return &mockBootstrapService{} +} + +type mockBootstrapService struct{} + +func (b *mockBootstrapService) GenerateSecretPayload(host string, pureuserPrivateKey []byte) ([]byte, error) { + mockPayload := SecretPayload{ + UserName: "mockUser", + Issuer: "mockIssuer", + ClientID: "mockClientID", + KeyID: "mockKeyID", + RestPrivateKey: "mockRestPrivateKey", + } + credentials, _ := json.MarshalIndent(mockPayload, "", " ") + + return credentials, nil +} diff --git a/auth/util.go b/auth/util.go new file mode 100644 index 0000000..a2af545 --- /dev/null +++ b/auth/util.go @@ -0,0 +1,15 @@ +package auth + +import ( + "fmt" + + "golang.org/x/crypto/ssh" +) + +func PrivateKeyDerivePublicKey(pvtKeyBytes []byte) ([]byte, error) { + pvtKey, err := ssh.ParsePrivateKey(pvtKeyBytes) + if err != nil { + return nil, fmt.Errorf("failed to parse private key: %+v", err) + } + return ssh.MarshalAuthorizedKey(pvtKey.PublicKey()), nil +} diff --git a/auth/util_test.go b/auth/util_test.go new file mode 100644 index 0000000..a015a96 --- /dev/null +++ b/auth/util_test.go @@ -0,0 +1,72 @@ +package auth_test + +import ( + "fmt" + "testing" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/auth" + "golang.org/x/crypto/ssh" +) + +func TestPrivateKeyDerivePublicKeyMalformed(t *testing.T) { + _, err := auth.PrivateKeyDerivePublicKey([]byte("adfasdfadsfadsasdfs")) + if err == nil { + panic(fmt.Errorf("expected error")) + } +} +func TestPrivateKeyDerivePublicKeySuccess(t *testing.T) { + derivedPubBytes, err := auth.PrivateKeyDerivePublicKey([]byte(key0Pvt)) + if err != nil { + panic(err) + } + + derivedPub, _, _, _, err := ssh.ParseAuthorizedKey(derivedPubBytes) + if err != nil { + panic(err) + } + + knownPub, _, _, _, err := ssh.ParseAuthorizedKey([]byte(key0Pub)) + if err != nil { + panic(err) + } + + if ssh.FingerprintSHA256(derivedPub) != ssh.FingerprintSHA256(knownPub) { + t.Error() + } +} + +const key0Pub = "" + + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3E//FTyvCFb2tFq2s+aYJiEsS" + + "UEFtIKpXbAMqiOAdrr/JJGTKtHOFIOTcsu4R2DSZVqgpZzz8rh9Y/Q4DGW9SFUcF" + + "EdZK6XYZzYPUEz9WvcuyLelB2SlxN7GvbOiKJOBLLLYq9lDGfpWhSp/3Cdh8rLGg" + + "ESuXnbmR+hr5POvXAhLKgluu70LUQ7tQDa6N/YOzaK/fFbjg0E9WQkKFhNDWywik" + + "Sq14hBRG+K0tobpvLv4e3mrHlZE0V7EwqPNFz+k1hQwfSn6cJwrb2oyEsdVOmFem" + + "WAe++6ruL0PQQS3Th9mjOJMt8ulHLhBygB1rEnOyY47CljoTMETm5LDrpwaX" + +const key0Pvt = `-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEAtxP/xU8rwhW9rRatrPmmCYhLElBBbSCqV2wDKojgHa6/ySRk +yrRzhSDk3LLuEdg0mVaoKWc8/K4fWP0OAxlvUhVHBRHWSul2Gc2D1BM/Vr3Lsi3p +QdkpcTexr2zoiiTgSyy2KvZQxn6VoUqf9wnYfKyxoBErl525kfoa+Tzr1wISyoJb +ru9C1EO7UA2ujf2Ds2iv3xW44NBPVkJChYTQ1ssIpEqteIQURvitLaG6by7+Ht5q +x5WRNFexMKjzRc/pNYUMH0p+nCcK29qMhLHVTphXplgHvvuq7i9D0EEt04fZoziT +LfLpRy4QcoAdaxJzsmOOwpY6EzBE5uSw66cGlwIDAQABAoIBAQCaBGsiNM6dQukF +GpUVdhim4FA3oejIw7hKP4YSXIAeuIqDzug0V8bvcpLW0HjT7k2hynNCEaYO9PVO +SeVl2hn6tge/Thg3gVxnrKuA2IhqktUwmssnKGhi5PXInRisTwWaeIzwa7PcqVV8 +EWmtzEyh5i6weIFx1bDuC7hxgTzu7VUyqfXmWqaT/GhNrmgVOUPpY+WhLNWpz29U +D7pIHvSSGXYjonNC0QaHsu2Ju1d5CKFuzdYLEEnssKCTKEBEBsubVBV0T9E2P5fI +OdH5gRAfH47gEST2RoUyRrfCXEo0papC6NopNJaocC70Hrnv/CALRI7fb0HMoaYY +TEMLq3hhAoGBAN8F86W8vU3mIE/II5FIta2BaNNuNWAYgGcK8ve+CAai3A3D+vqe +ofQgA7n/9BPgFdndxG2huF4ELbX6trI4tEzSCNKA5VJl9zKx/crZqAnnjxYfll/l +IZRyP0dfN4LhQtXQ0IwxB3XWhYWeHfAhDSoJ/aQA5wfXrl411CmbTV/ZAoGBANIm +A3eC/xcoPTwtxtrPIcaGp+Ba1mDntr/todtCP7DkcPPGuXCAsduKV9Xza5TDrX2h +P2jNPeU0hEurb1FPfetLjjM1kE0fYoefcww5Fqh05v+J26mLN221TONCzNt7fKx9 +Q0taywqz2fCZPU8zNBnFM7H16SzYyRs8FzCkwwPvAoGBAISeamsk18EJ1i77CUNs +ZDR/npETmQPCriAYH7D4PJeNoqNA5e7AA/hCTVT+geqLtxKt0A+NOjAV9gSfyKIk +G/sObpaWdUdRQPTRaOSGF2mEW87BC8+MVjKK2Vwcn8rhHrg8irbCtPf6j72L76uK +S+SyujQbIUbFl3eINNhk9FbJAoGAH2Ehv2TGJnURv7yuJtorFvPgeXXW8R1ognw/ +YPghfo5990jDQ/NTm46q0v3IIKyfaVT8nO+YwHL5FjuBIckW6l2b3DWxWHLJSasb +iMW1hm3+WEYDkOuC2VTrKDw/Tr6/vRnvRH9INk7oyi53oy3oJ7j0oSwxJ0svrGtq +ow7XN+0CgYEAnHuBqqaVNTGbVrxF71bk99FdiMe5PZ2bQOtQUQswlsflmQzesRY3 +PD7oxKlqhCYCyjDctUpZsCK02NPMtiHOk1fxtU7nKi1yiJFRbHFXp2X0ucq3xtKv +R95QQozRL4ZSk/4P1PTLBtpRBPsfqNTihZWOoHcMEENXm9i6qr5lpdw= +-----END RSA PRIVATE KEY-----` diff --git a/cbs/cbs_service.go b/cbs/cbs_service.go index 4a4a155..8cd8242 100644 --- a/cbs/cbs_service.go +++ b/cbs/cbs_service.go @@ -19,51 +19,40 @@ package cbs import ( - "context" "fmt" - "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" - "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/managedapplications" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/cloud" ) -type cloudformationAPI interface { - CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) - DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) - DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) - WaitUntilStackCreateCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput, opts ...request.WaiterOption) error - WaitUntilStackDeleteCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput, opts ...request.WaiterOption) error -} - type CbsService struct { - CloudFormation cloudformationAPI - AzureClient AzureClientAPI - awsRegionStr string - azureConfig azureUserConfig + AWSClient cloud.AWSClientAPI + AzureClient cloud.AzureClientAPI + awsRegionStr string + azureConfig cloud.AzureConfig } -func (m *CbsService) CloudFormationService() (cloudformationAPI, diag.Diagnostics) { - if m.CloudFormation == nil { - cftSvc, diags := buildAWSSession(m.awsRegionStr) - if diags.HasError() { +func (m *CbsService) awsClientService() (cloud.AWSClientAPI, diag.Diagnostics) { + if m.AWSClient == nil { + diags := buildAWSClientPreCheck(m.awsRegionStr) + if diags != nil { return nil, diags } - m.CloudFormation = cftSvc + awsClient, err := cloud.NewAWSClient(m.awsRegionStr) + if err != nil { + return nil, diag.FromErr(err) + } + m.AWSClient = awsClient } - return m.CloudFormation, nil + return m.AWSClient, nil } -func (m *CbsService) AzureClientService() (AzureClientAPI, diag.Diagnostics) { +func (m *CbsService) azureClientService() (cloud.AzureClientAPI, diag.Diagnostics) { if m.AzureClient == nil { - azureClient, diags := buildAzureClient(m.azureConfig) - if diags.HasError() { - return nil, diags + azureClient, err := cloud.NewAzureClient(m.azureConfig) + if err != nil { + return nil, diag.FromErr(err) } m.AzureClient = azureClient } @@ -71,7 +60,7 @@ func (m *CbsService) AzureClientService() (AzureClientAPI, diag.Diagnostics) { return m.AzureClient, nil } -func buildAWSSessionPreCheck(region string) diag.Diagnostics { +func buildAWSClientPreCheck(region string) diag.Diagnostics { var diags diag.Diagnostics if region == "" { diags = append(diags, diag.Diagnostic{ @@ -83,16 +72,3 @@ func buildAWSSessionPreCheck(region string) diag.Diagnostics { } return nil } - -type AzureClientAPI interface { - SubscriptionID() string - groupsListComplete(ctx context.Context, filter string) (*[]graphrbac.ADGroup, error) - appsCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters managedapplications.Application) error - appsGet(ctx context.Context, resourceGroupName string, applicationName string) (managedapplications.Application, error) - appsDelete(ctx context.Context, resourceGroupName string, applicationName string) error -} - -type AzureClient struct { - ApplicationsClient *managedapplications.ApplicationsClient - GroupsClient *graphrbac.GroupsClient -} diff --git a/cbs/cloud_services.go b/cbs/cloud_services.go deleted file mode 100644 index 4287ba0..0000000 --- a/cbs/cloud_services.go +++ /dev/null @@ -1,159 +0,0 @@ -// +build !mock - -/* - - Copyright 2021, Pure Storage Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - This file contains wrappers for "real" cloud service calls, as opposed to alternative - implementations that are mocked. Some of these wrappers also do a small amount of - "flattening" in order to simplify some of the cloud APIs. Simplifications includes - reducing the number of objects, and putting multiple calls together. This helps serve - as a single file for tracking all cloud accesses, and it also makes it clearer what - interfaces need to be mocked. - -*/ - -package cbs - -import ( - "context" - "fmt" - - "github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/managedapplications" - "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" - "github.com/Azure/go-autorest/autorest" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/hashicorp/go-azure-helpers/authentication" - "github.com/hashicorp/go-azure-helpers/sender" - "github.com/hashicorp/terraform-plugin-sdk/v2/diag" -) - -// Aws things: - -func buildAWSSession(region string) (*cloudformation.CloudFormation, diag.Diagnostics) { - var diags = buildAWSSessionPreCheck(region) - if diags != nil { - return nil, diags - } - sess, err := session.NewSession(&aws.Config{ - Region: aws.String(region)}, - ) - if err != nil { - return nil, diag.FromErr(err) - } - - cftSvc := cloudformation.New(sess) - return cftSvc, nil -} - -// Azure things: - -func buildAzureClient(userConfig azureUserConfig) (AzureClientAPI, diag.Diagnostics) { - - builder := &authentication.Builder{ - SubscriptionID: userConfig.SubscriptionID, - ClientID: userConfig.ClientID, - ClientSecret: userConfig.ClientSecret, - TenantID: userConfig.TenantID, - Environment: azureEnvironment, - SupportsClientSecretAuth: true, - SupportsAzureCliToken: true, - } - - var azureClient AzureClient - config, err := builder.Build() - if err != nil { - return nil, diag.FromErr(err) - } - - env, err := authentication.DetermineEnvironment(config.Environment) - if err != nil { - return nil, diag.FromErr(err) - } - - // This indicates that a 429 response should not be included as a retry attempt - // so that we continue to retry until it succeeds. Set this behavior to keep - // consistent with azurerm provider. - autorest.Count429AsRetry = false - - oauthConfig, err := config.BuildOAuthConfig(env.ActiveDirectoryEndpoint) - if err != nil { - return nil, diag.FromErr(err) - } - sender := sender.BuildSender("cbs") - auth, err := config.GetAuthorizationToken(sender, oauthConfig, env.TokenAudience) - if err != nil { - return nil, diag.FromErr(err) - } - graphAuth, err := config.GetAuthorizationToken(sender, oauthConfig, env.GraphEndpoint) - if err != nil { - return nil, diag.FromErr(err) - } - - // Create applications client - applicationsClient := managedapplications.NewApplicationsClient(config.SubscriptionID) - applicationsClient.SubscriptionID = config.SubscriptionID - applicationsClient.Client.Authorizer = auth - // Create groups client - groupClient := graphrbac.NewGroupsClient(config.TenantID) - groupClient.Client.Authorizer = graphAuth - - azureClient.ApplicationsClient = &applicationsClient - azureClient.GroupsClient = &groupClient - return &azureClient, nil -} - -func (client *AzureClient) SubscriptionID() string { - return client.ApplicationsClient.SubscriptionID -} - -func (client *AzureClient) groupsListComplete(ctx context.Context, filter string) (*[]graphrbac.ADGroup, error) { - resp, err := client.GroupsClient.ListComplete(ctx, filter) - if err != nil { - return nil, err - } - return resp.Response().Value, nil -} - -func (azureClient *AzureClient) appsCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters managedapplications.Application) error { - future, err := azureClient.ApplicationsClient.CreateOrUpdate(ctx, resourceGroupName, applicationName, parameters) - if err != nil { - return fmt.Errorf("failed to create Managed Application %q (Resource Group %q): %+v", applicationName, resourceGroupName, err) - } - err = future.WaitForCompletionRef(ctx, azureClient.ApplicationsClient.Client) - if err != nil { - return fmt.Errorf("failed to wait for creation of Managed Application %q (Resource Group %q): %+v", applicationName, resourceGroupName, err) - } - return nil -} - -func (azureClient *AzureClient) appsGet(ctx context.Context, resourceGroupName string, applicationName string) (managedapplications.Application, error) { - return azureClient.ApplicationsClient.Get(ctx, resourceGroupName, applicationName) -} - -func (azureClient *AzureClient) appsDelete(ctx context.Context, resourceGroupName string, applicationName string) error { - future, err := azureClient.ApplicationsClient.Delete(ctx, resourceGroupName, applicationName) - if err != nil { - return fmt.Errorf("failed to delete Managed Application %q (Resource Group %q): %+v", applicationName, resourceGroupName, err) - } - err = future.WaitForCompletionRef(ctx, azureClient.ApplicationsClient.Client) - if err != nil { - return fmt.Errorf("failed to wait for deleting Managed Application (Managed Application Name %q / Resource Group %q): %+v", applicationName, resourceGroupName, err) - } - return nil -} diff --git a/cbs/common.go b/cbs/common.go index 3671e96..ce4436c 100644 --- a/cbs/common.go +++ b/cbs/common.go @@ -19,10 +19,13 @@ package cbs import ( + "io/ioutil" "regexp" "strings" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/iancoleman/strcase" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/auth" ) func toSnake(s string) string { @@ -57,3 +60,19 @@ func convertToStringSlice(vals []interface{}) []string { } return strs } + +func getSSHPrivateKeyBytes(data *schema.ResourceData) ([]byte, error) { + if v, ok := data.GetOk("pureuser_private_key"); ok { + return []byte(v.(string)), nil + } + return ioutil.ReadFile(data.Get("pureuser_private_key_path").(string)) +} + +func generateSecretPayload(data *schema.ResourceData) ([]byte, error) { + keyContent, err := getSSHPrivateKeyBytes(data) + if err != nil { + return nil, err + } + bootstrap := auth.NewBootstrapService() + return bootstrap.GenerateSecretPayload(data.Get("management_endpoint").(string), keyContent) +} diff --git a/cbs/internal/array/api.go b/cbs/internal/array/api.go new file mode 100644 index 0000000..02c07c3 --- /dev/null +++ b/cbs/internal/array/api.go @@ -0,0 +1,28 @@ +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +package array + +// mockable wrapper around the full REST API that is exposed to the terraform resources +type FAClientAPI interface { + Deactivate() error +} + +func NewFAClient(host string, secretPayload string) (FAClientAPI, error) { + return buildFAClient(host, secretPayload) +} diff --git a/cbs/internal/array/fa.go b/cbs/internal/array/fa.go new file mode 100644 index 0000000..69daae3 --- /dev/null +++ b/cbs/internal/array/fa.go @@ -0,0 +1,79 @@ +// +build !mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +package array + +import ( + "context" + "encoding/json" + "fmt" + "time" + + bootstrapauth "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/auth" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/arrays" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/auth" +) + +const defaultTimeout = 30 * time.Second + +type faClient struct { + *client.Flasharray + host string +} + +func buildFAClient(host string, secretPayload string) (FAClientAPI, error) { + credentials := bootstrapauth.SecretPayload{} + if err := json.Unmarshal([]byte(secretPayload), &credentials); err != nil { + return nil, err + } + tokenConfig := auth.TokenConfig{ + Issuer: credentials.Issuer, + ClientID: credentials.ClientID, + KeyID: credentials.KeyID, + User: credentials.UserName, + PrivateKey: credentials.RestPrivateKey, + } + + lowerClient, err := faclient.New(host, tokenConfig) + if err != nil { + return nil, err + } + return &faClient{lowerClient, host}, nil +} + +func (c *faClient) Deactivate() error { + tempCtx, cancel := context.WithTimeout(context.TODO(), defaultTimeout) + defer cancel() + postFactoryResetTokenParams := arrays.NewPostAPI24ArraysFactoryResetTokenParamsWithContext(tempCtx) + resp, err := c.Arrays.PostAPI24ArraysFactoryResetToken(postFactoryResetTokenParams) + if err != nil { + return fmt.Errorf("failed to create factory reset token on management endpoint %q : %+v", c.host, err) + } + + token := resp.GetPayload().Items[0].ArrayFactoryResetTokenOAIGenAllOf1.Token + eradicate := true + deleteArrayParams := arrays.NewDeleteAPI24ArraysParamsWithContext(tempCtx).WithEradicateAllData(&eradicate).WithFactoryResetToken(&token) + if _, err = c.Arrays.DeleteAPI24Arrays(deleteArrayParams); err != nil { + return fmt.Errorf("failed to deactivate management endpoint %q : %+v", c.host, err) + } + return nil +} diff --git a/cbs/internal/faclient/2.4/client/active_directory/active_directory_client.go b/cbs/internal/array/faclient/2.4/client/active_directory/active_directory_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/active_directory/active_directory_client.go rename to cbs/internal/array/faclient/2.4/client/active_directory/active_directory_client.go diff --git a/cbs/internal/faclient/2.4/client/active_directory/delete_api_24_active_directory_parameters.go b/cbs/internal/array/faclient/2.4/client/active_directory/delete_api_24_active_directory_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/active_directory/delete_api_24_active_directory_parameters.go rename to cbs/internal/array/faclient/2.4/client/active_directory/delete_api_24_active_directory_parameters.go diff --git a/cbs/internal/faclient/2.4/client/active_directory/delete_api_24_active_directory_responses.go b/cbs/internal/array/faclient/2.4/client/active_directory/delete_api_24_active_directory_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/active_directory/delete_api_24_active_directory_responses.go rename to cbs/internal/array/faclient/2.4/client/active_directory/delete_api_24_active_directory_responses.go index c718dea..d031505 100644 --- a/cbs/internal/faclient/2.4/client/active_directory/delete_api_24_active_directory_responses.go +++ b/cbs/internal/array/faclient/2.4/client/active_directory/delete_api_24_active_directory_responses.go @@ -7,9 +7,12 @@ package active_directory import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ActiveDirectoryReader is a Reader for the DeleteAPI24ActiveDirectory structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ActiveDirectoryReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewDeleteApi24ActiveDirectoryBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ActiveDirectoryOK) readResponse(response runtime.ClientRespo return nil } + +// NewDeleteApi24ActiveDirectoryBadRequest creates a DeleteApi24ActiveDirectoryBadRequest with default headers values +func NewDeleteApi24ActiveDirectoryBadRequest() *DeleteApi24ActiveDirectoryBadRequest { + return &DeleteApi24ActiveDirectoryBadRequest{} +} + +/*DeleteApi24ActiveDirectoryBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ActiveDirectoryBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ActiveDirectoryBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/active-directory][%d] deleteApi24ActiveDirectoryBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ActiveDirectoryBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ActiveDirectoryBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/active_directory/get_api_24_active_directory_parameters.go b/cbs/internal/array/faclient/2.4/client/active_directory/get_api_24_active_directory_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/active_directory/get_api_24_active_directory_parameters.go rename to cbs/internal/array/faclient/2.4/client/active_directory/get_api_24_active_directory_parameters.go diff --git a/cbs/internal/faclient/2.4/client/active_directory/get_api_24_active_directory_responses.go b/cbs/internal/array/faclient/2.4/client/active_directory/get_api_24_active_directory_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/active_directory/get_api_24_active_directory_responses.go rename to cbs/internal/array/faclient/2.4/client/active_directory/get_api_24_active_directory_responses.go index 84f8d9c..f1192f3 100644 --- a/cbs/internal/faclient/2.4/client/active_directory/get_api_24_active_directory_responses.go +++ b/cbs/internal/array/faclient/2.4/client/active_directory/get_api_24_active_directory_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ActiveDirectoryReader is a Reader for the GetAPI24ActiveDirectory structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ActiveDirectoryReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24ActiveDirectoryBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ActiveDirectoryOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24ActiveDirectoryBadRequest creates a GetApi24ActiveDirectoryBadRequest with default headers values +func NewGetApi24ActiveDirectoryBadRequest() *GetApi24ActiveDirectoryBadRequest { + return &GetApi24ActiveDirectoryBadRequest{} +} + +/*GetApi24ActiveDirectoryBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ActiveDirectoryBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ActiveDirectoryBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/active-directory][%d] getApi24ActiveDirectoryBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ActiveDirectoryBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ActiveDirectoryBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/active_directory/post_api_24_active_directory_parameters.go b/cbs/internal/array/faclient/2.4/client/active_directory/post_api_24_active_directory_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/active_directory/post_api_24_active_directory_parameters.go rename to cbs/internal/array/faclient/2.4/client/active_directory/post_api_24_active_directory_parameters.go index 7633d2e..e020471 100644 --- a/cbs/internal/faclient/2.4/client/active_directory/post_api_24_active_directory_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/active_directory/post_api_24_active_directory_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24ActiveDirectoryParams creates a new PostAPI24ActiveDirectoryParams object diff --git a/cbs/internal/faclient/2.4/client/active_directory/post_api_24_active_directory_responses.go b/cbs/internal/array/faclient/2.4/client/active_directory/post_api_24_active_directory_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/active_directory/post_api_24_active_directory_responses.go rename to cbs/internal/array/faclient/2.4/client/active_directory/post_api_24_active_directory_responses.go index 925d1f0..9bab0b7 100644 --- a/cbs/internal/faclient/2.4/client/active_directory/post_api_24_active_directory_responses.go +++ b/cbs/internal/array/faclient/2.4/client/active_directory/post_api_24_active_directory_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ActiveDirectoryReader is a Reader for the PostAPI24ActiveDirectory structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ActiveDirectoryReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewPostApi24ActiveDirectoryBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ActiveDirectoryOK) readResponse(response runtime.ClientRespons return nil } + +// NewPostApi24ActiveDirectoryBadRequest creates a PostApi24ActiveDirectoryBadRequest with default headers values +func NewPostApi24ActiveDirectoryBadRequest() *PostApi24ActiveDirectoryBadRequest { + return &PostApi24ActiveDirectoryBadRequest{} +} + +/*PostApi24ActiveDirectoryBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ActiveDirectoryBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ActiveDirectoryBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/active-directory][%d] postApi24ActiveDirectoryBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ActiveDirectoryBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ActiveDirectoryBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/administrators_client.go b/cbs/internal/array/faclient/2.4/client/administrators/administrators_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/administrators_client.go rename to cbs/internal/array/faclient/2.4/client/administrators/administrators_client.go diff --git a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_responses.go index d20e832..6ab7a2e 100644 --- a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_api_tokens_responses.go @@ -7,9 +7,12 @@ package administrators import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24AdminsAPITokensReader is a Reader for the DeleteAPI24AdminsAPITokens structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24AdminsAPITokensReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewDeleteApi24AdminsAPITokensBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24AdminsAPITokensOK) readResponse(response runtime.ClientRespo return nil } + +// NewDeleteApi24AdminsAPITokensBadRequest creates a DeleteApi24AdminsAPITokensBadRequest with default headers values +func NewDeleteApi24AdminsAPITokensBadRequest() *DeleteApi24AdminsAPITokensBadRequest { + return &DeleteApi24AdminsAPITokensBadRequest{} +} + +/*DeleteApi24AdminsAPITokensBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24AdminsAPITokensBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24AdminsAPITokensBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/admins/api-tokens][%d] deleteApi24AdminsApiTokensBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24AdminsAPITokensBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24AdminsAPITokensBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_cache_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_cache_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_cache_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_cache_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_cache_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_cache_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_cache_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_cache_responses.go index 3de4419..2292c1a 100644 --- a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_cache_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_cache_responses.go @@ -7,9 +7,12 @@ package administrators import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24AdminsCacheReader is a Reader for the DeleteAPI24AdminsCache structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24AdminsCacheReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewDeleteApi24AdminsCacheBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24AdminsCacheOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24AdminsCacheBadRequest creates a DeleteApi24AdminsCacheBadRequest with default headers values +func NewDeleteApi24AdminsCacheBadRequest() *DeleteApi24AdminsCacheBadRequest { + return &DeleteApi24AdminsCacheBadRequest{} +} + +/*DeleteApi24AdminsCacheBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24AdminsCacheBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24AdminsCacheBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/admins/cache][%d] deleteApi24AdminsCacheBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24AdminsCacheBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24AdminsCacheBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_responses.go index 498ef43..9bb7b0e 100644 --- a/cbs/internal/faclient/2.4/client/administrators/delete_api_24_admins_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/delete_api_24_admins_responses.go @@ -7,9 +7,12 @@ package administrators import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24AdminsReader is a Reader for the DeleteAPI24Admins structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24AdminsReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewDeleteApi24AdminsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24AdminsOK) readResponse(response runtime.ClientResponse, cons return nil } + +// NewDeleteApi24AdminsBadRequest creates a DeleteApi24AdminsBadRequest with default headers values +func NewDeleteApi24AdminsBadRequest() *DeleteApi24AdminsBadRequest { + return &DeleteApi24AdminsBadRequest{} +} + +/*DeleteApi24AdminsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24AdminsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24AdminsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/admins][%d] deleteApi24AdminsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24AdminsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24AdminsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_responses.go index bb77fa1..d5b82de 100644 --- a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_api_tokens_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AdminsAPITokensReader is a Reader for the GetAPI24AdminsAPITokens structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AdminsAPITokensReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24AdminsAPITokensBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AdminsAPITokensOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24AdminsAPITokensBadRequest creates a GetApi24AdminsAPITokensBadRequest with default headers values +func NewGetApi24AdminsAPITokensBadRequest() *GetApi24AdminsAPITokensBadRequest { + return &GetApi24AdminsAPITokensBadRequest{} +} + +/*GetApi24AdminsAPITokensBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AdminsAPITokensBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AdminsAPITokensBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/admins/api-tokens][%d] getApi24AdminsApiTokensBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AdminsAPITokensBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AdminsAPITokensBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_cache_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_cache_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_cache_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_cache_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_cache_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_cache_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_cache_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_cache_responses.go index 6cb743e..343f636 100644 --- a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_cache_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_cache_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AdminsCacheReader is a Reader for the GetAPI24AdminsCache structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AdminsCacheReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24AdminsCacheBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AdminsCacheOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24AdminsCacheBadRequest creates a GetApi24AdminsCacheBadRequest with default headers values +func NewGetApi24AdminsCacheBadRequest() *GetApi24AdminsCacheBadRequest { + return &GetApi24AdminsCacheBadRequest{} +} + +/*GetApi24AdminsCacheBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AdminsCacheBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AdminsCacheBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/admins/cache][%d] getApi24AdminsCacheBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AdminsCacheBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AdminsCacheBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_responses.go index 03166f1..dc14783 100644 --- a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AdminsReader is a Reader for the GetAPI24Admins structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AdminsReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewGetApi24AdminsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AdminsOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewGetApi24AdminsBadRequest creates a GetApi24AdminsBadRequest with default headers values +func NewGetApi24AdminsBadRequest() *GetApi24AdminsBadRequest { + return &GetApi24AdminsBadRequest{} +} + +/*GetApi24AdminsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AdminsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AdminsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/admins][%d] getApi24AdminsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AdminsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AdminsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_settings_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_settings_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_settings_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_settings_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_settings_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_settings_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_settings_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_settings_responses.go index f028fba..df19b25 100644 --- a/cbs/internal/faclient/2.4/client/administrators/get_api_24_admins_settings_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/get_api_24_admins_settings_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AdminsSettingsReader is a Reader for the GetAPI24AdminsSettings structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AdminsSettingsReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewGetApi24AdminsSettingsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AdminsSettingsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewGetApi24AdminsSettingsBadRequest creates a GetApi24AdminsSettingsBadRequest with default headers values +func NewGetApi24AdminsSettingsBadRequest() *GetApi24AdminsSettingsBadRequest { + return &GetApi24AdminsSettingsBadRequest{} +} + +/*GetApi24AdminsSettingsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AdminsSettingsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AdminsSettingsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/admins/settings][%d] getApi24AdminsSettingsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AdminsSettingsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AdminsSettingsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_parameters.go index 795ac88..8912520 100644 --- a/cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24AdminsParams creates a new PatchAPI24AdminsParams object diff --git a/cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_responses.go index eef4693..3a83016 100644 --- a/cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24AdminsReader is a Reader for the PatchAPI24Admins structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24AdminsReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewPatchApi24AdminsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24AdminsOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewPatchApi24AdminsBadRequest creates a PatchApi24AdminsBadRequest with default headers values +func NewPatchApi24AdminsBadRequest() *PatchApi24AdminsBadRequest { + return &PatchApi24AdminsBadRequest{} +} + +/*PatchApi24AdminsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24AdminsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24AdminsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/admins][%d] patchApi24AdminsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24AdminsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24AdminsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_settings_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_settings_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_settings_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_settings_parameters.go index 75a9f20..0abf45e 100644 --- a/cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_settings_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_settings_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24AdminsSettingsParams creates a new PatchAPI24AdminsSettingsParams object diff --git a/cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_settings_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_settings_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_settings_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_settings_responses.go index b51ff99..7467332 100644 --- a/cbs/internal/faclient/2.4/client/administrators/patch_api_24_admins_settings_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/patch_api_24_admins_settings_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24AdminsSettingsReader is a Reader for the PatchAPI24AdminsSettings structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24AdminsSettingsReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewPatchApi24AdminsSettingsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24AdminsSettingsOK) readResponse(response runtime.ClientRespons return nil } + +// NewPatchApi24AdminsSettingsBadRequest creates a PatchApi24AdminsSettingsBadRequest with default headers values +func NewPatchApi24AdminsSettingsBadRequest() *PatchApi24AdminsSettingsBadRequest { + return &PatchApi24AdminsSettingsBadRequest{} +} + +/*PatchApi24AdminsSettingsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24AdminsSettingsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24AdminsSettingsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/admins/settings][%d] patchApi24AdminsSettingsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24AdminsSettingsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24AdminsSettingsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_responses.go index f93e439..af1ea5f 100644 --- a/cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_api_tokens_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24AdminsAPITokensReader is a Reader for the PostAPI24AdminsAPITokens structure. @@ -29,6 +29,12 @@ func (o *PostAPI24AdminsAPITokensReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewPostApi24AdminsAPITokensBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24AdminsAPITokensOK) readResponse(response runtime.ClientRespons return nil } + +// NewPostApi24AdminsAPITokensBadRequest creates a PostApi24AdminsAPITokensBadRequest with default headers values +func NewPostApi24AdminsAPITokensBadRequest() *PostApi24AdminsAPITokensBadRequest { + return &PostApi24AdminsAPITokensBadRequest{} +} + +/*PostApi24AdminsAPITokensBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24AdminsAPITokensBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24AdminsAPITokensBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/admins/api-tokens][%d] postApi24AdminsApiTokensBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24AdminsAPITokensBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24AdminsAPITokensBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_parameters.go index 8e0c42a..79b4c74 100644 --- a/cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24AdminsParams creates a new PostAPI24AdminsParams object diff --git a/cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_responses.go index 78316a0..6e35b9c 100644 --- a/cbs/internal/faclient/2.4/client/administrators/post_api_24_admins_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/post_api_24_admins_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24AdminsReader is a Reader for the PostAPI24Admins structure. @@ -29,6 +29,12 @@ func (o *PostAPI24AdminsReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return result, nil + case 400: + result := NewPostApi24AdminsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24AdminsOK) readResponse(response runtime.ClientResponse, consum return nil } + +// NewPostApi24AdminsBadRequest creates a PostApi24AdminsBadRequest with default headers values +func NewPostApi24AdminsBadRequest() *PostApi24AdminsBadRequest { + return &PostApi24AdminsBadRequest{} +} + +/*PostApi24AdminsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24AdminsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24AdminsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/admins][%d] postApi24AdminsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24AdminsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24AdminsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/administrators/put_api_24_admins_cache_parameters.go b/cbs/internal/array/faclient/2.4/client/administrators/put_api_24_admins_cache_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/administrators/put_api_24_admins_cache_parameters.go rename to cbs/internal/array/faclient/2.4/client/administrators/put_api_24_admins_cache_parameters.go diff --git a/cbs/internal/faclient/2.4/client/administrators/put_api_24_admins_cache_responses.go b/cbs/internal/array/faclient/2.4/client/administrators/put_api_24_admins_cache_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/administrators/put_api_24_admins_cache_responses.go rename to cbs/internal/array/faclient/2.4/client/administrators/put_api_24_admins_cache_responses.go index e32d6d8..31f00c4 100644 --- a/cbs/internal/faclient/2.4/client/administrators/put_api_24_admins_cache_responses.go +++ b/cbs/internal/array/faclient/2.4/client/administrators/put_api_24_admins_cache_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PutAPI24AdminsCacheReader is a Reader for the PutAPI24AdminsCache structure. @@ -29,6 +29,12 @@ func (o *PutAPI24AdminsCacheReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewPutApi24AdminsCacheBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PutApi24AdminsCacheOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewPutApi24AdminsCacheBadRequest creates a PutApi24AdminsCacheBadRequest with default headers values +func NewPutApi24AdminsCacheBadRequest() *PutApi24AdminsCacheBadRequest { + return &PutApi24AdminsCacheBadRequest{} +} + +/*PutApi24AdminsCacheBadRequest handles this case with default header values. + +BadRequest +*/ +type PutApi24AdminsCacheBadRequest struct { + Payload *models.Error +} + +func (o *PutApi24AdminsCacheBadRequest) Error() string { + return fmt.Sprintf("[PUT /api/2.4/admins/cache][%d] putApi24AdminsCacheBadRequest %+v", 400, o.Payload) +} + +func (o *PutApi24AdminsCacheBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PutApi24AdminsCacheBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/alert_watchers_client.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/alert_watchers_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/alert_watchers/alert_watchers_client.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/alert_watchers_client.go diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_parameters.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_parameters.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_parameters.go diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_responses.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_responses.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_responses.go index e8e942f..cd8969a 100644 --- a/cbs/internal/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/alert_watchers/delete_api_24_alert_watchers_responses.go @@ -7,9 +7,12 @@ package alert_watchers import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24AlertWatchersReader is a Reader for the DeleteAPI24AlertWatchers structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24AlertWatchersReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewDeleteApi24AlertWatchersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24AlertWatchersOK) readResponse(response runtime.ClientRespons return nil } + +// NewDeleteApi24AlertWatchersBadRequest creates a DeleteApi24AlertWatchersBadRequest with default headers values +func NewDeleteApi24AlertWatchersBadRequest() *DeleteApi24AlertWatchersBadRequest { + return &DeleteApi24AlertWatchersBadRequest{} +} + +/*DeleteApi24AlertWatchersBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24AlertWatchersBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24AlertWatchersBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/alert-watchers][%d] deleteApi24AlertWatchersBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24AlertWatchersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24AlertWatchersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_parameters.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_parameters.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_parameters.go diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_responses.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_responses.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_responses.go index c3004e7..8b8f4f7 100644 --- a/cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AlertWatchersReader is a Reader for the GetAPI24AlertWatchers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AlertWatchersReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewGetApi24AlertWatchersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AlertWatchersOK) readResponse(response runtime.ClientResponse, return nil } + +// NewGetApi24AlertWatchersBadRequest creates a GetApi24AlertWatchersBadRequest with default headers values +func NewGetApi24AlertWatchersBadRequest() *GetApi24AlertWatchersBadRequest { + return &GetApi24AlertWatchersBadRequest{} +} + +/*GetApi24AlertWatchersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AlertWatchersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AlertWatchersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/alert-watchers][%d] getApi24AlertWatchersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AlertWatchersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AlertWatchersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_responses.go index da40d78..d80ee88 100644 --- a/cbs/internal/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/alert_watchers/get_api_24_alert_watchers_test_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AlertWatchersTestReader is a Reader for the GetAPI24AlertWatchersTest structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AlertWatchersTestReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewGetApi24AlertWatchersTestBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AlertWatchersTestOK) readResponse(response runtime.ClientRespon return nil } + +// NewGetApi24AlertWatchersTestBadRequest creates a GetApi24AlertWatchersTestBadRequest with default headers values +func NewGetApi24AlertWatchersTestBadRequest() *GetApi24AlertWatchersTestBadRequest { + return &GetApi24AlertWatchersTestBadRequest{} +} + +/*GetApi24AlertWatchersTestBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AlertWatchersTestBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AlertWatchersTestBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/alert-watchers/test][%d] getApi24AlertWatchersTestBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AlertWatchersTestBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AlertWatchersTestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_parameters.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_parameters.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_parameters.go index b97c5a0..fa6c2e4 100644 --- a/cbs/internal/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24AlertWatchersParams creates a new PatchAPI24AlertWatchersParams object diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_responses.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_responses.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_responses.go index b20627a..122e837 100644 --- a/cbs/internal/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/alert_watchers/patch_api_24_alert_watchers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24AlertWatchersReader is a Reader for the PatchAPI24AlertWatchers structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24AlertWatchersReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewPatchApi24AlertWatchersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24AlertWatchersOK) readResponse(response runtime.ClientResponse return nil } + +// NewPatchApi24AlertWatchersBadRequest creates a PatchApi24AlertWatchersBadRequest with default headers values +func NewPatchApi24AlertWatchersBadRequest() *PatchApi24AlertWatchersBadRequest { + return &PatchApi24AlertWatchersBadRequest{} +} + +/*PatchApi24AlertWatchersBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24AlertWatchersBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24AlertWatchersBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/alert-watchers][%d] patchApi24AlertWatchersBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24AlertWatchersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24AlertWatchersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_parameters.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_parameters.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_parameters.go index ac3c11c..6f035c9 100644 --- a/cbs/internal/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24AlertWatchersParams creates a new PostAPI24AlertWatchersParams object diff --git a/cbs/internal/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_responses.go b/cbs/internal/array/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_responses.go rename to cbs/internal/array/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_responses.go index af0c757..bb6253c 100644 --- a/cbs/internal/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/alert_watchers/post_api_24_alert_watchers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24AlertWatchersReader is a Reader for the PostAPI24AlertWatchers structure. @@ -29,6 +29,12 @@ func (o *PostAPI24AlertWatchersReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewPostApi24AlertWatchersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24AlertWatchersOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPostApi24AlertWatchersBadRequest creates a PostApi24AlertWatchersBadRequest with default headers values +func NewPostApi24AlertWatchersBadRequest() *PostApi24AlertWatchersBadRequest { + return &PostApi24AlertWatchersBadRequest{} +} + +/*PostApi24AlertWatchersBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24AlertWatchersBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24AlertWatchersBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/alert-watchers][%d] postApi24AlertWatchersBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24AlertWatchersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24AlertWatchersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/alerts/alerts_client.go b/cbs/internal/array/faclient/2.4/client/alerts/alerts_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/alerts/alerts_client.go rename to cbs/internal/array/faclient/2.4/client/alerts/alerts_client.go diff --git a/cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_events_parameters.go b/cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_events_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_events_parameters.go rename to cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_events_parameters.go diff --git a/cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_events_responses.go b/cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_events_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_events_responses.go rename to cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_events_responses.go index 6a9eedb..fc58d61 100644 --- a/cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_events_responses.go +++ b/cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_events_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AlertsEventsReader is a Reader for the GetAPI24AlertsEvents structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AlertsEventsReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewGetApi24AlertsEventsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AlertsEventsOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewGetApi24AlertsEventsBadRequest creates a GetApi24AlertsEventsBadRequest with default headers values +func NewGetApi24AlertsEventsBadRequest() *GetApi24AlertsEventsBadRequest { + return &GetApi24AlertsEventsBadRequest{} +} + +/*GetApi24AlertsEventsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AlertsEventsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AlertsEventsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/alerts/events][%d] getApi24AlertsEventsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AlertsEventsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AlertsEventsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_parameters.go b/cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_parameters.go rename to cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_responses.go b/cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_responses.go rename to cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_responses.go index ecf41cc..f5bc5fe 100644 --- a/cbs/internal/faclient/2.4/client/alerts/get_api_24_alerts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/alerts/get_api_24_alerts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AlertsReader is a Reader for the GetAPI24Alerts structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AlertsReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewGetApi24AlertsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AlertsOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewGetApi24AlertsBadRequest creates a GetApi24AlertsBadRequest with default headers values +func NewGetApi24AlertsBadRequest() *GetApi24AlertsBadRequest { + return &GetApi24AlertsBadRequest{} +} + +/*GetApi24AlertsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AlertsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AlertsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/alerts][%d] getApi24AlertsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AlertsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AlertsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/alerts/patch_api_24_alerts_parameters.go b/cbs/internal/array/faclient/2.4/client/alerts/patch_api_24_alerts_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/alerts/patch_api_24_alerts_parameters.go rename to cbs/internal/array/faclient/2.4/client/alerts/patch_api_24_alerts_parameters.go index 822f8b7..234f29e 100644 --- a/cbs/internal/faclient/2.4/client/alerts/patch_api_24_alerts_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/alerts/patch_api_24_alerts_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24AlertsParams creates a new PatchAPI24AlertsParams object diff --git a/cbs/internal/faclient/2.4/client/alerts/patch_api_24_alerts_responses.go b/cbs/internal/array/faclient/2.4/client/alerts/patch_api_24_alerts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/alerts/patch_api_24_alerts_responses.go rename to cbs/internal/array/faclient/2.4/client/alerts/patch_api_24_alerts_responses.go index 0cdecc8..92b866e 100644 --- a/cbs/internal/faclient/2.4/client/alerts/patch_api_24_alerts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/alerts/patch_api_24_alerts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24AlertsReader is a Reader for the PatchAPI24Alerts structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24AlertsReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewPatchApi24AlertsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24AlertsOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewPatchApi24AlertsBadRequest creates a PatchApi24AlertsBadRequest with default headers values +func NewPatchApi24AlertsBadRequest() *PatchApi24AlertsBadRequest { + return &PatchApi24AlertsBadRequest{} +} + +/*PatchApi24AlertsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24AlertsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24AlertsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/alerts][%d] patchApi24AlertsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24AlertsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24AlertsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/api_clients/api_clients_client.go b/cbs/internal/array/faclient/2.4/client/api_clients/api_clients_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/api_clients/api_clients_client.go rename to cbs/internal/array/faclient/2.4/client/api_clients/api_clients_client.go diff --git a/cbs/internal/faclient/2.4/client/api_clients/delete_api_24_api_clients_parameters.go b/cbs/internal/array/faclient/2.4/client/api_clients/delete_api_24_api_clients_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/api_clients/delete_api_24_api_clients_parameters.go rename to cbs/internal/array/faclient/2.4/client/api_clients/delete_api_24_api_clients_parameters.go diff --git a/cbs/internal/faclient/2.4/client/api_clients/delete_api_24_api_clients_responses.go b/cbs/internal/array/faclient/2.4/client/api_clients/delete_api_24_api_clients_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/api_clients/delete_api_24_api_clients_responses.go rename to cbs/internal/array/faclient/2.4/client/api_clients/delete_api_24_api_clients_responses.go index 3605fce..610b238 100644 --- a/cbs/internal/faclient/2.4/client/api_clients/delete_api_24_api_clients_responses.go +++ b/cbs/internal/array/faclient/2.4/client/api_clients/delete_api_24_api_clients_responses.go @@ -7,9 +7,12 @@ package api_clients import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24APIClientsReader is a Reader for the DeleteAPI24APIClients structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24APIClientsReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewDeleteApi24APIClientsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24APIClientsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24APIClientsBadRequest creates a DeleteApi24APIClientsBadRequest with default headers values +func NewDeleteApi24APIClientsBadRequest() *DeleteApi24APIClientsBadRequest { + return &DeleteApi24APIClientsBadRequest{} +} + +/*DeleteApi24APIClientsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24APIClientsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24APIClientsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/api-clients][%d] deleteApi24ApiClientsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24APIClientsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24APIClientsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/api_clients/get_api_24_api_clients_parameters.go b/cbs/internal/array/faclient/2.4/client/api_clients/get_api_24_api_clients_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/api_clients/get_api_24_api_clients_parameters.go rename to cbs/internal/array/faclient/2.4/client/api_clients/get_api_24_api_clients_parameters.go diff --git a/cbs/internal/faclient/2.4/client/api_clients/get_api_24_api_clients_responses.go b/cbs/internal/array/faclient/2.4/client/api_clients/get_api_24_api_clients_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/api_clients/get_api_24_api_clients_responses.go rename to cbs/internal/array/faclient/2.4/client/api_clients/get_api_24_api_clients_responses.go index 8e78a70..d71626e 100644 --- a/cbs/internal/faclient/2.4/client/api_clients/get_api_24_api_clients_responses.go +++ b/cbs/internal/array/faclient/2.4/client/api_clients/get_api_24_api_clients_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24APIClientsReader is a Reader for the GetAPI24APIClients structure. @@ -29,6 +29,12 @@ func (o *GetAPI24APIClientsReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24APIClientsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24APIClientsOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewGetApi24APIClientsBadRequest creates a GetApi24APIClientsBadRequest with default headers values +func NewGetApi24APIClientsBadRequest() *GetApi24APIClientsBadRequest { + return &GetApi24APIClientsBadRequest{} +} + +/*GetApi24APIClientsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24APIClientsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24APIClientsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/api-clients][%d] getApi24ApiClientsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24APIClientsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24APIClientsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/api_clients/patch_api_24_api_clients_parameters.go b/cbs/internal/array/faclient/2.4/client/api_clients/patch_api_24_api_clients_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/api_clients/patch_api_24_api_clients_parameters.go rename to cbs/internal/array/faclient/2.4/client/api_clients/patch_api_24_api_clients_parameters.go index 93190cb..827733e 100644 --- a/cbs/internal/faclient/2.4/client/api_clients/patch_api_24_api_clients_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/api_clients/patch_api_24_api_clients_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24APIClientsParams creates a new PatchAPI24APIClientsParams object diff --git a/cbs/internal/faclient/2.4/client/api_clients/patch_api_24_api_clients_responses.go b/cbs/internal/array/faclient/2.4/client/api_clients/patch_api_24_api_clients_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/api_clients/patch_api_24_api_clients_responses.go rename to cbs/internal/array/faclient/2.4/client/api_clients/patch_api_24_api_clients_responses.go index 585602d..8fa5b0d 100644 --- a/cbs/internal/faclient/2.4/client/api_clients/patch_api_24_api_clients_responses.go +++ b/cbs/internal/array/faclient/2.4/client/api_clients/patch_api_24_api_clients_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24APIClientsReader is a Reader for the PatchAPI24APIClients structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24APIClientsReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPatchApi24APIClientsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24APIClientsOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPatchApi24APIClientsBadRequest creates a PatchApi24APIClientsBadRequest with default headers values +func NewPatchApi24APIClientsBadRequest() *PatchApi24APIClientsBadRequest { + return &PatchApi24APIClientsBadRequest{} +} + +/*PatchApi24APIClientsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24APIClientsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24APIClientsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/api-clients][%d] patchApi24ApiClientsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24APIClientsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24APIClientsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/api_clients/post_api_24_api_clients_parameters.go b/cbs/internal/array/faclient/2.4/client/api_clients/post_api_24_api_clients_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/api_clients/post_api_24_api_clients_parameters.go rename to cbs/internal/array/faclient/2.4/client/api_clients/post_api_24_api_clients_parameters.go index a36dfab..30b3a2b 100644 --- a/cbs/internal/faclient/2.4/client/api_clients/post_api_24_api_clients_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/api_clients/post_api_24_api_clients_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24APIClientsParams creates a new PostAPI24APIClientsParams object diff --git a/cbs/internal/faclient/2.4/client/api_clients/post_api_24_api_clients_responses.go b/cbs/internal/array/faclient/2.4/client/api_clients/post_api_24_api_clients_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/api_clients/post_api_24_api_clients_responses.go rename to cbs/internal/array/faclient/2.4/client/api_clients/post_api_24_api_clients_responses.go index 3112d7e..dbf72fe 100644 --- a/cbs/internal/faclient/2.4/client/api_clients/post_api_24_api_clients_responses.go +++ b/cbs/internal/array/faclient/2.4/client/api_clients/post_api_24_api_clients_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24APIClientsReader is a Reader for the PostAPI24APIClients structure. @@ -29,6 +29,12 @@ func (o *PostAPI24APIClientsReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewPostApi24APIClientsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24APIClientsOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewPostApi24APIClientsBadRequest creates a PostApi24APIClientsBadRequest with default headers values +func NewPostApi24APIClientsBadRequest() *PostApi24APIClientsBadRequest { + return &PostApi24APIClientsBadRequest{} +} + +/*PostApi24APIClientsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24APIClientsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24APIClientsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/api-clients][%d] postApi24ApiClientsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24APIClientsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24APIClientsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/apps/apps_client.go b/cbs/internal/array/faclient/2.4/client/apps/apps_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/apps/apps_client.go rename to cbs/internal/array/faclient/2.4/client/apps/apps_client.go diff --git a/cbs/internal/faclient/2.4/client/apps/get_api_24_apps_nodes_parameters.go b/cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_nodes_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/apps/get_api_24_apps_nodes_parameters.go rename to cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_nodes_parameters.go diff --git a/cbs/internal/faclient/2.4/client/apps/get_api_24_apps_nodes_responses.go b/cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_nodes_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/apps/get_api_24_apps_nodes_responses.go rename to cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_nodes_responses.go index 5d4a72e..a933857 100644 --- a/cbs/internal/faclient/2.4/client/apps/get_api_24_apps_nodes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_nodes_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AppsNodesReader is a Reader for the GetAPI24AppsNodes structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AppsNodesReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24AppsNodesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AppsNodesOK) readResponse(response runtime.ClientResponse, cons return nil } + +// NewGetApi24AppsNodesBadRequest creates a GetApi24AppsNodesBadRequest with default headers values +func NewGetApi24AppsNodesBadRequest() *GetApi24AppsNodesBadRequest { + return &GetApi24AppsNodesBadRequest{} +} + +/*GetApi24AppsNodesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AppsNodesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AppsNodesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/apps/nodes][%d] getApi24AppsNodesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AppsNodesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AppsNodesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/apps/get_api_24_apps_parameters.go b/cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/apps/get_api_24_apps_parameters.go rename to cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_parameters.go diff --git a/cbs/internal/faclient/2.4/client/apps/get_api_24_apps_responses.go b/cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/apps/get_api_24_apps_responses.go rename to cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_responses.go index 25590c5..d5926b0 100644 --- a/cbs/internal/faclient/2.4/client/apps/get_api_24_apps_responses.go +++ b/cbs/internal/array/faclient/2.4/client/apps/get_api_24_apps_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AppsReader is a Reader for the GetAPI24Apps structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AppsReader) ReadResponse(response runtime.ClientResponse, consu return nil, err } return result, nil + case 400: + result := NewGetApi24AppsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AppsOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewGetApi24AppsBadRequest creates a GetApi24AppsBadRequest with default headers values +func NewGetApi24AppsBadRequest() *GetApi24AppsBadRequest { + return &GetApi24AppsBadRequest{} +} + +/*GetApi24AppsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AppsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AppsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/apps][%d] getApi24AppsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AppsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AppsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/apps/patch_api_24_apps_parameters.go b/cbs/internal/array/faclient/2.4/client/apps/patch_api_24_apps_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/apps/patch_api_24_apps_parameters.go rename to cbs/internal/array/faclient/2.4/client/apps/patch_api_24_apps_parameters.go index 9f3e8d2..9326bc3 100644 --- a/cbs/internal/faclient/2.4/client/apps/patch_api_24_apps_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/apps/patch_api_24_apps_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24AppsParams creates a new PatchAPI24AppsParams object diff --git a/cbs/internal/faclient/2.4/client/apps/patch_api_24_apps_responses.go b/cbs/internal/array/faclient/2.4/client/apps/patch_api_24_apps_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/apps/patch_api_24_apps_responses.go rename to cbs/internal/array/faclient/2.4/client/apps/patch_api_24_apps_responses.go index 3c37b3d..0e7910b 100644 --- a/cbs/internal/faclient/2.4/client/apps/patch_api_24_apps_responses.go +++ b/cbs/internal/array/faclient/2.4/client/apps/patch_api_24_apps_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24AppsReader is a Reader for the PatchAPI24Apps structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24AppsReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewPatchApi24AppsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24AppsOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewPatchApi24AppsBadRequest creates a PatchApi24AppsBadRequest with default headers values +func NewPatchApi24AppsBadRequest() *PatchApi24AppsBadRequest { + return &PatchApi24AppsBadRequest{} +} + +/*PatchApi24AppsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24AppsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24AppsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/apps][%d] patchApi24AppsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24AppsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24AppsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/array_connections/array_connections_client.go b/cbs/internal/array/faclient/2.4/client/array_connections/array_connections_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/array_connections/array_connections_client.go rename to cbs/internal/array/faclient/2.4/client/array_connections/array_connections_client.go diff --git a/cbs/internal/faclient/2.4/client/array_connections/delete_api_24_array_connections_parameters.go b/cbs/internal/array/faclient/2.4/client/array_connections/delete_api_24_array_connections_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/array_connections/delete_api_24_array_connections_parameters.go rename to cbs/internal/array/faclient/2.4/client/array_connections/delete_api_24_array_connections_parameters.go diff --git a/cbs/internal/faclient/2.4/client/array_connections/delete_api_24_array_connections_responses.go b/cbs/internal/array/faclient/2.4/client/array_connections/delete_api_24_array_connections_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/array_connections/delete_api_24_array_connections_responses.go rename to cbs/internal/array/faclient/2.4/client/array_connections/delete_api_24_array_connections_responses.go index fd4d49c..4ed406a 100644 --- a/cbs/internal/faclient/2.4/client/array_connections/delete_api_24_array_connections_responses.go +++ b/cbs/internal/array/faclient/2.4/client/array_connections/delete_api_24_array_connections_responses.go @@ -7,9 +7,12 @@ package array_connections import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ArrayConnectionsReader is a Reader for the DeleteAPI24ArrayConnections structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ArrayConnectionsReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewDeleteApi24ArrayConnectionsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ArrayConnectionsOK) readResponse(response runtime.ClientResp return nil } + +// NewDeleteApi24ArrayConnectionsBadRequest creates a DeleteApi24ArrayConnectionsBadRequest with default headers values +func NewDeleteApi24ArrayConnectionsBadRequest() *DeleteApi24ArrayConnectionsBadRequest { + return &DeleteApi24ArrayConnectionsBadRequest{} +} + +/*DeleteApi24ArrayConnectionsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ArrayConnectionsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ArrayConnectionsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/array-connections][%d] deleteApi24ArrayConnectionsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ArrayConnectionsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ArrayConnectionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_parameters.go b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_parameters.go rename to cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_parameters.go diff --git a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_responses.go b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_responses.go rename to cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_responses.go index d760ab0..e420428 100644 --- a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_responses.go +++ b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_connection_key_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArrayConnectionsConnectionKeyReader is a Reader for the GetAPI24ArrayConnectionsConnectionKey structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArrayConnectionsConnectionKeyReader) ReadResponse(response runt return nil, err } return result, nil + case 400: + result := NewGetApi24ArrayConnectionsConnectionKeyBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArrayConnectionsConnectionKeyOK) readResponse(response runtime. return nil } + +// NewGetApi24ArrayConnectionsConnectionKeyBadRequest creates a GetApi24ArrayConnectionsConnectionKeyBadRequest with default headers values +func NewGetApi24ArrayConnectionsConnectionKeyBadRequest() *GetApi24ArrayConnectionsConnectionKeyBadRequest { + return &GetApi24ArrayConnectionsConnectionKeyBadRequest{} +} + +/*GetApi24ArrayConnectionsConnectionKeyBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArrayConnectionsConnectionKeyBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArrayConnectionsConnectionKeyBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/array-connections/connection-key][%d] getApi24ArrayConnectionsConnectionKeyBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArrayConnectionsConnectionKeyBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArrayConnectionsConnectionKeyBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_parameters.go b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_parameters.go rename to cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_parameters.go diff --git a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_path_parameters.go b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_path_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_path_parameters.go rename to cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_path_parameters.go diff --git a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_path_responses.go b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_path_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_path_responses.go rename to cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_path_responses.go index 7c012fa..c6eb1fd 100644 --- a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_path_responses.go +++ b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_path_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArrayConnectionsPathReader is a Reader for the GetAPI24ArrayConnectionsPath structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArrayConnectionsPathReader) ReadResponse(response runtime.Clien return nil, err } return result, nil + case 400: + result := NewGetApi24ArrayConnectionsPathBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArrayConnectionsPathOK) readResponse(response runtime.ClientRes return nil } + +// NewGetApi24ArrayConnectionsPathBadRequest creates a GetApi24ArrayConnectionsPathBadRequest with default headers values +func NewGetApi24ArrayConnectionsPathBadRequest() *GetApi24ArrayConnectionsPathBadRequest { + return &GetApi24ArrayConnectionsPathBadRequest{} +} + +/*GetApi24ArrayConnectionsPathBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArrayConnectionsPathBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArrayConnectionsPathBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/array-connections/path][%d] getApi24ArrayConnectionsPathBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArrayConnectionsPathBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArrayConnectionsPathBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_responses.go b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_responses.go rename to cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_responses.go index 51b4bf6..8c65ec8 100644 --- a/cbs/internal/faclient/2.4/client/array_connections/get_api_24_array_connections_responses.go +++ b/cbs/internal/array/faclient/2.4/client/array_connections/get_api_24_array_connections_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArrayConnectionsReader is a Reader for the GetAPI24ArrayConnections structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArrayConnectionsReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewGetApi24ArrayConnectionsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArrayConnectionsOK) readResponse(response runtime.ClientRespons return nil } + +// NewGetApi24ArrayConnectionsBadRequest creates a GetApi24ArrayConnectionsBadRequest with default headers values +func NewGetApi24ArrayConnectionsBadRequest() *GetApi24ArrayConnectionsBadRequest { + return &GetApi24ArrayConnectionsBadRequest{} +} + +/*GetApi24ArrayConnectionsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArrayConnectionsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArrayConnectionsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/array-connections][%d] getApi24ArrayConnectionsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArrayConnectionsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArrayConnectionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/array_connections/patch_api_24_array_connections_parameters.go b/cbs/internal/array/faclient/2.4/client/array_connections/patch_api_24_array_connections_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/array_connections/patch_api_24_array_connections_parameters.go rename to cbs/internal/array/faclient/2.4/client/array_connections/patch_api_24_array_connections_parameters.go index 997d2f4..f3c08b3 100644 --- a/cbs/internal/faclient/2.4/client/array_connections/patch_api_24_array_connections_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/array_connections/patch_api_24_array_connections_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24ArrayConnectionsParams creates a new PatchAPI24ArrayConnectionsParams object diff --git a/cbs/internal/faclient/2.4/client/array_connections/patch_api_24_array_connections_responses.go b/cbs/internal/array/faclient/2.4/client/array_connections/patch_api_24_array_connections_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/array_connections/patch_api_24_array_connections_responses.go rename to cbs/internal/array/faclient/2.4/client/array_connections/patch_api_24_array_connections_responses.go index 0326352..b94f562 100644 --- a/cbs/internal/faclient/2.4/client/array_connections/patch_api_24_array_connections_responses.go +++ b/cbs/internal/array/faclient/2.4/client/array_connections/patch_api_24_array_connections_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24ArrayConnectionsReader is a Reader for the PatchAPI24ArrayConnections structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24ArrayConnectionsReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewPatchApi24ArrayConnectionsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24ArrayConnectionsOK) readResponse(response runtime.ClientRespo return nil } + +// NewPatchApi24ArrayConnectionsBadRequest creates a PatchApi24ArrayConnectionsBadRequest with default headers values +func NewPatchApi24ArrayConnectionsBadRequest() *PatchApi24ArrayConnectionsBadRequest { + return &PatchApi24ArrayConnectionsBadRequest{} +} + +/*PatchApi24ArrayConnectionsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24ArrayConnectionsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24ArrayConnectionsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/array-connections][%d] patchApi24ArrayConnectionsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24ArrayConnectionsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24ArrayConnectionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/array_connections/post_api_24_array_connections_parameters.go b/cbs/internal/array/faclient/2.4/client/array_connections/post_api_24_array_connections_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/array_connections/post_api_24_array_connections_parameters.go rename to cbs/internal/array/faclient/2.4/client/array_connections/post_api_24_array_connections_parameters.go index 8093998..6007980 100644 --- a/cbs/internal/faclient/2.4/client/array_connections/post_api_24_array_connections_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/array_connections/post_api_24_array_connections_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24ArrayConnectionsParams creates a new PostAPI24ArrayConnectionsParams object diff --git a/cbs/internal/faclient/2.4/client/array_connections/post_api_24_array_connections_responses.go b/cbs/internal/array/faclient/2.4/client/array_connections/post_api_24_array_connections_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/array_connections/post_api_24_array_connections_responses.go rename to cbs/internal/array/faclient/2.4/client/array_connections/post_api_24_array_connections_responses.go index b03f204..874ad2b 100644 --- a/cbs/internal/faclient/2.4/client/array_connections/post_api_24_array_connections_responses.go +++ b/cbs/internal/array/faclient/2.4/client/array_connections/post_api_24_array_connections_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ArrayConnectionsReader is a Reader for the PostAPI24ArrayConnections structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ArrayConnectionsReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewPostApi24ArrayConnectionsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ArrayConnectionsOK) readResponse(response runtime.ClientRespon return nil } + +// NewPostApi24ArrayConnectionsBadRequest creates a PostApi24ArrayConnectionsBadRequest with default headers values +func NewPostApi24ArrayConnectionsBadRequest() *PostApi24ArrayConnectionsBadRequest { + return &PostApi24ArrayConnectionsBadRequest{} +} + +/*PostApi24ArrayConnectionsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ArrayConnectionsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ArrayConnectionsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/array-connections][%d] postApi24ArrayConnectionsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ArrayConnectionsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ArrayConnectionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/arrays_client.go b/cbs/internal/array/faclient/2.4/client/arrays/arrays_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/arrays_client.go rename to cbs/internal/array/faclient/2.4/client/arrays/arrays_client.go diff --git a/cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_responses.go index 3493d5d..ce2f990 100644 --- a/cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_factory_reset_token_responses.go @@ -7,9 +7,12 @@ package arrays import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ArraysFactoryResetTokenReader is a Reader for the DeleteAPI24ArraysFactoryResetToken structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ArraysFactoryResetTokenReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewDeleteApi24ArraysFactoryResetTokenBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ArraysFactoryResetTokenOK) readResponse(response runtime.Cli return nil } + +// NewDeleteApi24ArraysFactoryResetTokenBadRequest creates a DeleteApi24ArraysFactoryResetTokenBadRequest with default headers values +func NewDeleteApi24ArraysFactoryResetTokenBadRequest() *DeleteApi24ArraysFactoryResetTokenBadRequest { + return &DeleteApi24ArraysFactoryResetTokenBadRequest{} +} + +/*DeleteApi24ArraysFactoryResetTokenBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ArraysFactoryResetTokenBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ArraysFactoryResetTokenBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/arrays/factory-reset-token][%d] deleteApi24ArraysFactoryResetTokenBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ArraysFactoryResetTokenBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ArraysFactoryResetTokenBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_responses.go index fdb34a3..4267e87 100644 --- a/cbs/internal/faclient/2.4/client/arrays/delete_api_24_arrays_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/delete_api_24_arrays_responses.go @@ -7,9 +7,12 @@ package arrays import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ArraysReader is a Reader for the DeleteAPI24Arrays structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ArraysReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewDeleteApi24ArraysBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ArraysOK) readResponse(response runtime.ClientResponse, cons return nil } + +// NewDeleteApi24ArraysBadRequest creates a DeleteApi24ArraysBadRequest with default headers values +func NewDeleteApi24ArraysBadRequest() *DeleteApi24ArraysBadRequest { + return &DeleteApi24ArraysBadRequest{} +} + +/*DeleteApi24ArraysBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ArraysBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ArraysBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/arrays][%d] deleteApi24ArraysBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ArraysBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ArraysBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_eula_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_eula_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_eula_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_eula_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_eula_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_eula_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_eula_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_eula_responses.go index 0d3461c..5f7f604 100644 --- a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_eula_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_eula_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArraysEulaReader is a Reader for the GetAPI24ArraysEula structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArraysEulaReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24ArraysEulaBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArraysEulaOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewGetApi24ArraysEulaBadRequest creates a GetApi24ArraysEulaBadRequest with default headers values +func NewGetApi24ArraysEulaBadRequest() *GetApi24ArraysEulaBadRequest { + return &GetApi24ArraysEulaBadRequest{} +} + +/*GetApi24ArraysEulaBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArraysEulaBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArraysEulaBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/arrays/eula][%d] getApi24ArraysEulaBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArraysEulaBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArraysEulaBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_responses.go index e9d6dee..f295bdc 100644 --- a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_factory_reset_token_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArraysFactoryResetTokenReader is a Reader for the GetAPI24ArraysFactoryResetToken structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArraysFactoryResetTokenReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24ArraysFactoryResetTokenBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArraysFactoryResetTokenOK) readResponse(response runtime.Client return nil } + +// NewGetApi24ArraysFactoryResetTokenBadRequest creates a GetApi24ArraysFactoryResetTokenBadRequest with default headers values +func NewGetApi24ArraysFactoryResetTokenBadRequest() *GetApi24ArraysFactoryResetTokenBadRequest { + return &GetApi24ArraysFactoryResetTokenBadRequest{} +} + +/*GetApi24ArraysFactoryResetTokenBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArraysFactoryResetTokenBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArraysFactoryResetTokenBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/arrays/factory-reset-token][%d] getApi24ArraysFactoryResetTokenBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArraysFactoryResetTokenBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArraysFactoryResetTokenBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_responses.go index d9d392c..6281781 100644 --- a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_ntp_test_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArraysNtpTestReader is a Reader for the GetAPI24ArraysNtpTest structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArraysNtpTestReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewGetApi24ArraysNtpTestBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArraysNtpTestOK) readResponse(response runtime.ClientResponse, return nil } + +// NewGetApi24ArraysNtpTestBadRequest creates a GetApi24ArraysNtpTestBadRequest with default headers values +func NewGetApi24ArraysNtpTestBadRequest() *GetApi24ArraysNtpTestBadRequest { + return &GetApi24ArraysNtpTestBadRequest{} +} + +/*GetApi24ArraysNtpTestBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArraysNtpTestBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArraysNtpTestBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/arrays/ntp-test][%d] getApi24ArraysNtpTestBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArraysNtpTestBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArraysNtpTestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_performance_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_performance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_performance_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_performance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_performance_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_performance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_performance_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_performance_responses.go index 1a43e59..7806364 100644 --- a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_performance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_performance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArraysPerformanceReader is a Reader for the GetAPI24ArraysPerformance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArraysPerformanceReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewGetApi24ArraysPerformanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArraysPerformanceOK) readResponse(response runtime.ClientRespon return nil } + +// NewGetApi24ArraysPerformanceBadRequest creates a GetApi24ArraysPerformanceBadRequest with default headers values +func NewGetApi24ArraysPerformanceBadRequest() *GetApi24ArraysPerformanceBadRequest { + return &GetApi24ArraysPerformanceBadRequest{} +} + +/*GetApi24ArraysPerformanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArraysPerformanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArraysPerformanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/arrays/performance][%d] getApi24ArraysPerformanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArraysPerformanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArraysPerformanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_responses.go index bb23839..b1fb170 100644 --- a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArraysReader is a Reader for the GetAPI24Arrays structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArraysReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewGetApi24ArraysBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArraysOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewGetApi24ArraysBadRequest creates a GetApi24ArraysBadRequest with default headers values +func NewGetApi24ArraysBadRequest() *GetApi24ArraysBadRequest { + return &GetApi24ArraysBadRequest{} +} + +/*GetApi24ArraysBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArraysBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArraysBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/arrays][%d] getApi24ArraysBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArraysBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArraysBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_space_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_space_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_space_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_space_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_space_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_space_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_space_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_space_responses.go index 6c935dd..5f583e1 100644 --- a/cbs/internal/faclient/2.4/client/arrays/get_api_24_arrays_space_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/get_api_24_arrays_space_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ArraysSpaceReader is a Reader for the GetAPI24ArraysSpace structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ArraysSpaceReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24ArraysSpaceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ArraysSpaceOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24ArraysSpaceBadRequest creates a GetApi24ArraysSpaceBadRequest with default headers values +func NewGetApi24ArraysSpaceBadRequest() *GetApi24ArraysSpaceBadRequest { + return &GetApi24ArraysSpaceBadRequest{} +} + +/*GetApi24ArraysSpaceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ArraysSpaceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ArraysSpaceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/arrays/space][%d] getApi24ArraysSpaceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ArraysSpaceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ArraysSpaceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_eula_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_eula_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_eula_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_eula_parameters.go index e5d75d3..b09cd1e 100644 --- a/cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_eula_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_eula_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24ArraysEulaParams creates a new PatchAPI24ArraysEulaParams object diff --git a/cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_eula_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_eula_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_eula_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_eula_responses.go index 682159b..c56a374 100644 --- a/cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_eula_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_eula_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24ArraysEulaReader is a Reader for the PatchAPI24ArraysEula structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24ArraysEulaReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPatchApi24ArraysEulaBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24ArraysEulaOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPatchApi24ArraysEulaBadRequest creates a PatchApi24ArraysEulaBadRequest with default headers values +func NewPatchApi24ArraysEulaBadRequest() *PatchApi24ArraysEulaBadRequest { + return &PatchApi24ArraysEulaBadRequest{} +} + +/*PatchApi24ArraysEulaBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24ArraysEulaBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24ArraysEulaBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/arrays/eula][%d] patchApi24ArraysEulaBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24ArraysEulaBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24ArraysEulaBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_parameters.go index 5bfb4cb..94d20d4 100644 --- a/cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24ArraysParams creates a new PatchAPI24ArraysParams object diff --git a/cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_responses.go index 3cc9b50..f07a47d 100644 --- a/cbs/internal/faclient/2.4/client/arrays/patch_api_24_arrays_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/patch_api_24_arrays_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24ArraysReader is a Reader for the PatchAPI24Arrays structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24ArraysReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewPatchApi24ArraysBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24ArraysOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewPatchApi24ArraysBadRequest creates a PatchApi24ArraysBadRequest with default headers values +func NewPatchApi24ArraysBadRequest() *PatchApi24ArraysBadRequest { + return &PatchApi24ArraysBadRequest{} +} + +/*PatchApi24ArraysBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24ArraysBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24ArraysBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/arrays][%d] patchApi24ArraysBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24ArraysBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24ArraysBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_parameters.go b/cbs/internal/array/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_parameters.go rename to cbs/internal/array/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_parameters.go diff --git a/cbs/internal/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_responses.go b/cbs/internal/array/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_responses.go rename to cbs/internal/array/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_responses.go index 1e34ac7..a88f97c 100644 --- a/cbs/internal/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_responses.go +++ b/cbs/internal/array/faclient/2.4/client/arrays/post_api_24_arrays_factory_reset_token_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ArraysFactoryResetTokenReader is a Reader for the PostAPI24ArraysFactoryResetToken structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ArraysFactoryResetTokenReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewPostApi24ArraysFactoryResetTokenBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ArraysFactoryResetTokenOK) readResponse(response runtime.Clien return nil } + +// NewPostApi24ArraysFactoryResetTokenBadRequest creates a PostApi24ArraysFactoryResetTokenBadRequest with default headers values +func NewPostApi24ArraysFactoryResetTokenBadRequest() *PostApi24ArraysFactoryResetTokenBadRequest { + return &PostApi24ArraysFactoryResetTokenBadRequest{} +} + +/*PostApi24ArraysFactoryResetTokenBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ArraysFactoryResetTokenBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ArraysFactoryResetTokenBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/arrays/factory-reset-token][%d] postApi24ArraysFactoryResetTokenBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ArraysFactoryResetTokenBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ArraysFactoryResetTokenBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/audits/audits_client.go b/cbs/internal/array/faclient/2.4/client/audits/audits_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/audits/audits_client.go rename to cbs/internal/array/faclient/2.4/client/audits/audits_client.go diff --git a/cbs/internal/faclient/2.4/client/audits/get_api_24_audits_parameters.go b/cbs/internal/array/faclient/2.4/client/audits/get_api_24_audits_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/audits/get_api_24_audits_parameters.go rename to cbs/internal/array/faclient/2.4/client/audits/get_api_24_audits_parameters.go diff --git a/cbs/internal/faclient/2.4/client/audits/get_api_24_audits_responses.go b/cbs/internal/array/faclient/2.4/client/audits/get_api_24_audits_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/audits/get_api_24_audits_responses.go rename to cbs/internal/array/faclient/2.4/client/audits/get_api_24_audits_responses.go index 1177fb0..12694b3 100644 --- a/cbs/internal/faclient/2.4/client/audits/get_api_24_audits_responses.go +++ b/cbs/internal/array/faclient/2.4/client/audits/get_api_24_audits_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24AuditsReader is a Reader for the GetAPI24Audits structure. @@ -29,6 +29,12 @@ func (o *GetAPI24AuditsReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewGetApi24AuditsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24AuditsOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewGetApi24AuditsBadRequest creates a GetApi24AuditsBadRequest with default headers values +func NewGetApi24AuditsBadRequest() *GetApi24AuditsBadRequest { + return &GetApi24AuditsBadRequest{} +} + +/*GetApi24AuditsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24AuditsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24AuditsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/audits][%d] getApi24AuditsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24AuditsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24AuditsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/authorization/authorization_client.go b/cbs/internal/array/faclient/2.4/client/authorization/authorization_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/authorization/authorization_client.go rename to cbs/internal/array/faclient/2.4/client/authorization/authorization_client.go diff --git a/cbs/internal/faclient/2.4/client/authorization/get_api_api_version_parameters.go b/cbs/internal/array/faclient/2.4/client/authorization/get_api_api_version_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/authorization/get_api_api_version_parameters.go rename to cbs/internal/array/faclient/2.4/client/authorization/get_api_api_version_parameters.go diff --git a/cbs/internal/faclient/2.4/client/authorization/get_api_api_version_responses.go b/cbs/internal/array/faclient/2.4/client/authorization/get_api_api_version_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/authorization/get_api_api_version_responses.go rename to cbs/internal/array/faclient/2.4/client/authorization/get_api_api_version_responses.go index 4e28940..bbf3725 100644 --- a/cbs/internal/faclient/2.4/client/authorization/get_api_api_version_responses.go +++ b/cbs/internal/array/faclient/2.4/client/authorization/get_api_api_version_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPIAPIVersionReader is a Reader for the GetAPIAPIVersion structure. @@ -29,6 +29,12 @@ func (o *GetAPIAPIVersionReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewGetAPIAPIVersionBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetAPIAPIVersionOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewGetAPIAPIVersionBadRequest creates a GetAPIAPIVersionBadRequest with default headers values +func NewGetAPIAPIVersionBadRequest() *GetAPIAPIVersionBadRequest { + return &GetAPIAPIVersionBadRequest{} +} + +/*GetAPIAPIVersionBadRequest handles this case with default header values. + +BadRequest +*/ +type GetAPIAPIVersionBadRequest struct { + Payload *models.Error +} + +func (o *GetAPIAPIVersionBadRequest) Error() string { + return fmt.Sprintf("[GET /api/api_version][%d] getApiApiVersionBadRequest %+v", 400, o.Payload) +} + +func (o *GetAPIAPIVersionBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetAPIAPIVersionBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/authorization/post_api_24_login_parameters.go b/cbs/internal/array/faclient/2.4/client/authorization/post_api_24_login_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/authorization/post_api_24_login_parameters.go rename to cbs/internal/array/faclient/2.4/client/authorization/post_api_24_login_parameters.go diff --git a/cbs/internal/faclient/2.4/client/authorization/post_api_24_login_responses.go b/cbs/internal/array/faclient/2.4/client/authorization/post_api_24_login_responses.go similarity index 63% rename from cbs/internal/faclient/2.4/client/authorization/post_api_24_login_responses.go rename to cbs/internal/array/faclient/2.4/client/authorization/post_api_24_login_responses.go index 2338d52..d3ebc04 100644 --- a/cbs/internal/faclient/2.4/client/authorization/post_api_24_login_responses.go +++ b/cbs/internal/array/faclient/2.4/client/authorization/post_api_24_login_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24LoginReader is a Reader for the PostAPI24Login structure. @@ -29,6 +29,12 @@ func (o *PostAPI24LoginReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewPostApi24LoginBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -74,3 +80,36 @@ func (o *PostApi24LoginOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewPostApi24LoginBadRequest creates a PostApi24LoginBadRequest with default headers values +func NewPostApi24LoginBadRequest() *PostApi24LoginBadRequest { + return &PostApi24LoginBadRequest{} +} + +/*PostApi24LoginBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24LoginBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24LoginBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/login][%d] postApi24LoginBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24LoginBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24LoginBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/authorization/post_api_24_logout_parameters.go b/cbs/internal/array/faclient/2.4/client/authorization/post_api_24_logout_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/authorization/post_api_24_logout_parameters.go rename to cbs/internal/array/faclient/2.4/client/authorization/post_api_24_logout_parameters.go diff --git a/cbs/internal/faclient/2.4/client/authorization/post_api_24_logout_responses.go b/cbs/internal/array/faclient/2.4/client/authorization/post_api_24_logout_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/authorization/post_api_24_logout_responses.go rename to cbs/internal/array/faclient/2.4/client/authorization/post_api_24_logout_responses.go index 08fb9fc..5e04fe3 100644 --- a/cbs/internal/faclient/2.4/client/authorization/post_api_24_logout_responses.go +++ b/cbs/internal/array/faclient/2.4/client/authorization/post_api_24_logout_responses.go @@ -7,9 +7,12 @@ package authorization import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24LogoutReader is a Reader for the PostAPI24Logout structure. @@ -26,6 +29,12 @@ func (o *PostAPI24LogoutReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return result, nil + case 400: + result := NewPostApi24LogoutBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *PostApi24LogoutOK) readResponse(response runtime.ClientResponse, consum return nil } + +// NewPostApi24LogoutBadRequest creates a PostApi24LogoutBadRequest with default headers values +func NewPostApi24LogoutBadRequest() *PostApi24LogoutBadRequest { + return &PostApi24LogoutBadRequest{} +} + +/*PostApi24LogoutBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24LogoutBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24LogoutBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/logout][%d] postApi24LogoutBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24LogoutBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24LogoutBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/authorization/post_oauth210_token_parameters.go b/cbs/internal/array/faclient/2.4/client/authorization/post_oauth210_token_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/authorization/post_oauth210_token_parameters.go rename to cbs/internal/array/faclient/2.4/client/authorization/post_oauth210_token_parameters.go diff --git a/cbs/internal/faclient/2.4/client/authorization/post_oauth210_token_responses.go b/cbs/internal/array/faclient/2.4/client/authorization/post_oauth210_token_responses.go similarity index 99% rename from cbs/internal/faclient/2.4/client/authorization/post_oauth210_token_responses.go rename to cbs/internal/array/faclient/2.4/client/authorization/post_oauth210_token_responses.go index 38768a6..4e98d0c 100644 --- a/cbs/internal/faclient/2.4/client/authorization/post_oauth210_token_responses.go +++ b/cbs/internal/array/faclient/2.4/client/authorization/post_oauth210_token_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostOauth210TokenReader is a Reader for the PostOauth210Token structure. diff --git a/cbs/internal/faclient/2.4/client/certificates/certificates_client.go b/cbs/internal/array/faclient/2.4/client/certificates/certificates_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/certificates/certificates_client.go rename to cbs/internal/array/faclient/2.4/client/certificates/certificates_client.go diff --git a/cbs/internal/faclient/2.4/client/certificates/delete_api_24_certificates_parameters.go b/cbs/internal/array/faclient/2.4/client/certificates/delete_api_24_certificates_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/certificates/delete_api_24_certificates_parameters.go rename to cbs/internal/array/faclient/2.4/client/certificates/delete_api_24_certificates_parameters.go diff --git a/cbs/internal/faclient/2.4/client/certificates/delete_api_24_certificates_responses.go b/cbs/internal/array/faclient/2.4/client/certificates/delete_api_24_certificates_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/certificates/delete_api_24_certificates_responses.go rename to cbs/internal/array/faclient/2.4/client/certificates/delete_api_24_certificates_responses.go index d117bbb..d0ac154 100644 --- a/cbs/internal/faclient/2.4/client/certificates/delete_api_24_certificates_responses.go +++ b/cbs/internal/array/faclient/2.4/client/certificates/delete_api_24_certificates_responses.go @@ -7,9 +7,12 @@ package certificates import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24CertificatesReader is a Reader for the DeleteAPI24Certificates structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24CertificatesReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewDeleteApi24CertificatesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24CertificatesOK) readResponse(response runtime.ClientResponse return nil } + +// NewDeleteApi24CertificatesBadRequest creates a DeleteApi24CertificatesBadRequest with default headers values +func NewDeleteApi24CertificatesBadRequest() *DeleteApi24CertificatesBadRequest { + return &DeleteApi24CertificatesBadRequest{} +} + +/*DeleteApi24CertificatesBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24CertificatesBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24CertificatesBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/certificates][%d] deleteApi24CertificatesBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24CertificatesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24CertificatesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/certificates/get_api_24_certificates_parameters.go b/cbs/internal/array/faclient/2.4/client/certificates/get_api_24_certificates_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/certificates/get_api_24_certificates_parameters.go rename to cbs/internal/array/faclient/2.4/client/certificates/get_api_24_certificates_parameters.go diff --git a/cbs/internal/faclient/2.4/client/certificates/get_api_24_certificates_responses.go b/cbs/internal/array/faclient/2.4/client/certificates/get_api_24_certificates_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/certificates/get_api_24_certificates_responses.go rename to cbs/internal/array/faclient/2.4/client/certificates/get_api_24_certificates_responses.go index e15cae2..7d951aa 100644 --- a/cbs/internal/faclient/2.4/client/certificates/get_api_24_certificates_responses.go +++ b/cbs/internal/array/faclient/2.4/client/certificates/get_api_24_certificates_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24CertificatesReader is a Reader for the GetAPI24Certificates structure. @@ -29,6 +29,12 @@ func (o *GetAPI24CertificatesReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewGetApi24CertificatesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24CertificatesOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewGetApi24CertificatesBadRequest creates a GetApi24CertificatesBadRequest with default headers values +func NewGetApi24CertificatesBadRequest() *GetApi24CertificatesBadRequest { + return &GetApi24CertificatesBadRequest{} +} + +/*GetApi24CertificatesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24CertificatesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24CertificatesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/certificates][%d] getApi24CertificatesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24CertificatesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24CertificatesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/certificates/patch_api_24_certificates_parameters.go b/cbs/internal/array/faclient/2.4/client/certificates/patch_api_24_certificates_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/certificates/patch_api_24_certificates_parameters.go rename to cbs/internal/array/faclient/2.4/client/certificates/patch_api_24_certificates_parameters.go index 6d0bc44..f934878 100644 --- a/cbs/internal/faclient/2.4/client/certificates/patch_api_24_certificates_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/certificates/patch_api_24_certificates_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24CertificatesParams creates a new PatchAPI24CertificatesParams object diff --git a/cbs/internal/faclient/2.4/client/certificates/patch_api_24_certificates_responses.go b/cbs/internal/array/faclient/2.4/client/certificates/patch_api_24_certificates_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/certificates/patch_api_24_certificates_responses.go rename to cbs/internal/array/faclient/2.4/client/certificates/patch_api_24_certificates_responses.go index d758cdf..844febb 100644 --- a/cbs/internal/faclient/2.4/client/certificates/patch_api_24_certificates_responses.go +++ b/cbs/internal/array/faclient/2.4/client/certificates/patch_api_24_certificates_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24CertificatesReader is a Reader for the PatchAPI24Certificates structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24CertificatesReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewPatchApi24CertificatesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24CertificatesOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPatchApi24CertificatesBadRequest creates a PatchApi24CertificatesBadRequest with default headers values +func NewPatchApi24CertificatesBadRequest() *PatchApi24CertificatesBadRequest { + return &PatchApi24CertificatesBadRequest{} +} + +/*PatchApi24CertificatesBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24CertificatesBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24CertificatesBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/certificates][%d] patchApi24CertificatesBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24CertificatesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24CertificatesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_parameters.go b/cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_parameters.go rename to cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_parameters.go index 8737d9f..e364b0f 100644 --- a/cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24CertificatesCertificateSigningRequestsParams creates a new PostAPI24CertificatesCertificateSigningRequestsParams object diff --git a/cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_responses.go b/cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_responses.go rename to cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_responses.go index ab421ae..971dfa8 100644 --- a/cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_responses.go +++ b/cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_certificate_signing_requests_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24CertificatesCertificateSigningRequestsReader is a Reader for the PostAPI24CertificatesCertificateSigningRequests structure. @@ -29,6 +29,12 @@ func (o *PostAPI24CertificatesCertificateSigningRequestsReader) ReadResponse(res return nil, err } return result, nil + case 400: + result := NewPostApi24CertificatesCertificateSigningRequestsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24CertificatesCertificateSigningRequestsOK) readResponse(respons return nil } + +// NewPostApi24CertificatesCertificateSigningRequestsBadRequest creates a PostApi24CertificatesCertificateSigningRequestsBadRequest with default headers values +func NewPostApi24CertificatesCertificateSigningRequestsBadRequest() *PostApi24CertificatesCertificateSigningRequestsBadRequest { + return &PostApi24CertificatesCertificateSigningRequestsBadRequest{} +} + +/*PostApi24CertificatesCertificateSigningRequestsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24CertificatesCertificateSigningRequestsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24CertificatesCertificateSigningRequestsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/certificates/certificate-signing-requests][%d] postApi24CertificatesCertificateSigningRequestsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24CertificatesCertificateSigningRequestsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24CertificatesCertificateSigningRequestsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_parameters.go b/cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_parameters.go rename to cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_parameters.go index 80cf6b3..b415cc5 100644 --- a/cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24CertificatesParams creates a new PostAPI24CertificatesParams object diff --git a/cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_responses.go b/cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_responses.go rename to cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_responses.go index 9b584d8..b999224 100644 --- a/cbs/internal/faclient/2.4/client/certificates/post_api_24_certificates_responses.go +++ b/cbs/internal/array/faclient/2.4/client/certificates/post_api_24_certificates_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24CertificatesReader is a Reader for the PostAPI24Certificates structure. @@ -29,6 +29,12 @@ func (o *PostAPI24CertificatesReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewPostApi24CertificatesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24CertificatesOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPostApi24CertificatesBadRequest creates a PostApi24CertificatesBadRequest with default headers values +func NewPostApi24CertificatesBadRequest() *PostApi24CertificatesBadRequest { + return &PostApi24CertificatesBadRequest{} +} + +/*PostApi24CertificatesBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24CertificatesBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24CertificatesBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/certificates][%d] postApi24CertificatesBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24CertificatesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24CertificatesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/connections/connections_client.go b/cbs/internal/array/faclient/2.4/client/connections/connections_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/connections/connections_client.go rename to cbs/internal/array/faclient/2.4/client/connections/connections_client.go diff --git a/cbs/internal/faclient/2.4/client/connections/delete_api_24_connections_parameters.go b/cbs/internal/array/faclient/2.4/client/connections/delete_api_24_connections_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/connections/delete_api_24_connections_parameters.go rename to cbs/internal/array/faclient/2.4/client/connections/delete_api_24_connections_parameters.go diff --git a/cbs/internal/faclient/2.4/client/connections/delete_api_24_connections_responses.go b/cbs/internal/array/faclient/2.4/client/connections/delete_api_24_connections_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/connections/delete_api_24_connections_responses.go rename to cbs/internal/array/faclient/2.4/client/connections/delete_api_24_connections_responses.go index e1bb61c..4aad4ca 100644 --- a/cbs/internal/faclient/2.4/client/connections/delete_api_24_connections_responses.go +++ b/cbs/internal/array/faclient/2.4/client/connections/delete_api_24_connections_responses.go @@ -7,9 +7,12 @@ package connections import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ConnectionsReader is a Reader for the DeleteAPI24Connections structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ConnectionsReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewDeleteApi24ConnectionsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ConnectionsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24ConnectionsBadRequest creates a DeleteApi24ConnectionsBadRequest with default headers values +func NewDeleteApi24ConnectionsBadRequest() *DeleteApi24ConnectionsBadRequest { + return &DeleteApi24ConnectionsBadRequest{} +} + +/*DeleteApi24ConnectionsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ConnectionsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ConnectionsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/connections][%d] deleteApi24ConnectionsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ConnectionsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ConnectionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/connections/get_api_24_connections_parameters.go b/cbs/internal/array/faclient/2.4/client/connections/get_api_24_connections_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/connections/get_api_24_connections_parameters.go rename to cbs/internal/array/faclient/2.4/client/connections/get_api_24_connections_parameters.go diff --git a/cbs/internal/faclient/2.4/client/connections/get_api_24_connections_responses.go b/cbs/internal/array/faclient/2.4/client/connections/get_api_24_connections_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/connections/get_api_24_connections_responses.go rename to cbs/internal/array/faclient/2.4/client/connections/get_api_24_connections_responses.go index f1cb466..17ecf4d 100644 --- a/cbs/internal/faclient/2.4/client/connections/get_api_24_connections_responses.go +++ b/cbs/internal/array/faclient/2.4/client/connections/get_api_24_connections_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ConnectionsReader is a Reader for the GetAPI24Connections structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ConnectionsReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24ConnectionsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ConnectionsOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24ConnectionsBadRequest creates a GetApi24ConnectionsBadRequest with default headers values +func NewGetApi24ConnectionsBadRequest() *GetApi24ConnectionsBadRequest { + return &GetApi24ConnectionsBadRequest{} +} + +/*GetApi24ConnectionsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ConnectionsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ConnectionsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/connections][%d] getApi24ConnectionsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ConnectionsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ConnectionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/connections/post_api_24_connections_parameters.go b/cbs/internal/array/faclient/2.4/client/connections/post_api_24_connections_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/connections/post_api_24_connections_parameters.go rename to cbs/internal/array/faclient/2.4/client/connections/post_api_24_connections_parameters.go index a660325..4b4c2e1 100644 --- a/cbs/internal/faclient/2.4/client/connections/post_api_24_connections_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/connections/post_api_24_connections_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24ConnectionsParams creates a new PostAPI24ConnectionsParams object diff --git a/cbs/internal/faclient/2.4/client/connections/post_api_24_connections_responses.go b/cbs/internal/array/faclient/2.4/client/connections/post_api_24_connections_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/connections/post_api_24_connections_responses.go rename to cbs/internal/array/faclient/2.4/client/connections/post_api_24_connections_responses.go index 593ab8e..aa8a792 100644 --- a/cbs/internal/faclient/2.4/client/connections/post_api_24_connections_responses.go +++ b/cbs/internal/array/faclient/2.4/client/connections/post_api_24_connections_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ConnectionsReader is a Reader for the PostAPI24Connections structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ConnectionsReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPostApi24ConnectionsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ConnectionsOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPostApi24ConnectionsBadRequest creates a PostApi24ConnectionsBadRequest with default headers values +func NewPostApi24ConnectionsBadRequest() *PostApi24ConnectionsBadRequest { + return &PostApi24ConnectionsBadRequest{} +} + +/*PostApi24ConnectionsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ConnectionsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ConnectionsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/connections][%d] postApi24ConnectionsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ConnectionsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ConnectionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/controllers/controllers_client.go b/cbs/internal/array/faclient/2.4/client/controllers/controllers_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/controllers/controllers_client.go rename to cbs/internal/array/faclient/2.4/client/controllers/controllers_client.go diff --git a/cbs/internal/faclient/2.4/client/controllers/get_api_24_controllers_parameters.go b/cbs/internal/array/faclient/2.4/client/controllers/get_api_24_controllers_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/controllers/get_api_24_controllers_parameters.go rename to cbs/internal/array/faclient/2.4/client/controllers/get_api_24_controllers_parameters.go diff --git a/cbs/internal/faclient/2.4/client/controllers/get_api_24_controllers_responses.go b/cbs/internal/array/faclient/2.4/client/controllers/get_api_24_controllers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/controllers/get_api_24_controllers_responses.go rename to cbs/internal/array/faclient/2.4/client/controllers/get_api_24_controllers_responses.go index 63c96cf..ac97f89 100644 --- a/cbs/internal/faclient/2.4/client/controllers/get_api_24_controllers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/controllers/get_api_24_controllers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ControllersReader is a Reader for the GetAPI24Controllers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ControllersReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24ControllersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ControllersOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24ControllersBadRequest creates a GetApi24ControllersBadRequest with default headers values +func NewGetApi24ControllersBadRequest() *GetApi24ControllersBadRequest { + return &GetApi24ControllersBadRequest{} +} + +/*GetApi24ControllersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ControllersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ControllersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/controllers][%d] getApi24ControllersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ControllersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ControllersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_responses.go b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_responses.go index 2f3b8b3..c0d4936 100644 --- a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_nfs_responses.go @@ -7,9 +7,12 @@ package directories import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24DirectoriesPoliciesNfsReader is a Reader for the DeleteAPI24DirectoriesPoliciesNfs structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24DirectoriesPoliciesNfsReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewDeleteApi24DirectoriesPoliciesNfsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24DirectoriesPoliciesNfsOK) readResponse(response runtime.Clie return nil } + +// NewDeleteApi24DirectoriesPoliciesNfsBadRequest creates a DeleteApi24DirectoriesPoliciesNfsBadRequest with default headers values +func NewDeleteApi24DirectoriesPoliciesNfsBadRequest() *DeleteApi24DirectoriesPoliciesNfsBadRequest { + return &DeleteApi24DirectoriesPoliciesNfsBadRequest{} +} + +/*DeleteApi24DirectoriesPoliciesNfsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24DirectoriesPoliciesNfsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24DirectoriesPoliciesNfsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/directories/policies/nfs][%d] deleteApi24DirectoriesPoliciesNfsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24DirectoriesPoliciesNfsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24DirectoriesPoliciesNfsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_responses.go b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_responses.go index 6eb7158..e760a9b 100644 --- a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_smb_responses.go @@ -7,9 +7,12 @@ package directories import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24DirectoriesPoliciesSmbReader is a Reader for the DeleteAPI24DirectoriesPoliciesSmb structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24DirectoriesPoliciesSmbReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewDeleteApi24DirectoriesPoliciesSmbBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24DirectoriesPoliciesSmbOK) readResponse(response runtime.Clie return nil } + +// NewDeleteApi24DirectoriesPoliciesSmbBadRequest creates a DeleteApi24DirectoriesPoliciesSmbBadRequest with default headers values +func NewDeleteApi24DirectoriesPoliciesSmbBadRequest() *DeleteApi24DirectoriesPoliciesSmbBadRequest { + return &DeleteApi24DirectoriesPoliciesSmbBadRequest{} +} + +/*DeleteApi24DirectoriesPoliciesSmbBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24DirectoriesPoliciesSmbBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24DirectoriesPoliciesSmbBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/directories/policies/smb][%d] deleteApi24DirectoriesPoliciesSmbBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24DirectoriesPoliciesSmbBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24DirectoriesPoliciesSmbBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_responses.go b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_responses.go index 5ed1f54..9cae3f1 100644 --- a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_policies_snapshot_responses.go @@ -7,9 +7,12 @@ package directories import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24DirectoriesPoliciesSnapshotReader is a Reader for the DeleteAPI24DirectoriesPoliciesSnapshot structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24DirectoriesPoliciesSnapshotReader) ReadResponse(response run return nil, err } return result, nil + case 400: + result := NewDeleteApi24DirectoriesPoliciesSnapshotBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24DirectoriesPoliciesSnapshotOK) readResponse(response runtime return nil } + +// NewDeleteApi24DirectoriesPoliciesSnapshotBadRequest creates a DeleteApi24DirectoriesPoliciesSnapshotBadRequest with default headers values +func NewDeleteApi24DirectoriesPoliciesSnapshotBadRequest() *DeleteApi24DirectoriesPoliciesSnapshotBadRequest { + return &DeleteApi24DirectoriesPoliciesSnapshotBadRequest{} +} + +/*DeleteApi24DirectoriesPoliciesSnapshotBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24DirectoriesPoliciesSnapshotBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24DirectoriesPoliciesSnapshotBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/directories/policies/snapshot][%d] deleteApi24DirectoriesPoliciesSnapshotBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24DirectoriesPoliciesSnapshotBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24DirectoriesPoliciesSnapshotBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_responses.go b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_responses.go index e993141..887bb2d 100644 --- a/cbs/internal/faclient/2.4/client/directories/delete_api_24_directories_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/delete_api_24_directories_responses.go @@ -7,9 +7,12 @@ package directories import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24DirectoriesReader is a Reader for the DeleteAPI24Directories structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24DirectoriesReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewDeleteApi24DirectoriesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24DirectoriesOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24DirectoriesBadRequest creates a DeleteApi24DirectoriesBadRequest with default headers values +func NewDeleteApi24DirectoriesBadRequest() *DeleteApi24DirectoriesBadRequest { + return &DeleteApi24DirectoriesBadRequest{} +} + +/*DeleteApi24DirectoriesBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24DirectoriesBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24DirectoriesBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/directories][%d] deleteApi24DirectoriesBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24DirectoriesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24DirectoriesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/directories_client.go b/cbs/internal/array/faclient/2.4/client/directories/directories_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/directories_client.go rename to cbs/internal/array/faclient/2.4/client/directories/directories_client.go diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_performance_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_performance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_performance_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_performance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_performance_responses.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_performance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_performance_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_performance_responses.go index 2f2f611..89a2c77 100644 --- a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_performance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_performance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoriesPerformanceReader is a Reader for the GetAPI24DirectoriesPerformance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoriesPerformanceReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoriesPerformanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoriesPerformanceOK) readResponse(response runtime.ClientR return nil } + +// NewGetApi24DirectoriesPerformanceBadRequest creates a GetApi24DirectoriesPerformanceBadRequest with default headers values +func NewGetApi24DirectoriesPerformanceBadRequest() *GetApi24DirectoriesPerformanceBadRequest { + return &GetApi24DirectoriesPerformanceBadRequest{} +} + +/*GetApi24DirectoriesPerformanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoriesPerformanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoriesPerformanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directories/performance][%d] getApi24DirectoriesPerformanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoriesPerformanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoriesPerformanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_responses.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_responses.go index 683d343..d3fbc9b 100644 --- a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_nfs_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoriesPoliciesNfsReader is a Reader for the GetAPI24DirectoriesPoliciesNfs structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoriesPoliciesNfsReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoriesPoliciesNfsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoriesPoliciesNfsOK) readResponse(response runtime.ClientR return nil } + +// NewGetApi24DirectoriesPoliciesNfsBadRequest creates a GetApi24DirectoriesPoliciesNfsBadRequest with default headers values +func NewGetApi24DirectoriesPoliciesNfsBadRequest() *GetApi24DirectoriesPoliciesNfsBadRequest { + return &GetApi24DirectoriesPoliciesNfsBadRequest{} +} + +/*GetApi24DirectoriesPoliciesNfsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoriesPoliciesNfsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoriesPoliciesNfsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directories/policies/nfs][%d] getApi24DirectoriesPoliciesNfsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoriesPoliciesNfsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoriesPoliciesNfsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_responses.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_responses.go index ffbe849..0ab3793 100644 --- a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoriesPoliciesReader is a Reader for the GetAPI24DirectoriesPolicies structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoriesPoliciesReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoriesPoliciesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoriesPoliciesOK) readResponse(response runtime.ClientResp return nil } + +// NewGetApi24DirectoriesPoliciesBadRequest creates a GetApi24DirectoriesPoliciesBadRequest with default headers values +func NewGetApi24DirectoriesPoliciesBadRequest() *GetApi24DirectoriesPoliciesBadRequest { + return &GetApi24DirectoriesPoliciesBadRequest{} +} + +/*GetApi24DirectoriesPoliciesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoriesPoliciesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoriesPoliciesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directories/policies][%d] getApi24DirectoriesPoliciesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoriesPoliciesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoriesPoliciesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_smb_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_smb_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_smb_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_smb_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_smb_responses.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_smb_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_smb_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_smb_responses.go index 127a33e..726c5d8 100644 --- a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_smb_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_smb_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoriesPoliciesSmbReader is a Reader for the GetAPI24DirectoriesPoliciesSmb structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoriesPoliciesSmbReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoriesPoliciesSmbBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoriesPoliciesSmbOK) readResponse(response runtime.ClientR return nil } + +// NewGetApi24DirectoriesPoliciesSmbBadRequest creates a GetApi24DirectoriesPoliciesSmbBadRequest with default headers values +func NewGetApi24DirectoriesPoliciesSmbBadRequest() *GetApi24DirectoriesPoliciesSmbBadRequest { + return &GetApi24DirectoriesPoliciesSmbBadRequest{} +} + +/*GetApi24DirectoriesPoliciesSmbBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoriesPoliciesSmbBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoriesPoliciesSmbBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directories/policies/smb][%d] getApi24DirectoriesPoliciesSmbBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoriesPoliciesSmbBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoriesPoliciesSmbBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_responses.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_responses.go index d59a6bb..033d8a8 100644 --- a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_policies_snapshot_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoriesPoliciesSnapshotReader is a Reader for the GetAPI24DirectoriesPoliciesSnapshot structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoriesPoliciesSnapshotReader) ReadResponse(response runtim return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoriesPoliciesSnapshotBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoriesPoliciesSnapshotOK) readResponse(response runtime.Cl return nil } + +// NewGetApi24DirectoriesPoliciesSnapshotBadRequest creates a GetApi24DirectoriesPoliciesSnapshotBadRequest with default headers values +func NewGetApi24DirectoriesPoliciesSnapshotBadRequest() *GetApi24DirectoriesPoliciesSnapshotBadRequest { + return &GetApi24DirectoriesPoliciesSnapshotBadRequest{} +} + +/*GetApi24DirectoriesPoliciesSnapshotBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoriesPoliciesSnapshotBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoriesPoliciesSnapshotBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directories/policies/snapshot][%d] getApi24DirectoriesPoliciesSnapshotBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoriesPoliciesSnapshotBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoriesPoliciesSnapshotBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_responses.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_responses.go index 4f81917..2b05371 100644 --- a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoriesReader is a Reader for the GetAPI24Directories structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoriesReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoriesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoriesOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24DirectoriesBadRequest creates a GetApi24DirectoriesBadRequest with default headers values +func NewGetApi24DirectoriesBadRequest() *GetApi24DirectoriesBadRequest { + return &GetApi24DirectoriesBadRequest{} +} + +/*GetApi24DirectoriesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoriesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoriesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directories][%d] getApi24DirectoriesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoriesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoriesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_space_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_space_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_space_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_space_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_space_responses.go b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_space_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/get_api_24_directories_space_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_space_responses.go index 5b42e06..3612e64 100644 --- a/cbs/internal/faclient/2.4/client/directories/get_api_24_directories_space_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/get_api_24_directories_space_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoriesSpaceReader is a Reader for the GetAPI24DirectoriesSpace structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoriesSpaceReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoriesSpaceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoriesSpaceOK) readResponse(response runtime.ClientRespons return nil } + +// NewGetApi24DirectoriesSpaceBadRequest creates a GetApi24DirectoriesSpaceBadRequest with default headers values +func NewGetApi24DirectoriesSpaceBadRequest() *GetApi24DirectoriesSpaceBadRequest { + return &GetApi24DirectoriesSpaceBadRequest{} +} + +/*GetApi24DirectoriesSpaceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoriesSpaceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoriesSpaceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directories/space][%d] getApi24DirectoriesSpaceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoriesSpaceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoriesSpaceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/patch_api_24_directories_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/patch_api_24_directories_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directories/patch_api_24_directories_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/patch_api_24_directories_parameters.go index 811a4ee..e71d3e4 100644 --- a/cbs/internal/faclient/2.4/client/directories/patch_api_24_directories_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directories/patch_api_24_directories_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24DirectoriesParams creates a new PatchAPI24DirectoriesParams object diff --git a/cbs/internal/faclient/2.4/client/directories/patch_api_24_directories_responses.go b/cbs/internal/array/faclient/2.4/client/directories/patch_api_24_directories_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/patch_api_24_directories_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/patch_api_24_directories_responses.go index 4977843..16f8620 100644 --- a/cbs/internal/faclient/2.4/client/directories/patch_api_24_directories_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/patch_api_24_directories_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24DirectoriesReader is a Reader for the PatchAPI24Directories structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24DirectoriesReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewPatchApi24DirectoriesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24DirectoriesOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPatchApi24DirectoriesBadRequest creates a PatchApi24DirectoriesBadRequest with default headers values +func NewPatchApi24DirectoriesBadRequest() *PatchApi24DirectoriesBadRequest { + return &PatchApi24DirectoriesBadRequest{} +} + +/*PatchApi24DirectoriesBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24DirectoriesBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24DirectoriesBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/directories][%d] patchApi24DirectoriesBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24DirectoriesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24DirectoriesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directories/post_api_24_directories_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_parameters.go index 1a30f0c..7ebcfd5 100644 --- a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24DirectoriesParams creates a new PostAPI24DirectoriesParams object diff --git a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_parameters.go index 5ab1a5e..d280114 100644 --- a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24DirectoriesPoliciesNfsParams creates a new PostAPI24DirectoriesPoliciesNfsParams object diff --git a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_responses.go b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_responses.go index 1217c42..7b568a0 100644 --- a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_nfs_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24DirectoriesPoliciesNfsReader is a Reader for the PostAPI24DirectoriesPoliciesNfs structure. @@ -29,6 +29,12 @@ func (o *PostAPI24DirectoriesPoliciesNfsReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewPostApi24DirectoriesPoliciesNfsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24DirectoriesPoliciesNfsOK) readResponse(response runtime.Client return nil } + +// NewPostApi24DirectoriesPoliciesNfsBadRequest creates a PostApi24DirectoriesPoliciesNfsBadRequest with default headers values +func NewPostApi24DirectoriesPoliciesNfsBadRequest() *PostApi24DirectoriesPoliciesNfsBadRequest { + return &PostApi24DirectoriesPoliciesNfsBadRequest{} +} + +/*PostApi24DirectoriesPoliciesNfsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24DirectoriesPoliciesNfsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24DirectoriesPoliciesNfsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/directories/policies/nfs][%d] postApi24DirectoriesPoliciesNfsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24DirectoriesPoliciesNfsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24DirectoriesPoliciesNfsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_smb_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_smb_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_smb_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_smb_parameters.go index fb4a4a8..eb53d18 100644 --- a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_smb_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_smb_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24DirectoriesPoliciesSmbParams creates a new PostAPI24DirectoriesPoliciesSmbParams object diff --git a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_smb_responses.go b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_smb_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_smb_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_smb_responses.go index 05f4b2a..f14649e 100644 --- a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_smb_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_smb_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24DirectoriesPoliciesSmbReader is a Reader for the PostAPI24DirectoriesPoliciesSmb structure. @@ -29,6 +29,12 @@ func (o *PostAPI24DirectoriesPoliciesSmbReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewPostApi24DirectoriesPoliciesSmbBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24DirectoriesPoliciesSmbOK) readResponse(response runtime.Client return nil } + +// NewPostApi24DirectoriesPoliciesSmbBadRequest creates a PostApi24DirectoriesPoliciesSmbBadRequest with default headers values +func NewPostApi24DirectoriesPoliciesSmbBadRequest() *PostApi24DirectoriesPoliciesSmbBadRequest { + return &PostApi24DirectoriesPoliciesSmbBadRequest{} +} + +/*PostApi24DirectoriesPoliciesSmbBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24DirectoriesPoliciesSmbBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24DirectoriesPoliciesSmbBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/directories/policies/smb][%d] postApi24DirectoriesPoliciesSmbBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24DirectoriesPoliciesSmbBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24DirectoriesPoliciesSmbBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_parameters.go b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_parameters.go rename to cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_parameters.go index 06f1b9a..df8f250 100644 --- a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24DirectoriesPoliciesSnapshotParams creates a new PostAPI24DirectoriesPoliciesSnapshotParams object diff --git a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_responses.go b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_responses.go similarity index 60% rename from cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_responses.go index c890639..ff2724e 100644 --- a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_policies_snapshot_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24DirectoriesPoliciesSnapshotReader is a Reader for the PostAPI24DirectoriesPoliciesSnapshot structure. @@ -29,6 +29,12 @@ func (o *PostAPI24DirectoriesPoliciesSnapshotReader) ReadResponse(response runti return nil, err } return result, nil + case 400: + result := NewPostApi24DirectoriesPoliciesSnapshotBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24DirectoriesPoliciesSnapshotOK) readResponse(response runtime.C return nil } + +// NewPostApi24DirectoriesPoliciesSnapshotBadRequest creates a PostApi24DirectoriesPoliciesSnapshotBadRequest with default headers values +func NewPostApi24DirectoriesPoliciesSnapshotBadRequest() *PostApi24DirectoriesPoliciesSnapshotBadRequest { + return &PostApi24DirectoriesPoliciesSnapshotBadRequest{} +} + +/*PostApi24DirectoriesPoliciesSnapshotBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24DirectoriesPoliciesSnapshotBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24DirectoriesPoliciesSnapshotBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/directories/policies/snapshot][%d] postApi24DirectoriesPoliciesSnapshotBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24DirectoriesPoliciesSnapshotBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24DirectoriesPoliciesSnapshotBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_responses.go b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directories/post_api_24_directories_responses.go rename to cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_responses.go index 2bb008d..6541967 100644 --- a/cbs/internal/faclient/2.4/client/directories/post_api_24_directories_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directories/post_api_24_directories_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24DirectoriesReader is a Reader for the PostAPI24Directories structure. @@ -29,6 +29,12 @@ func (o *PostAPI24DirectoriesReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPostApi24DirectoriesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24DirectoriesOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPostApi24DirectoriesBadRequest creates a PostApi24DirectoriesBadRequest with default headers values +func NewPostApi24DirectoriesBadRequest() *PostApi24DirectoriesBadRequest { + return &PostApi24DirectoriesBadRequest{} +} + +/*PostApi24DirectoriesBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24DirectoriesBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24DirectoriesBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/directories][%d] postApi24DirectoriesBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24DirectoriesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24DirectoriesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_responses.go b/cbs/internal/array/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_responses.go index 2163b09..048a872 100644 --- a/cbs/internal/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_exports/delete_api_24_directory_exports_responses.go @@ -7,9 +7,12 @@ package directory_exports import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24DirectoryExportsReader is a Reader for the DeleteAPI24DirectoryExports structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24DirectoryExportsReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewDeleteApi24DirectoryExportsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24DirectoryExportsOK) readResponse(response runtime.ClientResp return nil } + +// NewDeleteApi24DirectoryExportsBadRequest creates a DeleteApi24DirectoryExportsBadRequest with default headers values +func NewDeleteApi24DirectoryExportsBadRequest() *DeleteApi24DirectoryExportsBadRequest { + return &DeleteApi24DirectoryExportsBadRequest{} +} + +/*DeleteApi24DirectoryExportsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24DirectoryExportsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24DirectoryExportsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/directory-exports][%d] deleteApi24DirectoryExportsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24DirectoryExportsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24DirectoryExportsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_exports/directory_exports_client.go b/cbs/internal/array/faclient/2.4/client/directory_exports/directory_exports_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_exports/directory_exports_client.go rename to cbs/internal/array/faclient/2.4/client/directory_exports/directory_exports_client.go diff --git a/cbs/internal/faclient/2.4/client/directory_exports/get_api_24_directory_exports_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_exports/get_api_24_directory_exports_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_exports/get_api_24_directory_exports_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_exports/get_api_24_directory_exports_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directory_exports/get_api_24_directory_exports_responses.go b/cbs/internal/array/faclient/2.4/client/directory_exports/get_api_24_directory_exports_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_exports/get_api_24_directory_exports_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_exports/get_api_24_directory_exports_responses.go index 4e68335..9defd40 100644 --- a/cbs/internal/faclient/2.4/client/directory_exports/get_api_24_directory_exports_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_exports/get_api_24_directory_exports_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoryExportsReader is a Reader for the GetAPI24DirectoryExports structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoryExportsReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoryExportsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoryExportsOK) readResponse(response runtime.ClientRespons return nil } + +// NewGetApi24DirectoryExportsBadRequest creates a GetApi24DirectoryExportsBadRequest with default headers values +func NewGetApi24DirectoryExportsBadRequest() *GetApi24DirectoryExportsBadRequest { + return &GetApi24DirectoryExportsBadRequest{} +} + +/*GetApi24DirectoryExportsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoryExportsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoryExportsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directory-exports][%d] getApi24DirectoryExportsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoryExportsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoryExportsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_exports/post_api_24_directory_exports_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_exports/post_api_24_directory_exports_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directory_exports/post_api_24_directory_exports_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_exports/post_api_24_directory_exports_parameters.go index 7fad61f..15a0bb1 100644 --- a/cbs/internal/faclient/2.4/client/directory_exports/post_api_24_directory_exports_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directory_exports/post_api_24_directory_exports_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24DirectoryExportsParams creates a new PostAPI24DirectoryExportsParams object diff --git a/cbs/internal/faclient/2.4/client/directory_exports/post_api_24_directory_exports_responses.go b/cbs/internal/array/faclient/2.4/client/directory_exports/post_api_24_directory_exports_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_exports/post_api_24_directory_exports_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_exports/post_api_24_directory_exports_responses.go index 324b52b..083dc9e 100644 --- a/cbs/internal/faclient/2.4/client/directory_exports/post_api_24_directory_exports_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_exports/post_api_24_directory_exports_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24DirectoryExportsReader is a Reader for the PostAPI24DirectoryExports structure. @@ -29,6 +29,12 @@ func (o *PostAPI24DirectoryExportsReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewPostApi24DirectoryExportsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24DirectoryExportsOK) readResponse(response runtime.ClientRespon return nil } + +// NewPostApi24DirectoryExportsBadRequest creates a PostApi24DirectoryExportsBadRequest with default headers values +func NewPostApi24DirectoryExportsBadRequest() *PostApi24DirectoryExportsBadRequest { + return &PostApi24DirectoryExportsBadRequest{} +} + +/*PostApi24DirectoryExportsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24DirectoryExportsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24DirectoryExportsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/directory-exports][%d] postApi24DirectoryExportsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24DirectoryExportsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24DirectoryExportsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_services/directory_services_client.go b/cbs/internal/array/faclient/2.4/client/directory_services/directory_services_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_services/directory_services_client.go rename to cbs/internal/array/faclient/2.4/client/directory_services/directory_services_client.go diff --git a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_responses.go b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_responses.go index 8b1fcf9..101d688 100644 --- a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoryServicesReader is a Reader for the GetAPI24DirectoryServices structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoryServicesReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoryServicesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoryServicesOK) readResponse(response runtime.ClientRespon return nil } + +// NewGetApi24DirectoryServicesBadRequest creates a GetApi24DirectoryServicesBadRequest with default headers values +func NewGetApi24DirectoryServicesBadRequest() *GetApi24DirectoryServicesBadRequest { + return &GetApi24DirectoryServicesBadRequest{} +} + +/*GetApi24DirectoryServicesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoryServicesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoryServicesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directory-services][%d] getApi24DirectoryServicesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoryServicesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoryServicesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_responses.go b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_responses.go index d01f16f..46770eb 100644 --- a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_roles_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoryServicesRolesReader is a Reader for the GetAPI24DirectoryServicesRoles structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoryServicesRolesReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoryServicesRolesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoryServicesRolesOK) readResponse(response runtime.ClientR return nil } + +// NewGetApi24DirectoryServicesRolesBadRequest creates a GetApi24DirectoryServicesRolesBadRequest with default headers values +func NewGetApi24DirectoryServicesRolesBadRequest() *GetApi24DirectoryServicesRolesBadRequest { + return &GetApi24DirectoryServicesRolesBadRequest{} +} + +/*GetApi24DirectoryServicesRolesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoryServicesRolesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoryServicesRolesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directory-services/roles][%d] getApi24DirectoryServicesRolesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoryServicesRolesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoryServicesRolesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_responses.go index 9a1fe92..f7782ae 100644 --- a/cbs/internal/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_services/get_api_24_directory_services_test_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectoryServicesTestReader is a Reader for the GetAPI24DirectoryServicesTest structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectoryServicesTestReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24DirectoryServicesTestBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectoryServicesTestOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24DirectoryServicesTestBadRequest creates a GetApi24DirectoryServicesTestBadRequest with default headers values +func NewGetApi24DirectoryServicesTestBadRequest() *GetApi24DirectoryServicesTestBadRequest { + return &GetApi24DirectoryServicesTestBadRequest{} +} + +/*GetApi24DirectoryServicesTestBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectoryServicesTestBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectoryServicesTestBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directory-services/test][%d] getApi24DirectoryServicesTestBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectoryServicesTestBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectoryServicesTestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_parameters.go index 7ac43f7..2f4bf68 100644 --- a/cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24DirectoryServicesParams creates a new PatchAPI24DirectoryServicesParams object diff --git a/cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_responses.go b/cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_responses.go index f50c542..b30c8dc 100644 --- a/cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24DirectoryServicesReader is a Reader for the PatchAPI24DirectoryServices structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24DirectoryServicesReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewPatchApi24DirectoryServicesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24DirectoryServicesOK) readResponse(response runtime.ClientResp return nil } + +// NewPatchApi24DirectoryServicesBadRequest creates a PatchApi24DirectoryServicesBadRequest with default headers values +func NewPatchApi24DirectoryServicesBadRequest() *PatchApi24DirectoryServicesBadRequest { + return &PatchApi24DirectoryServicesBadRequest{} +} + +/*PatchApi24DirectoryServicesBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24DirectoryServicesBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24DirectoryServicesBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/directory-services][%d] patchApi24DirectoryServicesBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24DirectoryServicesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24DirectoryServicesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_parameters.go index f6bef65..8448075 100644 --- a/cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24DirectoryServicesRolesParams creates a new PatchAPI24DirectoryServicesRolesParams object diff --git a/cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_responses.go b/cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_responses.go index c081059..c116286 100644 --- a/cbs/internal/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_services/patch_api_24_directory_services_roles_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24DirectoryServicesRolesReader is a Reader for the PatchAPI24DirectoryServicesRoles structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24DirectoryServicesRolesReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewPatchApi24DirectoryServicesRolesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24DirectoryServicesRolesOK) readResponse(response runtime.Clien return nil } + +// NewPatchApi24DirectoryServicesRolesBadRequest creates a PatchApi24DirectoryServicesRolesBadRequest with default headers values +func NewPatchApi24DirectoryServicesRolesBadRequest() *PatchApi24DirectoryServicesRolesBadRequest { + return &PatchApi24DirectoryServicesRolesBadRequest{} +} + +/*PatchApi24DirectoryServicesRolesBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24DirectoryServicesRolesBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24DirectoryServicesRolesBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/directory-services/roles][%d] patchApi24DirectoryServicesRolesBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24DirectoryServicesRolesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24DirectoryServicesRolesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_responses.go index 3b6e383..347fc6c 100644 --- a/cbs/internal/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_snapshots/delete_api_24_directory_snapshots_responses.go @@ -7,9 +7,12 @@ package directory_snapshots import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24DirectorySnapshotsReader is a Reader for the DeleteAPI24DirectorySnapshots structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24DirectorySnapshotsReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewDeleteApi24DirectorySnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24DirectorySnapshotsOK) readResponse(response runtime.ClientRe return nil } + +// NewDeleteApi24DirectorySnapshotsBadRequest creates a DeleteApi24DirectorySnapshotsBadRequest with default headers values +func NewDeleteApi24DirectorySnapshotsBadRequest() *DeleteApi24DirectorySnapshotsBadRequest { + return &DeleteApi24DirectorySnapshotsBadRequest{} +} + +/*DeleteApi24DirectorySnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24DirectorySnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24DirectorySnapshotsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/directory-snapshots][%d] deleteApi24DirectorySnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24DirectorySnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24DirectorySnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/directory_snapshots_client.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/directory_snapshots_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_snapshots/directory_snapshots_client.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/directory_snapshots_client.go diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_responses.go index 9c0ffe3..4e6100b 100644 --- a/cbs/internal/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_snapshots/get_api_24_directory_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DirectorySnapshotsReader is a Reader for the GetAPI24DirectorySnapshots structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DirectorySnapshotsReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewGetApi24DirectorySnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DirectorySnapshotsOK) readResponse(response runtime.ClientRespo return nil } + +// NewGetApi24DirectorySnapshotsBadRequest creates a GetApi24DirectorySnapshotsBadRequest with default headers values +func NewGetApi24DirectorySnapshotsBadRequest() *GetApi24DirectorySnapshotsBadRequest { + return &GetApi24DirectorySnapshotsBadRequest{} +} + +/*GetApi24DirectorySnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DirectorySnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DirectorySnapshotsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/directory-snapshots][%d] getApi24DirectorySnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DirectorySnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DirectorySnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_parameters.go index 1168931..29bd880 100644 --- a/cbs/internal/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24DirectorySnapshotsParams creates a new PatchAPI24DirectorySnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_responses.go index 2e4088f..f3ef537 100644 --- a/cbs/internal/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_snapshots/patch_api_24_directory_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24DirectorySnapshotsReader is a Reader for the PatchAPI24DirectorySnapshots structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24DirectorySnapshotsReader) ReadResponse(response runtime.Clien return nil, err } return result, nil + case 400: + result := NewPatchApi24DirectorySnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24DirectorySnapshotsOK) readResponse(response runtime.ClientRes return nil } + +// NewPatchApi24DirectorySnapshotsBadRequest creates a PatchApi24DirectorySnapshotsBadRequest with default headers values +func NewPatchApi24DirectorySnapshotsBadRequest() *PatchApi24DirectorySnapshotsBadRequest { + return &PatchApi24DirectorySnapshotsBadRequest{} +} + +/*PatchApi24DirectorySnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24DirectorySnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24DirectorySnapshotsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/directory-snapshots][%d] patchApi24DirectorySnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24DirectorySnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24DirectorySnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_parameters.go index d8cc823..3207636 100644 --- a/cbs/internal/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24DirectorySnapshotsParams creates a new PostAPI24DirectorySnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_responses.go index d9e20a1..044c332 100644 --- a/cbs/internal/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/directory_snapshots/post_api_24_directory_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24DirectorySnapshotsReader is a Reader for the PostAPI24DirectorySnapshots structure. @@ -29,6 +29,12 @@ func (o *PostAPI24DirectorySnapshotsReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewPostApi24DirectorySnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24DirectorySnapshotsOK) readResponse(response runtime.ClientResp return nil } + +// NewPostApi24DirectorySnapshotsBadRequest creates a PostApi24DirectorySnapshotsBadRequest with default headers values +func NewPostApi24DirectorySnapshotsBadRequest() *PostApi24DirectorySnapshotsBadRequest { + return &PostApi24DirectorySnapshotsBadRequest{} +} + +/*PostApi24DirectorySnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24DirectorySnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24DirectorySnapshotsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/directory-snapshots][%d] postApi24DirectorySnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24DirectorySnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24DirectorySnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/dns/dns_client.go b/cbs/internal/array/faclient/2.4/client/dns/dns_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/dns/dns_client.go rename to cbs/internal/array/faclient/2.4/client/dns/dns_client.go diff --git a/cbs/internal/faclient/2.4/client/dns/get_api_24_dns_parameters.go b/cbs/internal/array/faclient/2.4/client/dns/get_api_24_dns_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/dns/get_api_24_dns_parameters.go rename to cbs/internal/array/faclient/2.4/client/dns/get_api_24_dns_parameters.go diff --git a/cbs/internal/faclient/2.4/client/dns/get_api_24_dns_responses.go b/cbs/internal/array/faclient/2.4/client/dns/get_api_24_dns_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/dns/get_api_24_dns_responses.go rename to cbs/internal/array/faclient/2.4/client/dns/get_api_24_dns_responses.go index 552223e..3889128 100644 --- a/cbs/internal/faclient/2.4/client/dns/get_api_24_dns_responses.go +++ b/cbs/internal/array/faclient/2.4/client/dns/get_api_24_dns_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DNSReader is a Reader for the GetAPI24DNS structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DNSReader) ReadResponse(response runtime.ClientResponse, consum return nil, err } return result, nil + case 400: + result := NewGetApi24DNSBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DNSOK) readResponse(response runtime.ClientResponse, consumer r return nil } + +// NewGetApi24DNSBadRequest creates a GetApi24DNSBadRequest with default headers values +func NewGetApi24DNSBadRequest() *GetApi24DNSBadRequest { + return &GetApi24DNSBadRequest{} +} + +/*GetApi24DNSBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DNSBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DNSBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/dns][%d] getApi24DnsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DNSBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DNSBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/dns/patch_api_24_dns_parameters.go b/cbs/internal/array/faclient/2.4/client/dns/patch_api_24_dns_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/dns/patch_api_24_dns_parameters.go rename to cbs/internal/array/faclient/2.4/client/dns/patch_api_24_dns_parameters.go index 181d1c7..97e28cf 100644 --- a/cbs/internal/faclient/2.4/client/dns/patch_api_24_dns_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/dns/patch_api_24_dns_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24DNSParams creates a new PatchAPI24DNSParams object diff --git a/cbs/internal/faclient/2.4/client/dns/patch_api_24_dns_responses.go b/cbs/internal/array/faclient/2.4/client/dns/patch_api_24_dns_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/dns/patch_api_24_dns_responses.go rename to cbs/internal/array/faclient/2.4/client/dns/patch_api_24_dns_responses.go index 18563d2..1de9a0c 100644 --- a/cbs/internal/faclient/2.4/client/dns/patch_api_24_dns_responses.go +++ b/cbs/internal/array/faclient/2.4/client/dns/patch_api_24_dns_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24DNSReader is a Reader for the PatchAPI24DNS structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24DNSReader) ReadResponse(response runtime.ClientResponse, cons return nil, err } return result, nil + case 400: + result := NewPatchApi24DNSBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24DNSOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewPatchApi24DNSBadRequest creates a PatchApi24DNSBadRequest with default headers values +func NewPatchApi24DNSBadRequest() *PatchApi24DNSBadRequest { + return &PatchApi24DNSBadRequest{} +} + +/*PatchApi24DNSBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24DNSBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24DNSBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/dns][%d] patchApi24DnsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24DNSBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24DNSBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/drives/drives_client.go b/cbs/internal/array/faclient/2.4/client/drives/drives_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/drives/drives_client.go rename to cbs/internal/array/faclient/2.4/client/drives/drives_client.go diff --git a/cbs/internal/faclient/2.4/client/drives/get_api_24_drives_parameters.go b/cbs/internal/array/faclient/2.4/client/drives/get_api_24_drives_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/drives/get_api_24_drives_parameters.go rename to cbs/internal/array/faclient/2.4/client/drives/get_api_24_drives_parameters.go diff --git a/cbs/internal/faclient/2.4/client/drives/get_api_24_drives_responses.go b/cbs/internal/array/faclient/2.4/client/drives/get_api_24_drives_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/drives/get_api_24_drives_responses.go rename to cbs/internal/array/faclient/2.4/client/drives/get_api_24_drives_responses.go index ce47ac1..8ec8494 100644 --- a/cbs/internal/faclient/2.4/client/drives/get_api_24_drives_responses.go +++ b/cbs/internal/array/faclient/2.4/client/drives/get_api_24_drives_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24DrivesReader is a Reader for the GetAPI24Drives structure. @@ -29,6 +29,12 @@ func (o *GetAPI24DrivesReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewGetApi24DrivesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24DrivesOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewGetApi24DrivesBadRequest creates a GetApi24DrivesBadRequest with default headers values +func NewGetApi24DrivesBadRequest() *GetApi24DrivesBadRequest { + return &GetApi24DrivesBadRequest{} +} + +/*GetApi24DrivesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24DrivesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24DrivesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/drives][%d] getApi24DrivesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24DrivesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24DrivesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/drives/patch_api_24_drives_parameters.go b/cbs/internal/array/faclient/2.4/client/drives/patch_api_24_drives_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/drives/patch_api_24_drives_parameters.go rename to cbs/internal/array/faclient/2.4/client/drives/patch_api_24_drives_parameters.go diff --git a/cbs/internal/faclient/2.4/client/drives/patch_api_24_drives_responses.go b/cbs/internal/array/faclient/2.4/client/drives/patch_api_24_drives_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/drives/patch_api_24_drives_responses.go rename to cbs/internal/array/faclient/2.4/client/drives/patch_api_24_drives_responses.go index 5d7ec10..a5a29c3 100644 --- a/cbs/internal/faclient/2.4/client/drives/patch_api_24_drives_responses.go +++ b/cbs/internal/array/faclient/2.4/client/drives/patch_api_24_drives_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24DrivesReader is a Reader for the PatchAPI24Drives structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24DrivesReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewPatchApi24DrivesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24DrivesOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewPatchApi24DrivesBadRequest creates a PatchApi24DrivesBadRequest with default headers values +func NewPatchApi24DrivesBadRequest() *PatchApi24DrivesBadRequest { + return &PatchApi24DrivesBadRequest{} +} + +/*PatchApi24DrivesBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24DrivesBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24DrivesBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/drives][%d] patchApi24DrivesBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24DrivesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24DrivesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/file_systems/delete_api_24_file_systems_parameters.go b/cbs/internal/array/faclient/2.4/client/file_systems/delete_api_24_file_systems_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/file_systems/delete_api_24_file_systems_parameters.go rename to cbs/internal/array/faclient/2.4/client/file_systems/delete_api_24_file_systems_parameters.go diff --git a/cbs/internal/faclient/2.4/client/file_systems/delete_api_24_file_systems_responses.go b/cbs/internal/array/faclient/2.4/client/file_systems/delete_api_24_file_systems_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/file_systems/delete_api_24_file_systems_responses.go rename to cbs/internal/array/faclient/2.4/client/file_systems/delete_api_24_file_systems_responses.go index 32035cd..3990026 100644 --- a/cbs/internal/faclient/2.4/client/file_systems/delete_api_24_file_systems_responses.go +++ b/cbs/internal/array/faclient/2.4/client/file_systems/delete_api_24_file_systems_responses.go @@ -7,9 +7,12 @@ package file_systems import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24FileSystemsReader is a Reader for the DeleteAPI24FileSystems structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24FileSystemsReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewDeleteApi24FileSystemsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24FileSystemsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24FileSystemsBadRequest creates a DeleteApi24FileSystemsBadRequest with default headers values +func NewDeleteApi24FileSystemsBadRequest() *DeleteApi24FileSystemsBadRequest { + return &DeleteApi24FileSystemsBadRequest{} +} + +/*DeleteApi24FileSystemsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24FileSystemsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24FileSystemsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/file-systems][%d] deleteApi24FileSystemsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24FileSystemsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24FileSystemsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/file_systems/file_systems_client.go b/cbs/internal/array/faclient/2.4/client/file_systems/file_systems_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/file_systems/file_systems_client.go rename to cbs/internal/array/faclient/2.4/client/file_systems/file_systems_client.go diff --git a/cbs/internal/faclient/2.4/client/file_systems/get_api_24_file_systems_parameters.go b/cbs/internal/array/faclient/2.4/client/file_systems/get_api_24_file_systems_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/file_systems/get_api_24_file_systems_parameters.go rename to cbs/internal/array/faclient/2.4/client/file_systems/get_api_24_file_systems_parameters.go diff --git a/cbs/internal/faclient/2.4/client/file_systems/get_api_24_file_systems_responses.go b/cbs/internal/array/faclient/2.4/client/file_systems/get_api_24_file_systems_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/file_systems/get_api_24_file_systems_responses.go rename to cbs/internal/array/faclient/2.4/client/file_systems/get_api_24_file_systems_responses.go index 72dd273..7ce67d9 100644 --- a/cbs/internal/faclient/2.4/client/file_systems/get_api_24_file_systems_responses.go +++ b/cbs/internal/array/faclient/2.4/client/file_systems/get_api_24_file_systems_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24FileSystemsReader is a Reader for the GetAPI24FileSystems structure. @@ -29,6 +29,12 @@ func (o *GetAPI24FileSystemsReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24FileSystemsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24FileSystemsOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24FileSystemsBadRequest creates a GetApi24FileSystemsBadRequest with default headers values +func NewGetApi24FileSystemsBadRequest() *GetApi24FileSystemsBadRequest { + return &GetApi24FileSystemsBadRequest{} +} + +/*GetApi24FileSystemsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24FileSystemsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24FileSystemsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/file-systems][%d] getApi24FileSystemsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24FileSystemsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24FileSystemsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/file_systems/patch_api_24_file_systems_parameters.go b/cbs/internal/array/faclient/2.4/client/file_systems/patch_api_24_file_systems_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/file_systems/patch_api_24_file_systems_parameters.go rename to cbs/internal/array/faclient/2.4/client/file_systems/patch_api_24_file_systems_parameters.go index 19e50b6..c6192c2 100644 --- a/cbs/internal/faclient/2.4/client/file_systems/patch_api_24_file_systems_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/file_systems/patch_api_24_file_systems_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24FileSystemsParams creates a new PatchAPI24FileSystemsParams object diff --git a/cbs/internal/faclient/2.4/client/file_systems/patch_api_24_file_systems_responses.go b/cbs/internal/array/faclient/2.4/client/file_systems/patch_api_24_file_systems_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/file_systems/patch_api_24_file_systems_responses.go rename to cbs/internal/array/faclient/2.4/client/file_systems/patch_api_24_file_systems_responses.go index 38eae7b..9788053 100644 --- a/cbs/internal/faclient/2.4/client/file_systems/patch_api_24_file_systems_responses.go +++ b/cbs/internal/array/faclient/2.4/client/file_systems/patch_api_24_file_systems_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24FileSystemsReader is a Reader for the PatchAPI24FileSystems structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24FileSystemsReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewPatchApi24FileSystemsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24FileSystemsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPatchApi24FileSystemsBadRequest creates a PatchApi24FileSystemsBadRequest with default headers values +func NewPatchApi24FileSystemsBadRequest() *PatchApi24FileSystemsBadRequest { + return &PatchApi24FileSystemsBadRequest{} +} + +/*PatchApi24FileSystemsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24FileSystemsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24FileSystemsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/file-systems][%d] patchApi24FileSystemsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24FileSystemsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24FileSystemsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/file_systems/post_api_24_file_systems_parameters.go b/cbs/internal/array/faclient/2.4/client/file_systems/post_api_24_file_systems_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/file_systems/post_api_24_file_systems_parameters.go rename to cbs/internal/array/faclient/2.4/client/file_systems/post_api_24_file_systems_parameters.go diff --git a/cbs/internal/faclient/2.4/client/file_systems/post_api_24_file_systems_responses.go b/cbs/internal/array/faclient/2.4/client/file_systems/post_api_24_file_systems_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/file_systems/post_api_24_file_systems_responses.go rename to cbs/internal/array/faclient/2.4/client/file_systems/post_api_24_file_systems_responses.go index 05d4dc7..4411524 100644 --- a/cbs/internal/faclient/2.4/client/file_systems/post_api_24_file_systems_responses.go +++ b/cbs/internal/array/faclient/2.4/client/file_systems/post_api_24_file_systems_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24FileSystemsReader is a Reader for the PostAPI24FileSystems structure. @@ -29,6 +29,12 @@ func (o *PostAPI24FileSystemsReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPostApi24FileSystemsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24FileSystemsOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPostApi24FileSystemsBadRequest creates a PostApi24FileSystemsBadRequest with default headers values +func NewPostApi24FileSystemsBadRequest() *PostApi24FileSystemsBadRequest { + return &PostApi24FileSystemsBadRequest{} +} + +/*PostApi24FileSystemsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24FileSystemsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24FileSystemsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/file-systems][%d] postApi24FileSystemsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24FileSystemsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24FileSystemsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/flasharray_client.go b/cbs/internal/array/faclient/2.4/client/flasharray_client.go similarity index 83% rename from cbs/internal/faclient/2.4/client/flasharray_client.go rename to cbs/internal/array/faclient/2.4/client/flasharray_client.go index c0dadc1..dade7c9 100644 --- a/cbs/internal/faclient/2.4/client/flasharray_client.go +++ b/cbs/internal/array/faclient/2.4/client/flasharray_client.go @@ -10,55 +10,55 @@ import ( httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/active_directory" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/administrators" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/alert_watchers" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/alerts" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/api_clients" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/apps" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/array_connections" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/arrays" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/audits" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/authorization" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/certificates" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/connections" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/controllers" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/directories" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/directory_exports" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/directory_services" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/directory_snapshots" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/dns" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/drives" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/file_systems" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/hardware" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/host_groups" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/hosts" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/kmip" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/maintenance_windows" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/network_interfaces" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/offloads" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/pod_replica_links" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/pods" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/policies" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/ports" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/protection_group_snapshots" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/protection_groups" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/remote_pods" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/remote_protection_groups" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/remote_volume_snapshots" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/sessions" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/smi_s" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/smtp" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/snmp_agents" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/snmp_managers" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/software" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/subnets" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/support" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/syslog" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/volume_groups" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/volume_snapshots" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/volumes" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/active_directory" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/administrators" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/alert_watchers" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/alerts" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/api_clients" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/apps" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/array_connections" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/arrays" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/audits" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/authorization" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/certificates" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/connections" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/controllers" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/directories" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/directory_exports" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/directory_services" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/directory_snapshots" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/dns" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/drives" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/file_systems" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/hardware" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/host_groups" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/hosts" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/kmip" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/maintenance_windows" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/network_interfaces" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/offloads" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/pod_replica_links" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/pods" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/policies" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/ports" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/protection_group_snapshots" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/protection_groups" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/remote_pods" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/remote_protection_groups" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/sessions" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/smi_s" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/smtp" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/snmp_agents" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/snmp_managers" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/software" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/subnets" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/support" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/syslog" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/volume_groups" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/volume_snapshots" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client/volumes" ) // Default flasharray HTTP client. diff --git a/cbs/internal/faclient/2.4/client/hardware/get_api_24_hardware_parameters.go b/cbs/internal/array/faclient/2.4/client/hardware/get_api_24_hardware_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hardware/get_api_24_hardware_parameters.go rename to cbs/internal/array/faclient/2.4/client/hardware/get_api_24_hardware_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hardware/get_api_24_hardware_responses.go b/cbs/internal/array/faclient/2.4/client/hardware/get_api_24_hardware_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hardware/get_api_24_hardware_responses.go rename to cbs/internal/array/faclient/2.4/client/hardware/get_api_24_hardware_responses.go index 65de86b..1624a91 100644 --- a/cbs/internal/faclient/2.4/client/hardware/get_api_24_hardware_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hardware/get_api_24_hardware_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HardwareReader is a Reader for the GetAPI24Hardware structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HardwareReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewGetApi24HardwareBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HardwareOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewGetApi24HardwareBadRequest creates a GetApi24HardwareBadRequest with default headers values +func NewGetApi24HardwareBadRequest() *GetApi24HardwareBadRequest { + return &GetApi24HardwareBadRequest{} +} + +/*GetApi24HardwareBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HardwareBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HardwareBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/hardware][%d] getApi24HardwareBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HardwareBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HardwareBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hardware/hardware_client.go b/cbs/internal/array/faclient/2.4/client/hardware/hardware_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hardware/hardware_client.go rename to cbs/internal/array/faclient/2.4/client/hardware/hardware_client.go diff --git a/cbs/internal/faclient/2.4/client/hardware/patch_api_24_hardware_parameters.go b/cbs/internal/array/faclient/2.4/client/hardware/patch_api_24_hardware_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/hardware/patch_api_24_hardware_parameters.go rename to cbs/internal/array/faclient/2.4/client/hardware/patch_api_24_hardware_parameters.go index 8b9e6b9..4030334 100644 --- a/cbs/internal/faclient/2.4/client/hardware/patch_api_24_hardware_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/hardware/patch_api_24_hardware_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24HardwareParams creates a new PatchAPI24HardwareParams object diff --git a/cbs/internal/faclient/2.4/client/hardware/patch_api_24_hardware_responses.go b/cbs/internal/array/faclient/2.4/client/hardware/patch_api_24_hardware_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hardware/patch_api_24_hardware_responses.go rename to cbs/internal/array/faclient/2.4/client/hardware/patch_api_24_hardware_responses.go index cd7fc40..dba336f 100644 --- a/cbs/internal/faclient/2.4/client/hardware/patch_api_24_hardware_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hardware/patch_api_24_hardware_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24HardwareReader is a Reader for the PatchAPI24Hardware structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24HardwareReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewPatchApi24HardwareBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24HardwareOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewPatchApi24HardwareBadRequest creates a PatchApi24HardwareBadRequest with default headers values +func NewPatchApi24HardwareBadRequest() *PatchApi24HardwareBadRequest { + return &PatchApi24HardwareBadRequest{} +} + +/*PatchApi24HardwareBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24HardwareBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24HardwareBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/hardware][%d] patchApi24HardwareBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24HardwareBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24HardwareBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_responses.go index b94bd69..ff61059 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_hosts_responses.go @@ -7,9 +7,12 @@ package host_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24HostGroupsHostsReader is a Reader for the DeleteAPI24HostGroupsHosts structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24HostGroupsHostsReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewDeleteApi24HostGroupsHostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24HostGroupsHostsOK) readResponse(response runtime.ClientRespo return nil } + +// NewDeleteApi24HostGroupsHostsBadRequest creates a DeleteApi24HostGroupsHostsBadRequest with default headers values +func NewDeleteApi24HostGroupsHostsBadRequest() *DeleteApi24HostGroupsHostsBadRequest { + return &DeleteApi24HostGroupsHostsBadRequest{} +} + +/*DeleteApi24HostGroupsHostsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24HostGroupsHostsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24HostGroupsHostsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/host-groups/hosts][%d] deleteApi24HostGroupsHostsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24HostGroupsHostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24HostGroupsHostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_responses.go index d61d256..3591038 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_protection_groups_responses.go @@ -7,9 +7,12 @@ package host_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24HostGroupsProtectionGroupsReader is a Reader for the DeleteAPI24HostGroupsProtectionGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24HostGroupsProtectionGroupsReader) ReadResponse(response runt return nil, err } return result, nil + case 400: + result := NewDeleteApi24HostGroupsProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24HostGroupsProtectionGroupsOK) readResponse(response runtime. return nil } + +// NewDeleteApi24HostGroupsProtectionGroupsBadRequest creates a DeleteApi24HostGroupsProtectionGroupsBadRequest with default headers values +func NewDeleteApi24HostGroupsProtectionGroupsBadRequest() *DeleteApi24HostGroupsProtectionGroupsBadRequest { + return &DeleteApi24HostGroupsProtectionGroupsBadRequest{} +} + +/*DeleteApi24HostGroupsProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24HostGroupsProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24HostGroupsProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/host-groups/protection-groups][%d] deleteApi24HostGroupsProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24HostGroupsProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24HostGroupsProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_responses.go index 4fa8be8..5b27517 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/delete_api_24_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/delete_api_24_host_groups_responses.go @@ -7,9 +7,12 @@ package host_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24HostGroupsReader is a Reader for the DeleteAPI24HostGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24HostGroupsReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewDeleteApi24HostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24HostGroupsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24HostGroupsBadRequest creates a DeleteApi24HostGroupsBadRequest with default headers values +func NewDeleteApi24HostGroupsBadRequest() *DeleteApi24HostGroupsBadRequest { + return &DeleteApi24HostGroupsBadRequest{} +} + +/*DeleteApi24HostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24HostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24HostGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/host-groups][%d] deleteApi24HostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24HostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24HostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_responses.go index eec6d74..df98158 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_hosts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostGroupsHostsReader is a Reader for the GetAPI24HostGroupsHosts structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostGroupsHostsReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24HostGroupsHostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostGroupsHostsOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24HostGroupsHostsBadRequest creates a GetApi24HostGroupsHostsBadRequest with default headers values +func NewGetApi24HostGroupsHostsBadRequest() *GetApi24HostGroupsHostsBadRequest { + return &GetApi24HostGroupsHostsBadRequest{} +} + +/*GetApi24HostGroupsHostsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostGroupsHostsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostGroupsHostsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/host-groups/hosts][%d] getApi24HostGroupsHostsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostGroupsHostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostGroupsHostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_responses.go index dde8054..f2c1f23 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_by_array_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostGroupsPerformanceByArrayReader is a Reader for the GetAPI24HostGroupsPerformanceByArray structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostGroupsPerformanceByArrayReader) ReadResponse(response runti return nil, err } return result, nil + case 400: + result := NewGetApi24HostGroupsPerformanceByArrayBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostGroupsPerformanceByArrayOK) readResponse(response runtime.C return nil } + +// NewGetApi24HostGroupsPerformanceByArrayBadRequest creates a GetApi24HostGroupsPerformanceByArrayBadRequest with default headers values +func NewGetApi24HostGroupsPerformanceByArrayBadRequest() *GetApi24HostGroupsPerformanceByArrayBadRequest { + return &GetApi24HostGroupsPerformanceByArrayBadRequest{} +} + +/*GetApi24HostGroupsPerformanceByArrayBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostGroupsPerformanceByArrayBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostGroupsPerformanceByArrayBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/host-groups/performance/by-array][%d] getApi24HostGroupsPerformanceByArrayBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostGroupsPerformanceByArrayBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostGroupsPerformanceByArrayBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_responses.go index c23d4c7..f0cf1ca 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_performance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostGroupsPerformanceReader is a Reader for the GetAPI24HostGroupsPerformance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostGroupsPerformanceReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24HostGroupsPerformanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostGroupsPerformanceOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24HostGroupsPerformanceBadRequest creates a GetApi24HostGroupsPerformanceBadRequest with default headers values +func NewGetApi24HostGroupsPerformanceBadRequest() *GetApi24HostGroupsPerformanceBadRequest { + return &GetApi24HostGroupsPerformanceBadRequest{} +} + +/*GetApi24HostGroupsPerformanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostGroupsPerformanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostGroupsPerformanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/host-groups/performance][%d] getApi24HostGroupsPerformanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostGroupsPerformanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostGroupsPerformanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_responses.go index 56bec01..e4b0909 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostGroupsProtectionGroupsReader is a Reader for the GetAPI24HostGroupsProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostGroupsProtectionGroupsReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewGetApi24HostGroupsProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostGroupsProtectionGroupsOK) readResponse(response runtime.Cli return nil } + +// NewGetApi24HostGroupsProtectionGroupsBadRequest creates a GetApi24HostGroupsProtectionGroupsBadRequest with default headers values +func NewGetApi24HostGroupsProtectionGroupsBadRequest() *GetApi24HostGroupsProtectionGroupsBadRequest { + return &GetApi24HostGroupsProtectionGroupsBadRequest{} +} + +/*GetApi24HostGroupsProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostGroupsProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostGroupsProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/host-groups/protection-groups][%d] getApi24HostGroupsProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostGroupsProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostGroupsProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_responses.go index a5acb5f..ebd2ebf 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostGroupsReader is a Reader for the GetAPI24HostGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostGroupsReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24HostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostGroupsOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewGetApi24HostGroupsBadRequest creates a GetApi24HostGroupsBadRequest with default headers values +func NewGetApi24HostGroupsBadRequest() *GetApi24HostGroupsBadRequest { + return &GetApi24HostGroupsBadRequest{} +} + +/*GetApi24HostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/host-groups][%d] getApi24HostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_space_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_space_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_space_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_space_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_space_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_space_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_space_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_space_responses.go index ab96f0e..ae02f05 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/get_api_24_host_groups_space_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/get_api_24_host_groups_space_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostGroupsSpaceReader is a Reader for the GetAPI24HostGroupsSpace structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostGroupsSpaceReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24HostGroupsSpaceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostGroupsSpaceOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24HostGroupsSpaceBadRequest creates a GetApi24HostGroupsSpaceBadRequest with default headers values +func NewGetApi24HostGroupsSpaceBadRequest() *GetApi24HostGroupsSpaceBadRequest { + return &GetApi24HostGroupsSpaceBadRequest{} +} + +/*GetApi24HostGroupsSpaceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostGroupsSpaceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostGroupsSpaceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/host-groups/space][%d] getApi24HostGroupsSpaceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostGroupsSpaceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostGroupsSpaceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/host_groups_client.go b/cbs/internal/array/faclient/2.4/client/host_groups/host_groups_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/host_groups_client.go rename to cbs/internal/array/faclient/2.4/client/host_groups/host_groups_client.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/patch_api_24_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/patch_api_24_host_groups_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/host_groups/patch_api_24_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/patch_api_24_host_groups_parameters.go index 2c4df06..9421594 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/patch_api_24_host_groups_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/patch_api_24_host_groups_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24HostGroupsParams creates a new PatchAPI24HostGroupsParams object diff --git a/cbs/internal/faclient/2.4/client/host_groups/patch_api_24_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/patch_api_24_host_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/patch_api_24_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/patch_api_24_host_groups_responses.go index 0211ebc..9ffc2de 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/patch_api_24_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/patch_api_24_host_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24HostGroupsReader is a Reader for the PatchAPI24HostGroups structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24HostGroupsReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPatchApi24HostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24HostGroupsOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPatchApi24HostGroupsBadRequest creates a PatchApi24HostGroupsBadRequest with default headers values +func NewPatchApi24HostGroupsBadRequest() *PatchApi24HostGroupsBadRequest { + return &PatchApi24HostGroupsBadRequest{} +} + +/*PatchApi24HostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24HostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24HostGroupsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/host-groups][%d] patchApi24HostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24HostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24HostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_responses.go index 70d1c2e..02b1ce7 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_hosts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24HostGroupsHostsReader is a Reader for the PostAPI24HostGroupsHosts structure. @@ -29,6 +29,12 @@ func (o *PostAPI24HostGroupsHostsReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewPostApi24HostGroupsHostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24HostGroupsHostsOK) readResponse(response runtime.ClientRespons return nil } + +// NewPostApi24HostGroupsHostsBadRequest creates a PostApi24HostGroupsHostsBadRequest with default headers values +func NewPostApi24HostGroupsHostsBadRequest() *PostApi24HostGroupsHostsBadRequest { + return &PostApi24HostGroupsHostsBadRequest{} +} + +/*PostApi24HostGroupsHostsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24HostGroupsHostsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24HostGroupsHostsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/host-groups/hosts][%d] postApi24HostGroupsHostsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24HostGroupsHostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24HostGroupsHostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_responses.go index 5a97391..557e391 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24HostGroupsProtectionGroupsReader is a Reader for the PostAPI24HostGroupsProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *PostAPI24HostGroupsProtectionGroupsReader) ReadResponse(response runtim return nil, err } return result, nil + case 400: + result := NewPostApi24HostGroupsProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24HostGroupsProtectionGroupsOK) readResponse(response runtime.Cl return nil } + +// NewPostApi24HostGroupsProtectionGroupsBadRequest creates a PostApi24HostGroupsProtectionGroupsBadRequest with default headers values +func NewPostApi24HostGroupsProtectionGroupsBadRequest() *PostApi24HostGroupsProtectionGroupsBadRequest { + return &PostApi24HostGroupsProtectionGroupsBadRequest{} +} + +/*PostApi24HostGroupsProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24HostGroupsProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24HostGroupsProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/host-groups/protection-groups][%d] postApi24HostGroupsProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24HostGroupsProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24HostGroupsProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_responses.go index 0223d42..d8c7f36 100644 --- a/cbs/internal/faclient/2.4/client/host_groups/post_api_24_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/host_groups/post_api_24_host_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24HostGroupsReader is a Reader for the PostAPI24HostGroups structure. @@ -29,6 +29,12 @@ func (o *PostAPI24HostGroupsReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewPostApi24HostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24HostGroupsOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewPostApi24HostGroupsBadRequest creates a PostApi24HostGroupsBadRequest with default headers values +func NewPostApi24HostGroupsBadRequest() *PostApi24HostGroupsBadRequest { + return &PostApi24HostGroupsBadRequest{} +} + +/*PostApi24HostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24HostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24HostGroupsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/host-groups][%d] postApi24HostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24HostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24HostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_responses.go index 5f52dfc..d6cd4c6 100644 --- a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_host_groups_responses.go @@ -7,9 +7,12 @@ package hosts import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24HostsHostGroupsReader is a Reader for the DeleteAPI24HostsHostGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24HostsHostGroupsReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewDeleteApi24HostsHostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24HostsHostGroupsOK) readResponse(response runtime.ClientRespo return nil } + +// NewDeleteApi24HostsHostGroupsBadRequest creates a DeleteApi24HostsHostGroupsBadRequest with default headers values +func NewDeleteApi24HostsHostGroupsBadRequest() *DeleteApi24HostsHostGroupsBadRequest { + return &DeleteApi24HostsHostGroupsBadRequest{} +} + +/*DeleteApi24HostsHostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24HostsHostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24HostsHostGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/hosts/host-groups][%d] deleteApi24HostsHostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24HostsHostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24HostsHostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_responses.go index f835247..05c0aff 100644 --- a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_protection_groups_responses.go @@ -7,9 +7,12 @@ package hosts import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24HostsProtectionGroupsReader is a Reader for the DeleteAPI24HostsProtectionGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24HostsProtectionGroupsReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewDeleteApi24HostsProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24HostsProtectionGroupsOK) readResponse(response runtime.Clien return nil } + +// NewDeleteApi24HostsProtectionGroupsBadRequest creates a DeleteApi24HostsProtectionGroupsBadRequest with default headers values +func NewDeleteApi24HostsProtectionGroupsBadRequest() *DeleteApi24HostsProtectionGroupsBadRequest { + return &DeleteApi24HostsProtectionGroupsBadRequest{} +} + +/*DeleteApi24HostsProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24HostsProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24HostsProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/hosts/protection-groups][%d] deleteApi24HostsProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24HostsProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24HostsProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_responses.go index 55c0f95..c6c1fe8 100644 --- a/cbs/internal/faclient/2.4/client/hosts/delete_api_24_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/delete_api_24_hosts_responses.go @@ -7,9 +7,12 @@ package hosts import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24HostsReader is a Reader for the DeleteAPI24Hosts structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24HostsReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewDeleteApi24HostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24HostsOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewDeleteApi24HostsBadRequest creates a DeleteApi24HostsBadRequest with default headers values +func NewDeleteApi24HostsBadRequest() *DeleteApi24HostsBadRequest { + return &DeleteApi24HostsBadRequest{} +} + +/*DeleteApi24HostsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24HostsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24HostsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/hosts][%d] deleteApi24HostsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24HostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24HostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_responses.go index b78dfdc..6485faf 100644 --- a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_host_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostsHostGroupsReader is a Reader for the GetAPI24HostsHostGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostsHostGroupsReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24HostsHostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostsHostGroupsOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24HostsHostGroupsBadRequest creates a GetApi24HostsHostGroupsBadRequest with default headers values +func NewGetApi24HostsHostGroupsBadRequest() *GetApi24HostsHostGroupsBadRequest { + return &GetApi24HostsHostGroupsBadRequest{} +} + +/*GetApi24HostsHostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostsHostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostsHostGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/hosts/host-groups][%d] getApi24HostsHostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostsHostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostsHostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_responses.go index e67e091..4516aca 100644 --- a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_balance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostsPerformanceBalanceReader is a Reader for the GetAPI24HostsPerformanceBalance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostsPerformanceBalanceReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24HostsPerformanceBalanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostsPerformanceBalanceOK) readResponse(response runtime.Client return nil } + +// NewGetApi24HostsPerformanceBalanceBadRequest creates a GetApi24HostsPerformanceBalanceBadRequest with default headers values +func NewGetApi24HostsPerformanceBalanceBadRequest() *GetApi24HostsPerformanceBalanceBadRequest { + return &GetApi24HostsPerformanceBalanceBadRequest{} +} + +/*GetApi24HostsPerformanceBalanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostsPerformanceBalanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostsPerformanceBalanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/hosts/performance/balance][%d] getApi24HostsPerformanceBalanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostsPerformanceBalanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostsPerformanceBalanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_responses.go index 2645e45..cc92056 100644 --- a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_by_array_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostsPerformanceByArrayReader is a Reader for the GetAPI24HostsPerformanceByArray structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostsPerformanceByArrayReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24HostsPerformanceByArrayBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostsPerformanceByArrayOK) readResponse(response runtime.Client return nil } + +// NewGetApi24HostsPerformanceByArrayBadRequest creates a GetApi24HostsPerformanceByArrayBadRequest with default headers values +func NewGetApi24HostsPerformanceByArrayBadRequest() *GetApi24HostsPerformanceByArrayBadRequest { + return &GetApi24HostsPerformanceByArrayBadRequest{} +} + +/*GetApi24HostsPerformanceByArrayBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostsPerformanceByArrayBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostsPerformanceByArrayBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/hosts/performance/by-array][%d] getApi24HostsPerformanceByArrayBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostsPerformanceByArrayBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostsPerformanceByArrayBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_responses.go index 9c18f5f..580a4d7 100644 --- a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_performance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_performance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostsPerformanceReader is a Reader for the GetAPI24HostsPerformance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostsPerformanceReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewGetApi24HostsPerformanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostsPerformanceOK) readResponse(response runtime.ClientRespons return nil } + +// NewGetApi24HostsPerformanceBadRequest creates a GetApi24HostsPerformanceBadRequest with default headers values +func NewGetApi24HostsPerformanceBadRequest() *GetApi24HostsPerformanceBadRequest { + return &GetApi24HostsPerformanceBadRequest{} +} + +/*GetApi24HostsPerformanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostsPerformanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostsPerformanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/hosts/performance][%d] getApi24HostsPerformanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostsPerformanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostsPerformanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_responses.go index e41ad4f..9256b6a 100644 --- a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostsProtectionGroupsReader is a Reader for the GetAPI24HostsProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostsProtectionGroupsReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24HostsProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostsProtectionGroupsOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24HostsProtectionGroupsBadRequest creates a GetApi24HostsProtectionGroupsBadRequest with default headers values +func NewGetApi24HostsProtectionGroupsBadRequest() *GetApi24HostsProtectionGroupsBadRequest { + return &GetApi24HostsProtectionGroupsBadRequest{} +} + +/*GetApi24HostsProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostsProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostsProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/hosts/protection-groups][%d] getApi24HostsProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostsProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostsProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_responses.go index eee1373..092758c 100644 --- a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostsReader is a Reader for the GetAPI24Hosts structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostsReader) ReadResponse(response runtime.ClientResponse, cons return nil, err } return result, nil + case 400: + result := NewGetApi24HostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostsOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewGetApi24HostsBadRequest creates a GetApi24HostsBadRequest with default headers values +func NewGetApi24HostsBadRequest() *GetApi24HostsBadRequest { + return &GetApi24HostsBadRequest{} +} + +/*GetApi24HostsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/hosts][%d] getApi24HostsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_space_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_space_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_space_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_space_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_space_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_space_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_space_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_space_responses.go index a66072e..6e2b0cc 100644 --- a/cbs/internal/faclient/2.4/client/hosts/get_api_24_hosts_space_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/get_api_24_hosts_space_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24HostsSpaceReader is a Reader for the GetAPI24HostsSpace structure. @@ -29,6 +29,12 @@ func (o *GetAPI24HostsSpaceReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24HostsSpaceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24HostsSpaceOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewGetApi24HostsSpaceBadRequest creates a GetApi24HostsSpaceBadRequest with default headers values +func NewGetApi24HostsSpaceBadRequest() *GetApi24HostsSpaceBadRequest { + return &GetApi24HostsSpaceBadRequest{} +} + +/*GetApi24HostsSpaceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24HostsSpaceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24HostsSpaceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/hosts/space][%d] getApi24HostsSpaceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24HostsSpaceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24HostsSpaceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/hosts_client.go b/cbs/internal/array/faclient/2.4/client/hosts/hosts_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/hosts_client.go rename to cbs/internal/array/faclient/2.4/client/hosts/hosts_client.go diff --git a/cbs/internal/faclient/2.4/client/hosts/patch_api_24_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/patch_api_24_hosts_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/hosts/patch_api_24_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/patch_api_24_hosts_parameters.go index b7a3841..bc13ff0 100644 --- a/cbs/internal/faclient/2.4/client/hosts/patch_api_24_hosts_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/patch_api_24_hosts_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24HostsParams creates a new PatchAPI24HostsParams object diff --git a/cbs/internal/faclient/2.4/client/hosts/patch_api_24_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/patch_api_24_hosts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/patch_api_24_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/patch_api_24_hosts_responses.go index 02cf0a0..d29b3e0 100644 --- a/cbs/internal/faclient/2.4/client/hosts/patch_api_24_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/patch_api_24_hosts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24HostsReader is a Reader for the PatchAPI24Hosts structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24HostsReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return result, nil + case 400: + result := NewPatchApi24HostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24HostsOK) readResponse(response runtime.ClientResponse, consum return nil } + +// NewPatchApi24HostsBadRequest creates a PatchApi24HostsBadRequest with default headers values +func NewPatchApi24HostsBadRequest() *PatchApi24HostsBadRequest { + return &PatchApi24HostsBadRequest{} +} + +/*PatchApi24HostsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24HostsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24HostsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/hosts][%d] patchApi24HostsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24HostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24HostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_responses.go index a67b1b2..edf8070 100644 --- a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_host_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24HostsHostGroupsReader is a Reader for the PostAPI24HostsHostGroups structure. @@ -29,6 +29,12 @@ func (o *PostAPI24HostsHostGroupsReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewPostApi24HostsHostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24HostsHostGroupsOK) readResponse(response runtime.ClientRespons return nil } + +// NewPostApi24HostsHostGroupsBadRequest creates a PostApi24HostsHostGroupsBadRequest with default headers values +func NewPostApi24HostsHostGroupsBadRequest() *PostApi24HostsHostGroupsBadRequest { + return &PostApi24HostsHostGroupsBadRequest{} +} + +/*PostApi24HostsHostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24HostsHostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24HostsHostGroupsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/hosts/host-groups][%d] postApi24HostsHostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24HostsHostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24HostsHostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_parameters.go index 26926da..71bb296 100644 --- a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24HostsParams creates a new PostAPI24HostsParams object diff --git a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_responses.go index bf44bc6..00808ab 100644 --- a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24HostsProtectionGroupsReader is a Reader for the PostAPI24HostsProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *PostAPI24HostsProtectionGroupsReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewPostApi24HostsProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24HostsProtectionGroupsOK) readResponse(response runtime.ClientR return nil } + +// NewPostApi24HostsProtectionGroupsBadRequest creates a PostApi24HostsProtectionGroupsBadRequest with default headers values +func NewPostApi24HostsProtectionGroupsBadRequest() *PostApi24HostsProtectionGroupsBadRequest { + return &PostApi24HostsProtectionGroupsBadRequest{} +} + +/*PostApi24HostsProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24HostsProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24HostsProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/hosts/protection-groups][%d] postApi24HostsProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24HostsProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24HostsProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_responses.go index 9239f50..c71de7f 100644 --- a/cbs/internal/faclient/2.4/client/hosts/post_api_24_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/hosts/post_api_24_hosts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24HostsReader is a Reader for the PostAPI24Hosts structure. @@ -29,6 +29,12 @@ func (o *PostAPI24HostsReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewPostApi24HostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24HostsOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewPostApi24HostsBadRequest creates a PostApi24HostsBadRequest with default headers values +func NewPostApi24HostsBadRequest() *PostApi24HostsBadRequest { + return &PostApi24HostsBadRequest{} +} + +/*PostApi24HostsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24HostsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24HostsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/hosts][%d] postApi24HostsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24HostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24HostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/kmip/delete_api_24_kmip_parameters.go b/cbs/internal/array/faclient/2.4/client/kmip/delete_api_24_kmip_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/kmip/delete_api_24_kmip_parameters.go rename to cbs/internal/array/faclient/2.4/client/kmip/delete_api_24_kmip_parameters.go diff --git a/cbs/internal/faclient/2.4/client/kmip/delete_api_24_kmip_responses.go b/cbs/internal/array/faclient/2.4/client/kmip/delete_api_24_kmip_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/kmip/delete_api_24_kmip_responses.go rename to cbs/internal/array/faclient/2.4/client/kmip/delete_api_24_kmip_responses.go index 2a631bc..088d070 100644 --- a/cbs/internal/faclient/2.4/client/kmip/delete_api_24_kmip_responses.go +++ b/cbs/internal/array/faclient/2.4/client/kmip/delete_api_24_kmip_responses.go @@ -7,9 +7,12 @@ package kmip import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24KMIPReader is a Reader for the DeleteAPI24KMIP structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24KMIPReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return result, nil + case 400: + result := NewDeleteApi24KMIPBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24KMIPOK) readResponse(response runtime.ClientResponse, consum return nil } + +// NewDeleteApi24KMIPBadRequest creates a DeleteApi24KMIPBadRequest with default headers values +func NewDeleteApi24KMIPBadRequest() *DeleteApi24KMIPBadRequest { + return &DeleteApi24KMIPBadRequest{} +} + +/*DeleteApi24KMIPBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24KMIPBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24KMIPBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/kmip][%d] deleteApi24KmipBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24KMIPBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24KMIPBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_parameters.go b/cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_parameters.go rename to cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_parameters.go diff --git a/cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_responses.go b/cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_responses.go rename to cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_responses.go index 2abd865..5b1aa8f 100644 --- a/cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_responses.go +++ b/cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24KMIPReader is a Reader for the GetAPI24KMIP structure. @@ -29,6 +29,12 @@ func (o *GetAPI24KMIPReader) ReadResponse(response runtime.ClientResponse, consu return nil, err } return result, nil + case 400: + result := NewGetApi24KMIPBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24KMIPOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewGetApi24KMIPBadRequest creates a GetApi24KMIPBadRequest with default headers values +func NewGetApi24KMIPBadRequest() *GetApi24KMIPBadRequest { + return &GetApi24KMIPBadRequest{} +} + +/*GetApi24KMIPBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24KMIPBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24KMIPBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/kmip][%d] getApi24KmipBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24KMIPBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24KMIPBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_responses.go index 6c236c2..363cf51 100644 --- a/cbs/internal/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/kmip/get_api_24_kmip_test_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24KMIPTestReader is a Reader for the GetAPI24KMIPTest structure. @@ -29,6 +29,12 @@ func (o *GetAPI24KMIPTestReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewGetApi24KMIPTestBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24KMIPTestOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewGetApi24KMIPTestBadRequest creates a GetApi24KMIPTestBadRequest with default headers values +func NewGetApi24KMIPTestBadRequest() *GetApi24KMIPTestBadRequest { + return &GetApi24KMIPTestBadRequest{} +} + +/*GetApi24KMIPTestBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24KMIPTestBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24KMIPTestBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/kmip/test][%d] getApi24KmipTestBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24KMIPTestBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24KMIPTestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/kmip/kmip_client.go b/cbs/internal/array/faclient/2.4/client/kmip/kmip_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/kmip/kmip_client.go rename to cbs/internal/array/faclient/2.4/client/kmip/kmip_client.go diff --git a/cbs/internal/faclient/2.4/client/kmip/patch_api_24_kmip_parameters.go b/cbs/internal/array/faclient/2.4/client/kmip/patch_api_24_kmip_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/kmip/patch_api_24_kmip_parameters.go rename to cbs/internal/array/faclient/2.4/client/kmip/patch_api_24_kmip_parameters.go index d6c1859..40a8b83 100644 --- a/cbs/internal/faclient/2.4/client/kmip/patch_api_24_kmip_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/kmip/patch_api_24_kmip_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24KMIPParams creates a new PatchAPI24KMIPParams object diff --git a/cbs/internal/faclient/2.4/client/kmip/patch_api_24_kmip_responses.go b/cbs/internal/array/faclient/2.4/client/kmip/patch_api_24_kmip_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/kmip/patch_api_24_kmip_responses.go rename to cbs/internal/array/faclient/2.4/client/kmip/patch_api_24_kmip_responses.go index b03d1d0..b8ddb86 100644 --- a/cbs/internal/faclient/2.4/client/kmip/patch_api_24_kmip_responses.go +++ b/cbs/internal/array/faclient/2.4/client/kmip/patch_api_24_kmip_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24KMIPReader is a Reader for the PatchAPI24KMIP structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24KMIPReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewPatchApi24KMIPBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24KMIPOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewPatchApi24KMIPBadRequest creates a PatchApi24KMIPBadRequest with default headers values +func NewPatchApi24KMIPBadRequest() *PatchApi24KMIPBadRequest { + return &PatchApi24KMIPBadRequest{} +} + +/*PatchApi24KMIPBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24KMIPBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24KMIPBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/kmip][%d] patchApi24KmipBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24KMIPBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24KMIPBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/kmip/post_api_24_kmip_parameters.go b/cbs/internal/array/faclient/2.4/client/kmip/post_api_24_kmip_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/kmip/post_api_24_kmip_parameters.go rename to cbs/internal/array/faclient/2.4/client/kmip/post_api_24_kmip_parameters.go index 81f6b90..10f4c12 100644 --- a/cbs/internal/faclient/2.4/client/kmip/post_api_24_kmip_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/kmip/post_api_24_kmip_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24KMIPParams creates a new PostAPI24KMIPParams object diff --git a/cbs/internal/faclient/2.4/client/kmip/post_api_24_kmip_responses.go b/cbs/internal/array/faclient/2.4/client/kmip/post_api_24_kmip_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/kmip/post_api_24_kmip_responses.go rename to cbs/internal/array/faclient/2.4/client/kmip/post_api_24_kmip_responses.go index 47577d1..4a9dd11 100644 --- a/cbs/internal/faclient/2.4/client/kmip/post_api_24_kmip_responses.go +++ b/cbs/internal/array/faclient/2.4/client/kmip/post_api_24_kmip_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24KMIPReader is a Reader for the PostAPI24KMIP structure. @@ -29,6 +29,12 @@ func (o *PostAPI24KMIPReader) ReadResponse(response runtime.ClientResponse, cons return nil, err } return result, nil + case 400: + result := NewPostApi24KMIPBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24KMIPOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewPostApi24KMIPBadRequest creates a PostApi24KMIPBadRequest with default headers values +func NewPostApi24KMIPBadRequest() *PostApi24KMIPBadRequest { + return &PostApi24KMIPBadRequest{} +} + +/*PostApi24KMIPBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24KMIPBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24KMIPBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/kmip][%d] postApi24KmipBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24KMIPBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24KMIPBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_responses.go index 7b12e3b..5b914be 100644 --- a/cbs/internal/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/maintenance_windows/delete_api_24_maintenance_windows_swagger_responses.go @@ -7,9 +7,12 @@ package maintenance_windows import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24MaintenanceWindowsReader is a Reader for the DeleteAPI24MaintenanceWindows structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24MaintenanceWindowsReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewDeleteApi24MaintenanceWindowsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24MaintenanceWindowsOK) readResponse(response runtime.ClientRe return nil } + +// NewDeleteApi24MaintenanceWindowsBadRequest creates a DeleteApi24MaintenanceWindowsBadRequest with default headers values +func NewDeleteApi24MaintenanceWindowsBadRequest() *DeleteApi24MaintenanceWindowsBadRequest { + return &DeleteApi24MaintenanceWindowsBadRequest{} +} + +/*DeleteApi24MaintenanceWindowsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24MaintenanceWindowsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24MaintenanceWindowsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/maintenance-windows][%d] deleteApi24MaintenanceWindowsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24MaintenanceWindowsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24MaintenanceWindowsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_responses.go index d379a52..26d7d1b 100644 --- a/cbs/internal/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/maintenance_windows/get_api_24_maintenance_windows_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24MaintenanceWindowsReader is a Reader for the GetAPI24MaintenanceWindows structure. @@ -29,6 +29,12 @@ func (o *GetAPI24MaintenanceWindowsReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewGetApi24MaintenanceWindowsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24MaintenanceWindowsOK) readResponse(response runtime.ClientRespo return nil } + +// NewGetApi24MaintenanceWindowsBadRequest creates a GetApi24MaintenanceWindowsBadRequest with default headers values +func NewGetApi24MaintenanceWindowsBadRequest() *GetApi24MaintenanceWindowsBadRequest { + return &GetApi24MaintenanceWindowsBadRequest{} +} + +/*GetApi24MaintenanceWindowsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24MaintenanceWindowsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24MaintenanceWindowsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/maintenance-windows][%d] getApi24MaintenanceWindowsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24MaintenanceWindowsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24MaintenanceWindowsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/maintenance_windows/maintenance_windows_swagger_client.go b/cbs/internal/array/faclient/2.4/client/maintenance_windows/maintenance_windows_swagger_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/maintenance_windows/maintenance_windows_swagger_client.go rename to cbs/internal/array/faclient/2.4/client/maintenance_windows/maintenance_windows_swagger_client.go diff --git a/cbs/internal/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_parameters.go index 3736e04..487a566 100644 --- a/cbs/internal/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24MaintenanceWindowsParams creates a new PostAPI24MaintenanceWindowsParams object diff --git a/cbs/internal/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_responses.go index 374775c..b22516d 100644 --- a/cbs/internal/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/maintenance_windows/post_api_24_maintenance_windows_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24MaintenanceWindowsReader is a Reader for the PostAPI24MaintenanceWindows structure. @@ -29,6 +29,12 @@ func (o *PostAPI24MaintenanceWindowsReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewPostApi24MaintenanceWindowsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24MaintenanceWindowsOK) readResponse(response runtime.ClientResp return nil } + +// NewPostApi24MaintenanceWindowsBadRequest creates a PostApi24MaintenanceWindowsBadRequest with default headers values +func NewPostApi24MaintenanceWindowsBadRequest() *PostApi24MaintenanceWindowsBadRequest { + return &PostApi24MaintenanceWindowsBadRequest{} +} + +/*PostApi24MaintenanceWindowsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24MaintenanceWindowsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24MaintenanceWindowsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/maintenance-windows][%d] postApi24MaintenanceWindowsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24MaintenanceWindowsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24MaintenanceWindowsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_parameters.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_parameters.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_parameters.go diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_responses.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_responses.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_responses.go index db6c54c..a036904 100644 --- a/cbs/internal/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_responses.go +++ b/cbs/internal/array/faclient/2.4/client/network_interfaces/delete_api_24_network_interfaces_responses.go @@ -7,9 +7,12 @@ package network_interfaces import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24NetworkInterfacesReader is a Reader for the DeleteAPI24NetworkInterfaces structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24NetworkInterfacesReader) ReadResponse(response runtime.Clien return nil, err } return result, nil + case 400: + result := NewDeleteApi24NetworkInterfacesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24NetworkInterfacesOK) readResponse(response runtime.ClientRes return nil } + +// NewDeleteApi24NetworkInterfacesBadRequest creates a DeleteApi24NetworkInterfacesBadRequest with default headers values +func NewDeleteApi24NetworkInterfacesBadRequest() *DeleteApi24NetworkInterfacesBadRequest { + return &DeleteApi24NetworkInterfacesBadRequest{} +} + +/*DeleteApi24NetworkInterfacesBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24NetworkInterfacesBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24NetworkInterfacesBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/network-interfaces][%d] deleteApi24NetworkInterfacesBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24NetworkInterfacesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24NetworkInterfacesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_parameters.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_parameters.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_parameters.go diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_parameters.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_parameters.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_responses.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_responses.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_responses.go index 435ee59..d342ebf 100644 --- a/cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_performance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24NetworkInterfacesPerformanceReader is a Reader for the GetAPI24NetworkInterfacesPerformance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24NetworkInterfacesPerformanceReader) ReadResponse(response runti return nil, err } return result, nil + case 400: + result := NewGetApi24NetworkInterfacesPerformanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24NetworkInterfacesPerformanceOK) readResponse(response runtime.C return nil } + +// NewGetApi24NetworkInterfacesPerformanceBadRequest creates a GetApi24NetworkInterfacesPerformanceBadRequest with default headers values +func NewGetApi24NetworkInterfacesPerformanceBadRequest() *GetApi24NetworkInterfacesPerformanceBadRequest { + return &GetApi24NetworkInterfacesPerformanceBadRequest{} +} + +/*GetApi24NetworkInterfacesPerformanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24NetworkInterfacesPerformanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24NetworkInterfacesPerformanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/network-interfaces/performance][%d] getApi24NetworkInterfacesPerformanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24NetworkInterfacesPerformanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24NetworkInterfacesPerformanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_responses.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_responses.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_responses.go index 6987c4a..f9e2c66 100644 --- a/cbs/internal/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_responses.go +++ b/cbs/internal/array/faclient/2.4/client/network_interfaces/get_api_24_network_interfaces_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24NetworkInterfacesReader is a Reader for the GetAPI24NetworkInterfaces structure. @@ -29,6 +29,12 @@ func (o *GetAPI24NetworkInterfacesReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewGetApi24NetworkInterfacesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24NetworkInterfacesOK) readResponse(response runtime.ClientRespon return nil } + +// NewGetApi24NetworkInterfacesBadRequest creates a GetApi24NetworkInterfacesBadRequest with default headers values +func NewGetApi24NetworkInterfacesBadRequest() *GetApi24NetworkInterfacesBadRequest { + return &GetApi24NetworkInterfacesBadRequest{} +} + +/*GetApi24NetworkInterfacesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24NetworkInterfacesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24NetworkInterfacesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/network-interfaces][%d] getApi24NetworkInterfacesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24NetworkInterfacesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24NetworkInterfacesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/network_interfaces_client.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/network_interfaces_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/network_interfaces/network_interfaces_client.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/network_interfaces_client.go diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_parameters.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_parameters.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_parameters.go index 5f8dd0c..a934312 100644 --- a/cbs/internal/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24NetworkInterfacesParams creates a new PatchAPI24NetworkInterfacesParams object diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_responses.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_responses.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_responses.go index bdd0a2a..4ece436 100644 --- a/cbs/internal/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_responses.go +++ b/cbs/internal/array/faclient/2.4/client/network_interfaces/patch_api_24_network_interfaces_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24NetworkInterfacesReader is a Reader for the PatchAPI24NetworkInterfaces structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24NetworkInterfacesReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewPatchApi24NetworkInterfacesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24NetworkInterfacesOK) readResponse(response runtime.ClientResp return nil } + +// NewPatchApi24NetworkInterfacesBadRequest creates a PatchApi24NetworkInterfacesBadRequest with default headers values +func NewPatchApi24NetworkInterfacesBadRequest() *PatchApi24NetworkInterfacesBadRequest { + return &PatchApi24NetworkInterfacesBadRequest{} +} + +/*PatchApi24NetworkInterfacesBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24NetworkInterfacesBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24NetworkInterfacesBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/network-interfaces][%d] patchApi24NetworkInterfacesBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24NetworkInterfacesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24NetworkInterfacesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_parameters.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_parameters.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_parameters.go index d80d571..a649d3f 100644 --- a/cbs/internal/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24NetworkInterfacesParams creates a new PostAPI24NetworkInterfacesParams object diff --git a/cbs/internal/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_responses.go b/cbs/internal/array/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_responses.go rename to cbs/internal/array/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_responses.go index 5102c88..b8cb0f2 100644 --- a/cbs/internal/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_responses.go +++ b/cbs/internal/array/faclient/2.4/client/network_interfaces/post_api_24_network_interfaces_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24NetworkInterfacesReader is a Reader for the PostAPI24NetworkInterfaces structure. @@ -29,6 +29,12 @@ func (o *PostAPI24NetworkInterfacesReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewPostApi24NetworkInterfacesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24NetworkInterfacesOK) readResponse(response runtime.ClientRespo return nil } + +// NewPostApi24NetworkInterfacesBadRequest creates a PostApi24NetworkInterfacesBadRequest with default headers values +func NewPostApi24NetworkInterfacesBadRequest() *PostApi24NetworkInterfacesBadRequest { + return &PostApi24NetworkInterfacesBadRequest{} +} + +/*PostApi24NetworkInterfacesBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24NetworkInterfacesBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24NetworkInterfacesBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/network-interfaces][%d] postApi24NetworkInterfacesBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24NetworkInterfacesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24NetworkInterfacesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/offloads/delete_api_24_offloads_parameters.go b/cbs/internal/array/faclient/2.4/client/offloads/delete_api_24_offloads_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/offloads/delete_api_24_offloads_parameters.go rename to cbs/internal/array/faclient/2.4/client/offloads/delete_api_24_offloads_parameters.go diff --git a/cbs/internal/faclient/2.4/client/offloads/delete_api_24_offloads_responses.go b/cbs/internal/array/faclient/2.4/client/offloads/delete_api_24_offloads_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/offloads/delete_api_24_offloads_responses.go rename to cbs/internal/array/faclient/2.4/client/offloads/delete_api_24_offloads_responses.go index e6d9478..b5465b9 100644 --- a/cbs/internal/faclient/2.4/client/offloads/delete_api_24_offloads_responses.go +++ b/cbs/internal/array/faclient/2.4/client/offloads/delete_api_24_offloads_responses.go @@ -7,9 +7,12 @@ package offloads import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24OffloadsReader is a Reader for the DeleteAPI24Offloads structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24OffloadsReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewDeleteApi24OffloadsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24OffloadsOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewDeleteApi24OffloadsBadRequest creates a DeleteApi24OffloadsBadRequest with default headers values +func NewDeleteApi24OffloadsBadRequest() *DeleteApi24OffloadsBadRequest { + return &DeleteApi24OffloadsBadRequest{} +} + +/*DeleteApi24OffloadsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24OffloadsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24OffloadsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/offloads][%d] deleteApi24OffloadsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24OffloadsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24OffloadsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/offloads/get_api_24_offloads_parameters.go b/cbs/internal/array/faclient/2.4/client/offloads/get_api_24_offloads_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/offloads/get_api_24_offloads_parameters.go rename to cbs/internal/array/faclient/2.4/client/offloads/get_api_24_offloads_parameters.go diff --git a/cbs/internal/faclient/2.4/client/offloads/get_api_24_offloads_responses.go b/cbs/internal/array/faclient/2.4/client/offloads/get_api_24_offloads_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/offloads/get_api_24_offloads_responses.go rename to cbs/internal/array/faclient/2.4/client/offloads/get_api_24_offloads_responses.go index 4fe3627..6decef4 100644 --- a/cbs/internal/faclient/2.4/client/offloads/get_api_24_offloads_responses.go +++ b/cbs/internal/array/faclient/2.4/client/offloads/get_api_24_offloads_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24OffloadsReader is a Reader for the GetAPI24Offloads structure. @@ -29,6 +29,12 @@ func (o *GetAPI24OffloadsReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewGetApi24OffloadsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24OffloadsOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewGetApi24OffloadsBadRequest creates a GetApi24OffloadsBadRequest with default headers values +func NewGetApi24OffloadsBadRequest() *GetApi24OffloadsBadRequest { + return &GetApi24OffloadsBadRequest{} +} + +/*GetApi24OffloadsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24OffloadsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24OffloadsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/offloads][%d] getApi24OffloadsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24OffloadsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24OffloadsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/offloads/offloads_client.go b/cbs/internal/array/faclient/2.4/client/offloads/offloads_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/offloads/offloads_client.go rename to cbs/internal/array/faclient/2.4/client/offloads/offloads_client.go diff --git a/cbs/internal/faclient/2.4/client/offloads/post_api_24_offloads_parameters.go b/cbs/internal/array/faclient/2.4/client/offloads/post_api_24_offloads_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/offloads/post_api_24_offloads_parameters.go rename to cbs/internal/array/faclient/2.4/client/offloads/post_api_24_offloads_parameters.go index fca0ccd..6963fae 100644 --- a/cbs/internal/faclient/2.4/client/offloads/post_api_24_offloads_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/offloads/post_api_24_offloads_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24OffloadsParams creates a new PostAPI24OffloadsParams object diff --git a/cbs/internal/faclient/2.4/client/offloads/post_api_24_offloads_responses.go b/cbs/internal/array/faclient/2.4/client/offloads/post_api_24_offloads_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/offloads/post_api_24_offloads_responses.go rename to cbs/internal/array/faclient/2.4/client/offloads/post_api_24_offloads_responses.go index 063ffa6..ac6e0f0 100644 --- a/cbs/internal/faclient/2.4/client/offloads/post_api_24_offloads_responses.go +++ b/cbs/internal/array/faclient/2.4/client/offloads/post_api_24_offloads_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24OffloadsReader is a Reader for the PostAPI24Offloads structure. @@ -29,6 +29,12 @@ func (o *PostAPI24OffloadsReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewPostApi24OffloadsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24OffloadsOK) readResponse(response runtime.ClientResponse, cons return nil } + +// NewPostApi24OffloadsBadRequest creates a PostApi24OffloadsBadRequest with default headers values +func NewPostApi24OffloadsBadRequest() *PostApi24OffloadsBadRequest { + return &PostApi24OffloadsBadRequest{} +} + +/*PostApi24OffloadsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24OffloadsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24OffloadsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/offloads][%d] postApi24OffloadsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24OffloadsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24OffloadsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_parameters.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_parameters.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_responses.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_responses.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_responses.go index e294d29..e395cc8 100644 --- a/cbs/internal/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pod_replica_links/delete_api_24_pod_replica_links_responses.go @@ -7,9 +7,12 @@ package pod_replica_links import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PodReplicaLinksReader is a Reader for the DeleteAPI24PodReplicaLinks structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PodReplicaLinksReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewDeleteApi24PodReplicaLinksBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PodReplicaLinksOK) readResponse(response runtime.ClientRespo return nil } + +// NewDeleteApi24PodReplicaLinksBadRequest creates a DeleteApi24PodReplicaLinksBadRequest with default headers values +func NewDeleteApi24PodReplicaLinksBadRequest() *DeleteApi24PodReplicaLinksBadRequest { + return &DeleteApi24PodReplicaLinksBadRequest{} +} + +/*DeleteApi24PodReplicaLinksBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PodReplicaLinksBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PodReplicaLinksBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/pod-replica-links][%d] deleteApi24PodReplicaLinksBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PodReplicaLinksBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PodReplicaLinksBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_parameters.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_parameters.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_responses.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_responses.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_responses.go index 8f25673..b74d5ef 100644 --- a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_lag_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodReplicaLinksLagReader is a Reader for the GetAPI24PodReplicaLinksLag structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodReplicaLinksLagReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewGetApi24PodReplicaLinksLagBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodReplicaLinksLagOK) readResponse(response runtime.ClientRespo return nil } + +// NewGetApi24PodReplicaLinksLagBadRequest creates a GetApi24PodReplicaLinksLagBadRequest with default headers values +func NewGetApi24PodReplicaLinksLagBadRequest() *GetApi24PodReplicaLinksLagBadRequest { + return &GetApi24PodReplicaLinksLagBadRequest{} +} + +/*GetApi24PodReplicaLinksLagBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodReplicaLinksLagBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodReplicaLinksLagBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pod-replica-links/lag][%d] getApi24PodReplicaLinksLagBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodReplicaLinksLagBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodReplicaLinksLagBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_parameters.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_parameters.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_parameters.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_parameters.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_responses.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_responses.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_responses.go index cc02f82..bce3a38 100644 --- a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_performance_replication_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodReplicaLinksPerformanceReplicationReader is a Reader for the GetAPI24PodReplicaLinksPerformanceReplication structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodReplicaLinksPerformanceReplicationReader) ReadResponse(respo return nil, err } return result, nil + case 400: + result := NewGetApi24PodReplicaLinksPerformanceReplicationBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodReplicaLinksPerformanceReplicationOK) readResponse(response return nil } + +// NewGetApi24PodReplicaLinksPerformanceReplicationBadRequest creates a GetApi24PodReplicaLinksPerformanceReplicationBadRequest with default headers values +func NewGetApi24PodReplicaLinksPerformanceReplicationBadRequest() *GetApi24PodReplicaLinksPerformanceReplicationBadRequest { + return &GetApi24PodReplicaLinksPerformanceReplicationBadRequest{} +} + +/*GetApi24PodReplicaLinksPerformanceReplicationBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodReplicaLinksPerformanceReplicationBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodReplicaLinksPerformanceReplicationBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pod-replica-links/performance/replication][%d] getApi24PodReplicaLinksPerformanceReplicationBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodReplicaLinksPerformanceReplicationBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodReplicaLinksPerformanceReplicationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_responses.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_responses.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_responses.go index 389777f..3cdda1e 100644 --- a/cbs/internal/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pod_replica_links/get_api_24_pod_replica_links_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodReplicaLinksReader is a Reader for the GetAPI24PodReplicaLinks structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodReplicaLinksReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24PodReplicaLinksBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodReplicaLinksOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24PodReplicaLinksBadRequest creates a GetApi24PodReplicaLinksBadRequest with default headers values +func NewGetApi24PodReplicaLinksBadRequest() *GetApi24PodReplicaLinksBadRequest { + return &GetApi24PodReplicaLinksBadRequest{} +} + +/*GetApi24PodReplicaLinksBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodReplicaLinksBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodReplicaLinksBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pod-replica-links][%d] getApi24PodReplicaLinksBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodReplicaLinksBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodReplicaLinksBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_parameters.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_parameters.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_parameters.go index 599b7af..be8d338 100644 --- a/cbs/internal/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24PodReplicaLinksParams creates a new PatchAPI24PodReplicaLinksParams object diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_responses.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_responses.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_responses.go index d9380ab..6c9eddb 100644 --- a/cbs/internal/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pod_replica_links/patch_api_24_pod_replica_links_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24PodReplicaLinksReader is a Reader for the PatchAPI24PodReplicaLinks structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24PodReplicaLinksReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewPatchApi24PodReplicaLinksBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24PodReplicaLinksOK) readResponse(response runtime.ClientRespon return nil } + +// NewPatchApi24PodReplicaLinksBadRequest creates a PatchApi24PodReplicaLinksBadRequest with default headers values +func NewPatchApi24PodReplicaLinksBadRequest() *PatchApi24PodReplicaLinksBadRequest { + return &PatchApi24PodReplicaLinksBadRequest{} +} + +/*PatchApi24PodReplicaLinksBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24PodReplicaLinksBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24PodReplicaLinksBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/pod-replica-links][%d] patchApi24PodReplicaLinksBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24PodReplicaLinksBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24PodReplicaLinksBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/pod_replica_links_client.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/pod_replica_links_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pod_replica_links/pod_replica_links_client.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/pod_replica_links_client.go diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_parameters.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_parameters.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_responses.go b/cbs/internal/array/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_responses.go rename to cbs/internal/array/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_responses.go index 7c30b15..0b7a373 100644 --- a/cbs/internal/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pod_replica_links/post_api_24_pod_replica_links_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PodReplicaLinksReader is a Reader for the PostAPI24PodReplicaLinks structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PodReplicaLinksReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewPostApi24PodReplicaLinksBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PodReplicaLinksOK) readResponse(response runtime.ClientRespons return nil } + +// NewPostApi24PodReplicaLinksBadRequest creates a PostApi24PodReplicaLinksBadRequest with default headers values +func NewPostApi24PodReplicaLinksBadRequest() *PostApi24PodReplicaLinksBadRequest { + return &PostApi24PodReplicaLinksBadRequest{} +} + +/*PostApi24PodReplicaLinksBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PodReplicaLinksBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PodReplicaLinksBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/pod-replica-links][%d] postApi24PodReplicaLinksBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PodReplicaLinksBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PodReplicaLinksBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_arrays_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_arrays_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_arrays_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_arrays_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_arrays_responses.go b/cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_arrays_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_arrays_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_arrays_responses.go index c1acc12..922d0ae 100644 --- a/cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_arrays_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_arrays_responses.go @@ -7,9 +7,12 @@ package pods import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PodsArraysReader is a Reader for the DeleteAPI24PodsArrays structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PodsArraysReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewDeleteApi24PodsArraysBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PodsArraysOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24PodsArraysBadRequest creates a DeleteApi24PodsArraysBadRequest with default headers values +func NewDeleteApi24PodsArraysBadRequest() *DeleteApi24PodsArraysBadRequest { + return &DeleteApi24PodsArraysBadRequest{} +} + +/*DeleteApi24PodsArraysBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PodsArraysBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PodsArraysBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/pods/arrays][%d] deleteApi24PodsArraysBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PodsArraysBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PodsArraysBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_responses.go b/cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_responses.go index fbdb565..0b783fc 100644 --- a/cbs/internal/faclient/2.4/client/pods/delete_api_24_pods_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/delete_api_24_pods_responses.go @@ -7,9 +7,12 @@ package pods import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PodsReader is a Reader for the DeleteAPI24Pods structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PodsReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return result, nil + case 400: + result := NewDeleteApi24PodsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PodsOK) readResponse(response runtime.ClientResponse, consum return nil } + +// NewDeleteApi24PodsBadRequest creates a DeleteApi24PodsBadRequest with default headers values +func NewDeleteApi24PodsBadRequest() *DeleteApi24PodsBadRequest { + return &DeleteApi24PodsBadRequest{} +} + +/*DeleteApi24PodsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PodsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PodsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/pods][%d] deleteApi24PodsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PodsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PodsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_arrays_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_arrays_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_arrays_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_arrays_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_arrays_responses.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_arrays_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_arrays_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_arrays_responses.go index 5cc056b..afde9d4 100644 --- a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_arrays_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_arrays_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodsArraysReader is a Reader for the GetAPI24PodsArrays structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodsArraysReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24PodsArraysBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodsArraysOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewGetApi24PodsArraysBadRequest creates a GetApi24PodsArraysBadRequest with default headers values +func NewGetApi24PodsArraysBadRequest() *GetApi24PodsArraysBadRequest { + return &GetApi24PodsArraysBadRequest{} +} + +/*GetApi24PodsArraysBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodsArraysBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodsArraysBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pods/arrays][%d] getApi24PodsArraysBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodsArraysBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodsArraysBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_responses.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_responses.go index e00966f..14eeaff 100644 --- a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_by_array_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodsPerformanceByArrayReader is a Reader for the GetAPI24PodsPerformanceByArray structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodsPerformanceByArrayReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewGetApi24PodsPerformanceByArrayBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodsPerformanceByArrayOK) readResponse(response runtime.ClientR return nil } + +// NewGetApi24PodsPerformanceByArrayBadRequest creates a GetApi24PodsPerformanceByArrayBadRequest with default headers values +func NewGetApi24PodsPerformanceByArrayBadRequest() *GetApi24PodsPerformanceByArrayBadRequest { + return &GetApi24PodsPerformanceByArrayBadRequest{} +} + +/*GetApi24PodsPerformanceByArrayBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodsPerformanceByArrayBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodsPerformanceByArrayBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pods/performance/by-array][%d] getApi24PodsPerformanceByArrayBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodsPerformanceByArrayBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodsPerformanceByArrayBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_responses.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_responses.go index 25d4193..d934c42 100644 --- a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_by_array_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodsPerformanceReplicationByArrayReader is a Reader for the GetAPI24PodsPerformanceReplicationByArray structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodsPerformanceReplicationByArrayReader) ReadResponse(response return nil, err } return result, nil + case 400: + result := NewGetApi24PodsPerformanceReplicationByArrayBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodsPerformanceReplicationByArrayOK) readResponse(response runt return nil } + +// NewGetApi24PodsPerformanceReplicationByArrayBadRequest creates a GetApi24PodsPerformanceReplicationByArrayBadRequest with default headers values +func NewGetApi24PodsPerformanceReplicationByArrayBadRequest() *GetApi24PodsPerformanceReplicationByArrayBadRequest { + return &GetApi24PodsPerformanceReplicationByArrayBadRequest{} +} + +/*GetApi24PodsPerformanceReplicationByArrayBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodsPerformanceReplicationByArrayBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodsPerformanceReplicationByArrayBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pods/performance/replication/by-array][%d] getApi24PodsPerformanceReplicationByArrayBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodsPerformanceReplicationByArrayBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodsPerformanceReplicationByArrayBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_responses.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_responses.go index 9cefee2..67e371e 100644 --- a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_replication_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_replication_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodsPerformanceReplicationReader is a Reader for the GetAPI24PodsPerformanceReplication structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodsPerformanceReplicationReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewGetApi24PodsPerformanceReplicationBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodsPerformanceReplicationOK) readResponse(response runtime.Cli return nil } + +// NewGetApi24PodsPerformanceReplicationBadRequest creates a GetApi24PodsPerformanceReplicationBadRequest with default headers values +func NewGetApi24PodsPerformanceReplicationBadRequest() *GetApi24PodsPerformanceReplicationBadRequest { + return &GetApi24PodsPerformanceReplicationBadRequest{} +} + +/*GetApi24PodsPerformanceReplicationBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodsPerformanceReplicationBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodsPerformanceReplicationBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pods/performance/replication][%d] getApi24PodsPerformanceReplicationBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodsPerformanceReplicationBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodsPerformanceReplicationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_responses.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_responses.go index 7969dd9..d337aa4 100644 --- a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_performance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_performance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodsPerformanceReader is a Reader for the GetAPI24PodsPerformance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodsPerformanceReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24PodsPerformanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodsPerformanceOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24PodsPerformanceBadRequest creates a GetApi24PodsPerformanceBadRequest with default headers values +func NewGetApi24PodsPerformanceBadRequest() *GetApi24PodsPerformanceBadRequest { + return &GetApi24PodsPerformanceBadRequest{} +} + +/*GetApi24PodsPerformanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodsPerformanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodsPerformanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pods/performance][%d] getApi24PodsPerformanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodsPerformanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodsPerformanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_responses.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_responses.go index aff27e5..9f47d1e 100644 --- a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodsReader is a Reader for the GetAPI24Pods structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodsReader) ReadResponse(response runtime.ClientResponse, consu return nil, err } return result, nil + case 400: + result := NewGetApi24PodsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodsOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewGetApi24PodsBadRequest creates a GetApi24PodsBadRequest with default headers values +func NewGetApi24PodsBadRequest() *GetApi24PodsBadRequest { + return &GetApi24PodsBadRequest{} +} + +/*GetApi24PodsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pods][%d] getApi24PodsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_space_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_space_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_space_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_space_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_space_responses.go b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_space_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/pods/get_api_24_pods_space_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_space_responses.go index a7e30d6..7b83ab9 100644 --- a/cbs/internal/faclient/2.4/client/pods/get_api_24_pods_space_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/get_api_24_pods_space_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PodsSpaceReader is a Reader for the GetAPI24PodsSpace structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PodsSpaceReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24PodsSpaceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PodsSpaceOK) readResponse(response runtime.ClientResponse, cons return nil } + +// NewGetApi24PodsSpaceBadRequest creates a GetApi24PodsSpaceBadRequest with default headers values +func NewGetApi24PodsSpaceBadRequest() *GetApi24PodsSpaceBadRequest { + return &GetApi24PodsSpaceBadRequest{} +} + +/*GetApi24PodsSpaceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PodsSpaceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PodsSpaceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/pods/space][%d] getApi24PodsSpaceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PodsSpaceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PodsSpaceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/patch_api_24_pods_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/patch_api_24_pods_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/pods/patch_api_24_pods_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/patch_api_24_pods_parameters.go index b4ebc5e..6f899d0 100644 --- a/cbs/internal/faclient/2.4/client/pods/patch_api_24_pods_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/pods/patch_api_24_pods_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24PodsParams creates a new PatchAPI24PodsParams object diff --git a/cbs/internal/faclient/2.4/client/pods/patch_api_24_pods_responses.go b/cbs/internal/array/faclient/2.4/client/pods/patch_api_24_pods_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/patch_api_24_pods_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/patch_api_24_pods_responses.go index 4295a9e..11aa8b5 100644 --- a/cbs/internal/faclient/2.4/client/pods/patch_api_24_pods_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/patch_api_24_pods_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24PodsReader is a Reader for the PatchAPI24Pods structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24PodsReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewPatchApi24PodsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24PodsOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewPatchApi24PodsBadRequest creates a PatchApi24PodsBadRequest with default headers values +func NewPatchApi24PodsBadRequest() *PatchApi24PodsBadRequest { + return &PatchApi24PodsBadRequest{} +} + +/*PatchApi24PodsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24PodsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24PodsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/pods][%d] patchApi24PodsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24PodsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24PodsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/pods_client.go b/cbs/internal/array/faclient/2.4/client/pods/pods_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/pods_client.go rename to cbs/internal/array/faclient/2.4/client/pods/pods_client.go diff --git a/cbs/internal/faclient/2.4/client/pods/post_api_24_pods_arrays_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_arrays_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/pods/post_api_24_pods_arrays_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_arrays_parameters.go diff --git a/cbs/internal/faclient/2.4/client/pods/post_api_24_pods_arrays_responses.go b/cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_arrays_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/post_api_24_pods_arrays_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_arrays_responses.go index 6658791..288cdeb 100644 --- a/cbs/internal/faclient/2.4/client/pods/post_api_24_pods_arrays_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_arrays_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PodsArraysReader is a Reader for the PostAPI24PodsArrays structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PodsArraysReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewPostApi24PodsArraysBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PodsArraysOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewPostApi24PodsArraysBadRequest creates a PostApi24PodsArraysBadRequest with default headers values +func NewPostApi24PodsArraysBadRequest() *PostApi24PodsArraysBadRequest { + return &PostApi24PodsArraysBadRequest{} +} + +/*PostApi24PodsArraysBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PodsArraysBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PodsArraysBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/pods/arrays][%d] postApi24PodsArraysBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PodsArraysBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PodsArraysBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/pods/post_api_24_pods_parameters.go b/cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/pods/post_api_24_pods_parameters.go rename to cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_parameters.go index bccd4c0..c4e654e 100644 --- a/cbs/internal/faclient/2.4/client/pods/post_api_24_pods_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PodsParams creates a new PostAPI24PodsParams object diff --git a/cbs/internal/faclient/2.4/client/pods/post_api_24_pods_responses.go b/cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/pods/post_api_24_pods_responses.go rename to cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_responses.go index b3ad2bd..bae1aea 100644 --- a/cbs/internal/faclient/2.4/client/pods/post_api_24_pods_responses.go +++ b/cbs/internal/array/faclient/2.4/client/pods/post_api_24_pods_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PodsReader is a Reader for the PostAPI24Pods structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PodsReader) ReadResponse(response runtime.ClientResponse, cons return nil, err } return result, nil + case 400: + result := NewPostApi24PodsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PodsOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewPostApi24PodsBadRequest creates a PostApi24PodsBadRequest with default headers values +func NewPostApi24PodsBadRequest() *PostApi24PodsBadRequest { + return &PostApi24PodsBadRequest{} +} + +/*PostApi24PodsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PodsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PodsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/pods][%d] postApi24PodsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PodsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PodsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_responses.go index fadf3a7..2d46843 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_client_rules_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesNfsClientRulesReader is a Reader for the DeleteAPI24PoliciesNfsClientRules structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesNfsClientRulesReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesNfsClientRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesNfsClientRulesOK) readResponse(response runtime.Clie return nil } + +// NewDeleteApi24PoliciesNfsClientRulesBadRequest creates a DeleteApi24PoliciesNfsClientRulesBadRequest with default headers values +func NewDeleteApi24PoliciesNfsClientRulesBadRequest() *DeleteApi24PoliciesNfsClientRulesBadRequest { + return &DeleteApi24PoliciesNfsClientRulesBadRequest{} +} + +/*DeleteApi24PoliciesNfsClientRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesNfsClientRulesBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesNfsClientRulesBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/nfs/client-rules][%d] deleteApi24PoliciesNfsClientRulesBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesNfsClientRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesNfsClientRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_responses.go index 090c69e..71a9632 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_members_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesNfsMembersReader is a Reader for the DeleteAPI24PoliciesNfsMembers structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesNfsMembersReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesNfsMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesNfsMembersOK) readResponse(response runtime.ClientRe return nil } + +// NewDeleteApi24PoliciesNfsMembersBadRequest creates a DeleteApi24PoliciesNfsMembersBadRequest with default headers values +func NewDeleteApi24PoliciesNfsMembersBadRequest() *DeleteApi24PoliciesNfsMembersBadRequest { + return &DeleteApi24PoliciesNfsMembersBadRequest{} +} + +/*DeleteApi24PoliciesNfsMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesNfsMembersBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesNfsMembersBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/nfs/members][%d] deleteApi24PoliciesNfsMembersBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesNfsMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesNfsMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_responses.go index 005f6b0..4a7c3ee 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_nfs_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_nfs_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesNfsReader is a Reader for the DeleteAPI24PoliciesNfs structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesNfsReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesNfsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesNfsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24PoliciesNfsBadRequest creates a DeleteApi24PoliciesNfsBadRequest with default headers values +func NewDeleteApi24PoliciesNfsBadRequest() *DeleteApi24PoliciesNfsBadRequest { + return &DeleteApi24PoliciesNfsBadRequest{} +} + +/*DeleteApi24PoliciesNfsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesNfsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesNfsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/nfs][%d] deleteApi24PoliciesNfsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesNfsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesNfsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_responses.go index 09edea1..8051e5b 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_client_rules_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesSmbClientRulesReader is a Reader for the DeleteAPI24PoliciesSmbClientRules structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesSmbClientRulesReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesSmbClientRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesSmbClientRulesOK) readResponse(response runtime.Clie return nil } + +// NewDeleteApi24PoliciesSmbClientRulesBadRequest creates a DeleteApi24PoliciesSmbClientRulesBadRequest with default headers values +func NewDeleteApi24PoliciesSmbClientRulesBadRequest() *DeleteApi24PoliciesSmbClientRulesBadRequest { + return &DeleteApi24PoliciesSmbClientRulesBadRequest{} +} + +/*DeleteApi24PoliciesSmbClientRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesSmbClientRulesBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesSmbClientRulesBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/smb/client-rules][%d] deleteApi24PoliciesSmbClientRulesBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesSmbClientRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesSmbClientRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_members_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_members_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_members_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_members_responses.go index a2a9243..3336e74 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_members_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesSmbMembersReader is a Reader for the DeleteAPI24PoliciesSmbMembers structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesSmbMembersReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesSmbMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesSmbMembersOK) readResponse(response runtime.ClientRe return nil } + +// NewDeleteApi24PoliciesSmbMembersBadRequest creates a DeleteApi24PoliciesSmbMembersBadRequest with default headers values +func NewDeleteApi24PoliciesSmbMembersBadRequest() *DeleteApi24PoliciesSmbMembersBadRequest { + return &DeleteApi24PoliciesSmbMembersBadRequest{} +} + +/*DeleteApi24PoliciesSmbMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesSmbMembersBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesSmbMembersBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/smb/members][%d] deleteApi24PoliciesSmbMembersBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesSmbMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesSmbMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_responses.go index ef7b4ab..320b3ed 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_smb_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_smb_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesSmbReader is a Reader for the DeleteAPI24PoliciesSmb structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesSmbReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesSmbBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesSmbOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24PoliciesSmbBadRequest creates a DeleteApi24PoliciesSmbBadRequest with default headers values +func NewDeleteApi24PoliciesSmbBadRequest() *DeleteApi24PoliciesSmbBadRequest { + return &DeleteApi24PoliciesSmbBadRequest{} +} + +/*DeleteApi24PoliciesSmbBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesSmbBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesSmbBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/smb][%d] deleteApi24PoliciesSmbBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesSmbBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesSmbBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_responses.go index 0455c9c..ec90e1a 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_members_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesSnapshotMembersReader is a Reader for the DeleteAPI24PoliciesSnapshotMembers structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesSnapshotMembersReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesSnapshotMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesSnapshotMembersOK) readResponse(response runtime.Cli return nil } + +// NewDeleteApi24PoliciesSnapshotMembersBadRequest creates a DeleteApi24PoliciesSnapshotMembersBadRequest with default headers values +func NewDeleteApi24PoliciesSnapshotMembersBadRequest() *DeleteApi24PoliciesSnapshotMembersBadRequest { + return &DeleteApi24PoliciesSnapshotMembersBadRequest{} +} + +/*DeleteApi24PoliciesSnapshotMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesSnapshotMembersBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesSnapshotMembersBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/snapshot/members][%d] deleteApi24PoliciesSnapshotMembersBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesSnapshotMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesSnapshotMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_responses.go index 64ed74c..198927a 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesSnapshotReader is a Reader for the DeleteAPI24PoliciesSnapshot structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesSnapshotReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesSnapshotBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesSnapshotOK) readResponse(response runtime.ClientResp return nil } + +// NewDeleteApi24PoliciesSnapshotBadRequest creates a DeleteApi24PoliciesSnapshotBadRequest with default headers values +func NewDeleteApi24PoliciesSnapshotBadRequest() *DeleteApi24PoliciesSnapshotBadRequest { + return &DeleteApi24PoliciesSnapshotBadRequest{} +} + +/*DeleteApi24PoliciesSnapshotBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesSnapshotBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesSnapshotBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/snapshot][%d] deleteApi24PoliciesSnapshotBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesSnapshotBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesSnapshotBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_responses.go index 0cf6033..811b4b6 100644 --- a/cbs/internal/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/delete_api_24_policies_snapshot_rules_responses.go @@ -7,9 +7,12 @@ package policies import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24PoliciesSnapshotRulesReader is a Reader for the DeleteAPI24PoliciesSnapshotRules structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24PoliciesSnapshotRulesReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewDeleteApi24PoliciesSnapshotRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24PoliciesSnapshotRulesOK) readResponse(response runtime.Clien return nil } + +// NewDeleteApi24PoliciesSnapshotRulesBadRequest creates a DeleteApi24PoliciesSnapshotRulesBadRequest with default headers values +func NewDeleteApi24PoliciesSnapshotRulesBadRequest() *DeleteApi24PoliciesSnapshotRulesBadRequest { + return &DeleteApi24PoliciesSnapshotRulesBadRequest{} +} + +/*DeleteApi24PoliciesSnapshotRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24PoliciesSnapshotRulesBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24PoliciesSnapshotRulesBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/policies/snapshot/rules][%d] deleteApi24PoliciesSnapshotRulesBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24PoliciesSnapshotRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24PoliciesSnapshotRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_members_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_members_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_members_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_members_responses.go index cc5a036..f58e1ff 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_members_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesMembersReader is a Reader for the GetAPI24PoliciesMembers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesMembersReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesMembersOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24PoliciesMembersBadRequest creates a GetApi24PoliciesMembersBadRequest with default headers values +func NewGetApi24PoliciesMembersBadRequest() *GetApi24PoliciesMembersBadRequest { + return &GetApi24PoliciesMembersBadRequest{} +} + +/*GetApi24PoliciesMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesMembersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesMembersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/members][%d] getApi24PoliciesMembersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_responses.go index 15ab879..6a57808 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_client_rules_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesNfsClientRulesReader is a Reader for the GetAPI24PoliciesNfsClientRules structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesNfsClientRulesReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesNfsClientRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesNfsClientRulesOK) readResponse(response runtime.ClientR return nil } + +// NewGetApi24PoliciesNfsClientRulesBadRequest creates a GetApi24PoliciesNfsClientRulesBadRequest with default headers values +func NewGetApi24PoliciesNfsClientRulesBadRequest() *GetApi24PoliciesNfsClientRulesBadRequest { + return &GetApi24PoliciesNfsClientRulesBadRequest{} +} + +/*GetApi24PoliciesNfsClientRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesNfsClientRulesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesNfsClientRulesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/nfs/client-rules][%d] getApi24PoliciesNfsClientRulesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesNfsClientRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesNfsClientRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_members_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_members_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_members_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_members_responses.go index 89e1a32..c783ccb 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_members_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesNfsMembersReader is a Reader for the GetAPI24PoliciesNfsMembers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesNfsMembersReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesNfsMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesNfsMembersOK) readResponse(response runtime.ClientRespo return nil } + +// NewGetApi24PoliciesNfsMembersBadRequest creates a GetApi24PoliciesNfsMembersBadRequest with default headers values +func NewGetApi24PoliciesNfsMembersBadRequest() *GetApi24PoliciesNfsMembersBadRequest { + return &GetApi24PoliciesNfsMembersBadRequest{} +} + +/*GetApi24PoliciesNfsMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesNfsMembersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesNfsMembersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/nfs/members][%d] getApi24PoliciesNfsMembersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesNfsMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesNfsMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_responses.go index 310cd9a..f280aef 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_nfs_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_nfs_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesNfsReader is a Reader for the GetAPI24PoliciesNfs structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesNfsReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesNfsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesNfsOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24PoliciesNfsBadRequest creates a GetApi24PoliciesNfsBadRequest with default headers values +func NewGetApi24PoliciesNfsBadRequest() *GetApi24PoliciesNfsBadRequest { + return &GetApi24PoliciesNfsBadRequest{} +} + +/*GetApi24PoliciesNfsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesNfsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesNfsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/nfs][%d] getApi24PoliciesNfsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesNfsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesNfsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_responses.go index 0f25601..f6225e5 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesReader is a Reader for the GetAPI24Policies structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewGetApi24PoliciesBadRequest creates a GetApi24PoliciesBadRequest with default headers values +func NewGetApi24PoliciesBadRequest() *GetApi24PoliciesBadRequest { + return &GetApi24PoliciesBadRequest{} +} + +/*GetApi24PoliciesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies][%d] getApi24PoliciesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_responses.go index aefa773..ad0e6fa 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_client_rules_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesSmbClientRulesReader is a Reader for the GetAPI24PoliciesSmbClientRules structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesSmbClientRulesReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesSmbClientRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesSmbClientRulesOK) readResponse(response runtime.ClientR return nil } + +// NewGetApi24PoliciesSmbClientRulesBadRequest creates a GetApi24PoliciesSmbClientRulesBadRequest with default headers values +func NewGetApi24PoliciesSmbClientRulesBadRequest() *GetApi24PoliciesSmbClientRulesBadRequest { + return &GetApi24PoliciesSmbClientRulesBadRequest{} +} + +/*GetApi24PoliciesSmbClientRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesSmbClientRulesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesSmbClientRulesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/smb/client-rules][%d] getApi24PoliciesSmbClientRulesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesSmbClientRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesSmbClientRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_members_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_members_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_members_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_members_responses.go index 9ca76a0..7abd361 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_members_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesSmbMembersReader is a Reader for the GetAPI24PoliciesSmbMembers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesSmbMembersReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesSmbMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesSmbMembersOK) readResponse(response runtime.ClientRespo return nil } + +// NewGetApi24PoliciesSmbMembersBadRequest creates a GetApi24PoliciesSmbMembersBadRequest with default headers values +func NewGetApi24PoliciesSmbMembersBadRequest() *GetApi24PoliciesSmbMembersBadRequest { + return &GetApi24PoliciesSmbMembersBadRequest{} +} + +/*GetApi24PoliciesSmbMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesSmbMembersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesSmbMembersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/smb/members][%d] getApi24PoliciesSmbMembersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesSmbMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesSmbMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_responses.go index 8c7927c..4a2f1fe 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_smb_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_smb_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesSmbReader is a Reader for the GetAPI24PoliciesSmb structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesSmbReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesSmbBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesSmbOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24PoliciesSmbBadRequest creates a GetApi24PoliciesSmbBadRequest with default headers values +func NewGetApi24PoliciesSmbBadRequest() *GetApi24PoliciesSmbBadRequest { + return &GetApi24PoliciesSmbBadRequest{} +} + +/*GetApi24PoliciesSmbBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesSmbBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesSmbBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/smb][%d] getApi24PoliciesSmbBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesSmbBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesSmbBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_responses.go index 11c7a12..e0108db 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_members_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesSnapshotMembersReader is a Reader for the GetAPI24PoliciesSnapshotMembers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesSnapshotMembersReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesSnapshotMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesSnapshotMembersOK) readResponse(response runtime.Client return nil } + +// NewGetApi24PoliciesSnapshotMembersBadRequest creates a GetApi24PoliciesSnapshotMembersBadRequest with default headers values +func NewGetApi24PoliciesSnapshotMembersBadRequest() *GetApi24PoliciesSnapshotMembersBadRequest { + return &GetApi24PoliciesSnapshotMembersBadRequest{} +} + +/*GetApi24PoliciesSnapshotMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesSnapshotMembersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesSnapshotMembersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/snapshot/members][%d] getApi24PoliciesSnapshotMembersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesSnapshotMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesSnapshotMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_responses.go index 4cd16cf..1b5af0d 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesSnapshotReader is a Reader for the GetAPI24PoliciesSnapshot structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesSnapshotReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesSnapshotBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesSnapshotOK) readResponse(response runtime.ClientRespons return nil } + +// NewGetApi24PoliciesSnapshotBadRequest creates a GetApi24PoliciesSnapshotBadRequest with default headers values +func NewGetApi24PoliciesSnapshotBadRequest() *GetApi24PoliciesSnapshotBadRequest { + return &GetApi24PoliciesSnapshotBadRequest{} +} + +/*GetApi24PoliciesSnapshotBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesSnapshotBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesSnapshotBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/snapshot][%d] getApi24PoliciesSnapshotBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesSnapshotBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesSnapshotBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_parameters.go diff --git a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_responses.go index cfe6379..6683eac 100644 --- a/cbs/internal/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/get_api_24_policies_snapshot_rules_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PoliciesSnapshotRulesReader is a Reader for the GetAPI24PoliciesSnapshotRules structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PoliciesSnapshotRulesReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24PoliciesSnapshotRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PoliciesSnapshotRulesOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24PoliciesSnapshotRulesBadRequest creates a GetApi24PoliciesSnapshotRulesBadRequest with default headers values +func NewGetApi24PoliciesSnapshotRulesBadRequest() *GetApi24PoliciesSnapshotRulesBadRequest { + return &GetApi24PoliciesSnapshotRulesBadRequest{} +} + +/*GetApi24PoliciesSnapshotRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PoliciesSnapshotRulesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PoliciesSnapshotRulesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/policies/snapshot/rules][%d] getApi24PoliciesSnapshotRulesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PoliciesSnapshotRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PoliciesSnapshotRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_nfs_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_nfs_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_nfs_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_nfs_parameters.go index 46470c8..1ffd339 100644 --- a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_nfs_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_nfs_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24PoliciesNfsParams creates a new PatchAPI24PoliciesNfsParams object diff --git a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_nfs_responses.go b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_nfs_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_nfs_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_nfs_responses.go index 214a927..7fee619 100644 --- a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_nfs_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_nfs_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24PoliciesNfsReader is a Reader for the PatchAPI24PoliciesNfs structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24PoliciesNfsReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewPatchApi24PoliciesNfsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24PoliciesNfsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPatchApi24PoliciesNfsBadRequest creates a PatchApi24PoliciesNfsBadRequest with default headers values +func NewPatchApi24PoliciesNfsBadRequest() *PatchApi24PoliciesNfsBadRequest { + return &PatchApi24PoliciesNfsBadRequest{} +} + +/*PatchApi24PoliciesNfsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24PoliciesNfsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24PoliciesNfsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/policies/nfs][%d] patchApi24PoliciesNfsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24PoliciesNfsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24PoliciesNfsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_smb_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_smb_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_smb_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_smb_parameters.go index f713aeb..828736a 100644 --- a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_smb_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_smb_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24PoliciesSmbParams creates a new PatchAPI24PoliciesSmbParams object diff --git a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_smb_responses.go b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_smb_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_smb_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_smb_responses.go index 3893644..ac3bf59 100644 --- a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_smb_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_smb_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24PoliciesSmbReader is a Reader for the PatchAPI24PoliciesSmb structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24PoliciesSmbReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewPatchApi24PoliciesSmbBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24PoliciesSmbOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPatchApi24PoliciesSmbBadRequest creates a PatchApi24PoliciesSmbBadRequest with default headers values +func NewPatchApi24PoliciesSmbBadRequest() *PatchApi24PoliciesSmbBadRequest { + return &PatchApi24PoliciesSmbBadRequest{} +} + +/*PatchApi24PoliciesSmbBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24PoliciesSmbBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24PoliciesSmbBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/policies/smb][%d] patchApi24PoliciesSmbBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24PoliciesSmbBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24PoliciesSmbBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_snapshot_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_snapshot_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_snapshot_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_snapshot_parameters.go index 6b25bf6..fc04cfd 100644 --- a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_snapshot_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_snapshot_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24PoliciesSnapshotParams creates a new PatchAPI24PoliciesSnapshotParams object diff --git a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_snapshot_responses.go b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_snapshot_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_snapshot_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_snapshot_responses.go index c013ef4..c2f4c9c 100644 --- a/cbs/internal/faclient/2.4/client/policies/patch_api_24_policies_snapshot_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/patch_api_24_policies_snapshot_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24PoliciesSnapshotReader is a Reader for the PatchAPI24PoliciesSnapshot structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24PoliciesSnapshotReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewPatchApi24PoliciesSnapshotBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24PoliciesSnapshotOK) readResponse(response runtime.ClientRespo return nil } + +// NewPatchApi24PoliciesSnapshotBadRequest creates a PatchApi24PoliciesSnapshotBadRequest with default headers values +func NewPatchApi24PoliciesSnapshotBadRequest() *PatchApi24PoliciesSnapshotBadRequest { + return &PatchApi24PoliciesSnapshotBadRequest{} +} + +/*PatchApi24PoliciesSnapshotBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24PoliciesSnapshotBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24PoliciesSnapshotBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/policies/snapshot][%d] patchApi24PoliciesSnapshotBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24PoliciesSnapshotBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24PoliciesSnapshotBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/policies_client.go b/cbs/internal/array/faclient/2.4/client/policies/policies_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/policies/policies_client.go rename to cbs/internal/array/faclient/2.4/client/policies/policies_client.go diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_parameters.go index 3908058..2b5a8e2 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesNfsClientRulesParams creates a new PostAPI24PoliciesNfsClientRulesParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_responses.go index deaea9e..4200dd5 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_client_rules_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesNfsClientRulesReader is a Reader for the PostAPI24PoliciesNfsClientRules structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesNfsClientRulesReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesNfsClientRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesNfsClientRulesOK) readResponse(response runtime.Client return nil } + +// NewPostApi24PoliciesNfsClientRulesBadRequest creates a PostApi24PoliciesNfsClientRulesBadRequest with default headers values +func NewPostApi24PoliciesNfsClientRulesBadRequest() *PostApi24PoliciesNfsClientRulesBadRequest { + return &PostApi24PoliciesNfsClientRulesBadRequest{} +} + +/*PostApi24PoliciesNfsClientRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesNfsClientRulesBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesNfsClientRulesBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/nfs/client-rules][%d] postApi24PoliciesNfsClientRulesBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesNfsClientRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesNfsClientRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_members_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_members_parameters.go index b7ff988..dd76d4e 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_members_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_members_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesNfsMembersParams creates a new PostAPI24PoliciesNfsMembersParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_members_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_members_responses.go index cb629fa..b257914 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_members_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesNfsMembersReader is a Reader for the PostAPI24PoliciesNfsMembers structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesNfsMembersReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesNfsMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesNfsMembersOK) readResponse(response runtime.ClientResp return nil } + +// NewPostApi24PoliciesNfsMembersBadRequest creates a PostApi24PoliciesNfsMembersBadRequest with default headers values +func NewPostApi24PoliciesNfsMembersBadRequest() *PostApi24PoliciesNfsMembersBadRequest { + return &PostApi24PoliciesNfsMembersBadRequest{} +} + +/*PostApi24PoliciesNfsMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesNfsMembersBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesNfsMembersBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/nfs/members][%d] postApi24PoliciesNfsMembersBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesNfsMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesNfsMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_parameters.go index af0b633..ae3be63 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesNfsParams creates a new PostAPI24PoliciesNfsParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_responses.go index 0353b6a..3849014 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_nfs_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_nfs_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesNfsReader is a Reader for the PostAPI24PoliciesNfs structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesNfsReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesNfsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesNfsOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPostApi24PoliciesNfsBadRequest creates a PostApi24PoliciesNfsBadRequest with default headers values +func NewPostApi24PoliciesNfsBadRequest() *PostApi24PoliciesNfsBadRequest { + return &PostApi24PoliciesNfsBadRequest{} +} + +/*PostApi24PoliciesNfsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesNfsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesNfsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/nfs][%d] postApi24PoliciesNfsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesNfsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesNfsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_parameters.go index 340595d..c810c32 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesSmbClientRulesParams creates a new PostAPI24PoliciesSmbClientRulesParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_responses.go index e657be8..935e6b2 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_client_rules_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesSmbClientRulesReader is a Reader for the PostAPI24PoliciesSmbClientRules structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesSmbClientRulesReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesSmbClientRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesSmbClientRulesOK) readResponse(response runtime.Client return nil } + +// NewPostApi24PoliciesSmbClientRulesBadRequest creates a PostApi24PoliciesSmbClientRulesBadRequest with default headers values +func NewPostApi24PoliciesSmbClientRulesBadRequest() *PostApi24PoliciesSmbClientRulesBadRequest { + return &PostApi24PoliciesSmbClientRulesBadRequest{} +} + +/*PostApi24PoliciesSmbClientRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesSmbClientRulesBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesSmbClientRulesBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/smb/client-rules][%d] postApi24PoliciesSmbClientRulesBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesSmbClientRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesSmbClientRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_members_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_members_parameters.go index e3d84bb..9af36ed 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_members_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_members_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesSmbMembersParams creates a new PostAPI24PoliciesSmbMembersParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_members_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_members_responses.go index b57ff4d..04418fb 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_members_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesSmbMembersReader is a Reader for the PostAPI24PoliciesSmbMembers structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesSmbMembersReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesSmbMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesSmbMembersOK) readResponse(response runtime.ClientResp return nil } + +// NewPostApi24PoliciesSmbMembersBadRequest creates a PostApi24PoliciesSmbMembersBadRequest with default headers values +func NewPostApi24PoliciesSmbMembersBadRequest() *PostApi24PoliciesSmbMembersBadRequest { + return &PostApi24PoliciesSmbMembersBadRequest{} +} + +/*PostApi24PoliciesSmbMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesSmbMembersBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesSmbMembersBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/smb/members][%d] postApi24PoliciesSmbMembersBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesSmbMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesSmbMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_parameters.go index 93342c8..15e45dc 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesSmbParams creates a new PostAPI24PoliciesSmbParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_responses.go index 06b36fb..395fa05 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_smb_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_smb_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesSmbReader is a Reader for the PostAPI24PoliciesSmb structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesSmbReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesSmbBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesSmbOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPostApi24PoliciesSmbBadRequest creates a PostApi24PoliciesSmbBadRequest with default headers values +func NewPostApi24PoliciesSmbBadRequest() *PostApi24PoliciesSmbBadRequest { + return &PostApi24PoliciesSmbBadRequest{} +} + +/*PostApi24PoliciesSmbBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesSmbBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesSmbBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/smb][%d] postApi24PoliciesSmbBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesSmbBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesSmbBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_parameters.go index edb1b35..6f66a9b 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesSnapshotMembersParams creates a new PostAPI24PoliciesSnapshotMembersParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_responses.go index 1a4a53b..d451107 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_members_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesSnapshotMembersReader is a Reader for the PostAPI24PoliciesSnapshotMembers structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesSnapshotMembersReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesSnapshotMembersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesSnapshotMembersOK) readResponse(response runtime.Clien return nil } + +// NewPostApi24PoliciesSnapshotMembersBadRequest creates a PostApi24PoliciesSnapshotMembersBadRequest with default headers values +func NewPostApi24PoliciesSnapshotMembersBadRequest() *PostApi24PoliciesSnapshotMembersBadRequest { + return &PostApi24PoliciesSnapshotMembersBadRequest{} +} + +/*PostApi24PoliciesSnapshotMembersBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesSnapshotMembersBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesSnapshotMembersBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/snapshot/members][%d] postApi24PoliciesSnapshotMembersBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesSnapshotMembersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesSnapshotMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_parameters.go index 7484488..4a680b4 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesSnapshotParams creates a new PostAPI24PoliciesSnapshotParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_responses.go index 29029f4..b92ad3b 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesSnapshotReader is a Reader for the PostAPI24PoliciesSnapshot structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesSnapshotReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesSnapshotBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesSnapshotOK) readResponse(response runtime.ClientRespon return nil } + +// NewPostApi24PoliciesSnapshotBadRequest creates a PostApi24PoliciesSnapshotBadRequest with default headers values +func NewPostApi24PoliciesSnapshotBadRequest() *PostApi24PoliciesSnapshotBadRequest { + return &PostApi24PoliciesSnapshotBadRequest{} +} + +/*PostApi24PoliciesSnapshotBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesSnapshotBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesSnapshotBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/snapshot][%d] postApi24PoliciesSnapshotBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesSnapshotBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesSnapshotBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_parameters.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_parameters.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_parameters.go index 0c356a4..566c785 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24PoliciesSnapshotRulesParams creates a new PostAPI24PoliciesSnapshotRulesParams object diff --git a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_responses.go b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_responses.go rename to cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_responses.go index 6d9891c..a6870ba 100644 --- a/cbs/internal/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_responses.go +++ b/cbs/internal/array/faclient/2.4/client/policies/post_api_24_policies_snapshot_rules_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24PoliciesSnapshotRulesReader is a Reader for the PostAPI24PoliciesSnapshotRules structure. @@ -29,6 +29,12 @@ func (o *PostAPI24PoliciesSnapshotRulesReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewPostApi24PoliciesSnapshotRulesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24PoliciesSnapshotRulesOK) readResponse(response runtime.ClientR return nil } + +// NewPostApi24PoliciesSnapshotRulesBadRequest creates a PostApi24PoliciesSnapshotRulesBadRequest with default headers values +func NewPostApi24PoliciesSnapshotRulesBadRequest() *PostApi24PoliciesSnapshotRulesBadRequest { + return &PostApi24PoliciesSnapshotRulesBadRequest{} +} + +/*PostApi24PoliciesSnapshotRulesBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24PoliciesSnapshotRulesBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24PoliciesSnapshotRulesBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/policies/snapshot/rules][%d] postApi24PoliciesSnapshotRulesBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24PoliciesSnapshotRulesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24PoliciesSnapshotRulesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/ports/get_api_24_ports_initiators_parameters.go b/cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_initiators_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/ports/get_api_24_ports_initiators_parameters.go rename to cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_initiators_parameters.go diff --git a/cbs/internal/faclient/2.4/client/ports/get_api_24_ports_initiators_responses.go b/cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_initiators_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/ports/get_api_24_ports_initiators_responses.go rename to cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_initiators_responses.go index 758990b..dc3d415 100644 --- a/cbs/internal/faclient/2.4/client/ports/get_api_24_ports_initiators_responses.go +++ b/cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_initiators_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PortsInitiatorsReader is a Reader for the GetAPI24PortsInitiators structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PortsInitiatorsReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24PortsInitiatorsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PortsInitiatorsOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24PortsInitiatorsBadRequest creates a GetApi24PortsInitiatorsBadRequest with default headers values +func NewGetApi24PortsInitiatorsBadRequest() *GetApi24PortsInitiatorsBadRequest { + return &GetApi24PortsInitiatorsBadRequest{} +} + +/*GetApi24PortsInitiatorsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PortsInitiatorsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PortsInitiatorsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/ports/initiators][%d] getApi24PortsInitiatorsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PortsInitiatorsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PortsInitiatorsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/ports/get_api_24_ports_parameters.go b/cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/ports/get_api_24_ports_parameters.go rename to cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_parameters.go diff --git a/cbs/internal/faclient/2.4/client/ports/get_api_24_ports_responses.go b/cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/ports/get_api_24_ports_responses.go rename to cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_responses.go index 2e20539..7837a75 100644 --- a/cbs/internal/faclient/2.4/client/ports/get_api_24_ports_responses.go +++ b/cbs/internal/array/faclient/2.4/client/ports/get_api_24_ports_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24PortsReader is a Reader for the GetAPI24Ports structure. @@ -29,6 +29,12 @@ func (o *GetAPI24PortsReader) ReadResponse(response runtime.ClientResponse, cons return nil, err } return result, nil + case 400: + result := NewGetApi24PortsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24PortsOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewGetApi24PortsBadRequest creates a GetApi24PortsBadRequest with default headers values +func NewGetApi24PortsBadRequest() *GetApi24PortsBadRequest { + return &GetApi24PortsBadRequest{} +} + +/*GetApi24PortsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24PortsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24PortsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/ports][%d] getApi24PortsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24PortsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24PortsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/ports/ports_client.go b/cbs/internal/array/faclient/2.4/client/ports/ports_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/ports/ports_client.go rename to cbs/internal/array/faclient/2.4/client/ports/ports_client.go diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_responses.go index c4fbdff..d8e8964 100644 --- a/cbs/internal/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/delete_api_24_protection_group_snapshots_responses.go @@ -7,9 +7,12 @@ package protection_group_snapshots import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ProtectionGroupSnapshotsReader is a Reader for the DeleteAPI24ProtectionGroupSnapshots structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ProtectionGroupSnapshotsReader) ReadResponse(response runtim return nil, err } return result, nil + case 400: + result := NewDeleteApi24ProtectionGroupSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ProtectionGroupSnapshotsOK) readResponse(response runtime.Cl return nil } + +// NewDeleteApi24ProtectionGroupSnapshotsBadRequest creates a DeleteApi24ProtectionGroupSnapshotsBadRequest with default headers values +func NewDeleteApi24ProtectionGroupSnapshotsBadRequest() *DeleteApi24ProtectionGroupSnapshotsBadRequest { + return &DeleteApi24ProtectionGroupSnapshotsBadRequest{} +} + +/*DeleteApi24ProtectionGroupSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ProtectionGroupSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ProtectionGroupSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/protection-group-snapshots][%d] deleteApi24ProtectionGroupSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ProtectionGroupSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ProtectionGroupSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_responses.go index 33a5d8a..fe8c27d 100644 --- a/cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupSnapshotsReader is a Reader for the GetAPI24ProtectionGroupSnapshots structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupSnapshotsReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupSnapshotsOK) readResponse(response runtime.Clien return nil } + +// NewGetApi24ProtectionGroupSnapshotsBadRequest creates a GetApi24ProtectionGroupSnapshotsBadRequest with default headers values +func NewGetApi24ProtectionGroupSnapshotsBadRequest() *GetApi24ProtectionGroupSnapshotsBadRequest { + return &GetApi24ProtectionGroupSnapshotsBadRequest{} +} + +/*GetApi24ProtectionGroupSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-group-snapshots][%d] getApi24ProtectionGroupSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_responses.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_responses.go index 2c4c372..e231706 100644 --- a/cbs/internal/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/get_api_24_protection_group_snapshots_transfer_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupSnapshotsTransferReader is a Reader for the GetAPI24ProtectionGroupSnapshotsTransfer structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupSnapshotsTransferReader) ReadResponse(response r return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupSnapshotsTransferBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupSnapshotsTransferOK) readResponse(response runti return nil } + +// NewGetApi24ProtectionGroupSnapshotsTransferBadRequest creates a GetApi24ProtectionGroupSnapshotsTransferBadRequest with default headers values +func NewGetApi24ProtectionGroupSnapshotsTransferBadRequest() *GetApi24ProtectionGroupSnapshotsTransferBadRequest { + return &GetApi24ProtectionGroupSnapshotsTransferBadRequest{} +} + +/*GetApi24ProtectionGroupSnapshotsTransferBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupSnapshotsTransferBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupSnapshotsTransferBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-group-snapshots/transfer][%d] getApi24ProtectionGroupSnapshotsTransferBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupSnapshotsTransferBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupSnapshotsTransferBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_parameters.go index 733891f..49bf802 100644 --- a/cbs/internal/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24ProtectionGroupSnapshotsParams creates a new PatchAPI24ProtectionGroupSnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_responses.go index a5e79e6..eafadfa 100644 --- a/cbs/internal/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/patch_api_24_protection_group_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24ProtectionGroupSnapshotsReader is a Reader for the PatchAPI24ProtectionGroupSnapshots structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24ProtectionGroupSnapshotsReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewPatchApi24ProtectionGroupSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24ProtectionGroupSnapshotsOK) readResponse(response runtime.Cli return nil } + +// NewPatchApi24ProtectionGroupSnapshotsBadRequest creates a PatchApi24ProtectionGroupSnapshotsBadRequest with default headers values +func NewPatchApi24ProtectionGroupSnapshotsBadRequest() *PatchApi24ProtectionGroupSnapshotsBadRequest { + return &PatchApi24ProtectionGroupSnapshotsBadRequest{} +} + +/*PatchApi24ProtectionGroupSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24ProtectionGroupSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24ProtectionGroupSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/protection-group-snapshots][%d] patchApi24ProtectionGroupSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24ProtectionGroupSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24ProtectionGroupSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_parameters.go index e53d836..f2b50bb 100644 --- a/cbs/internal/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24ProtectionGroupSnapshotsParams creates a new PostAPI24ProtectionGroupSnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_responses.go index f001c92..e6bbc21 100644 --- a/cbs/internal/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/post_api_24_protection_group_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ProtectionGroupSnapshotsReader is a Reader for the PostAPI24ProtectionGroupSnapshots structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ProtectionGroupSnapshotsReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewPostApi24ProtectionGroupSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ProtectionGroupSnapshotsOK) readResponse(response runtime.Clie return nil } + +// NewPostApi24ProtectionGroupSnapshotsBadRequest creates a PostApi24ProtectionGroupSnapshotsBadRequest with default headers values +func NewPostApi24ProtectionGroupSnapshotsBadRequest() *PostApi24ProtectionGroupSnapshotsBadRequest { + return &PostApi24ProtectionGroupSnapshotsBadRequest{} +} + +/*PostApi24ProtectionGroupSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ProtectionGroupSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ProtectionGroupSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/protection-group-snapshots][%d] postApi24ProtectionGroupSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ProtectionGroupSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ProtectionGroupSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_group_snapshots/protection_group_snapshots_client.go b/cbs/internal/array/faclient/2.4/client/protection_group_snapshots/protection_group_snapshots_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_group_snapshots/protection_group_snapshots_client.go rename to cbs/internal/array/faclient/2.4/client/protection_group_snapshots/protection_group_snapshots_client.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_responses.go index fa728dd..26d864e 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_host_groups_responses.go @@ -7,9 +7,12 @@ package protection_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ProtectionGroupsHostGroupsReader is a Reader for the DeleteAPI24ProtectionGroupsHostGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ProtectionGroupsHostGroupsReader) ReadResponse(response runt return nil, err } return result, nil + case 400: + result := NewDeleteApi24ProtectionGroupsHostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ProtectionGroupsHostGroupsOK) readResponse(response runtime. return nil } + +// NewDeleteApi24ProtectionGroupsHostGroupsBadRequest creates a DeleteApi24ProtectionGroupsHostGroupsBadRequest with default headers values +func NewDeleteApi24ProtectionGroupsHostGroupsBadRequest() *DeleteApi24ProtectionGroupsHostGroupsBadRequest { + return &DeleteApi24ProtectionGroupsHostGroupsBadRequest{} +} + +/*DeleteApi24ProtectionGroupsHostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ProtectionGroupsHostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ProtectionGroupsHostGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/protection-groups/host-groups][%d] deleteApi24ProtectionGroupsHostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ProtectionGroupsHostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ProtectionGroupsHostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_responses.go index 88019d5..ac5e507 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_hosts_responses.go @@ -7,9 +7,12 @@ package protection_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ProtectionGroupsHostsReader is a Reader for the DeleteAPI24ProtectionGroupsHosts structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ProtectionGroupsHostsReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewDeleteApi24ProtectionGroupsHostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ProtectionGroupsHostsOK) readResponse(response runtime.Clien return nil } + +// NewDeleteApi24ProtectionGroupsHostsBadRequest creates a DeleteApi24ProtectionGroupsHostsBadRequest with default headers values +func NewDeleteApi24ProtectionGroupsHostsBadRequest() *DeleteApi24ProtectionGroupsHostsBadRequest { + return &DeleteApi24ProtectionGroupsHostsBadRequest{} +} + +/*DeleteApi24ProtectionGroupsHostsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ProtectionGroupsHostsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ProtectionGroupsHostsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/protection-groups/hosts][%d] deleteApi24ProtectionGroupsHostsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ProtectionGroupsHostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ProtectionGroupsHostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_responses.go index 397c595..fb02c95 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_responses.go @@ -7,9 +7,12 @@ package protection_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ProtectionGroupsReader is a Reader for the DeleteAPI24ProtectionGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ProtectionGroupsReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewDeleteApi24ProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ProtectionGroupsOK) readResponse(response runtime.ClientResp return nil } + +// NewDeleteApi24ProtectionGroupsBadRequest creates a DeleteApi24ProtectionGroupsBadRequest with default headers values +func NewDeleteApi24ProtectionGroupsBadRequest() *DeleteApi24ProtectionGroupsBadRequest { + return &DeleteApi24ProtectionGroupsBadRequest{} +} + +/*DeleteApi24ProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/protection-groups][%d] deleteApi24ProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_responses.go index 607a31b..0c3618b 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_targets_responses.go @@ -7,9 +7,12 @@ package protection_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ProtectionGroupsTargetsReader is a Reader for the DeleteAPI24ProtectionGroupsTargets structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ProtectionGroupsTargetsReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewDeleteApi24ProtectionGroupsTargetsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ProtectionGroupsTargetsOK) readResponse(response runtime.Cli return nil } + +// NewDeleteApi24ProtectionGroupsTargetsBadRequest creates a DeleteApi24ProtectionGroupsTargetsBadRequest with default headers values +func NewDeleteApi24ProtectionGroupsTargetsBadRequest() *DeleteApi24ProtectionGroupsTargetsBadRequest { + return &DeleteApi24ProtectionGroupsTargetsBadRequest{} +} + +/*DeleteApi24ProtectionGroupsTargetsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ProtectionGroupsTargetsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ProtectionGroupsTargetsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/protection-groups/targets][%d] deleteApi24ProtectionGroupsTargetsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ProtectionGroupsTargetsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ProtectionGroupsTargetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_responses.go index a2dab05..1d86d5c 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/delete_api_24_protection_groups_volumes_responses.go @@ -7,9 +7,12 @@ package protection_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24ProtectionGroupsVolumesReader is a Reader for the DeleteAPI24ProtectionGroupsVolumes structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24ProtectionGroupsVolumesReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewDeleteApi24ProtectionGroupsVolumesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24ProtectionGroupsVolumesOK) readResponse(response runtime.Cli return nil } + +// NewDeleteApi24ProtectionGroupsVolumesBadRequest creates a DeleteApi24ProtectionGroupsVolumesBadRequest with default headers values +func NewDeleteApi24ProtectionGroupsVolumesBadRequest() *DeleteApi24ProtectionGroupsVolumesBadRequest { + return &DeleteApi24ProtectionGroupsVolumesBadRequest{} +} + +/*DeleteApi24ProtectionGroupsVolumesBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24ProtectionGroupsVolumesBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24ProtectionGroupsVolumesBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/protection-groups/volumes][%d] deleteApi24ProtectionGroupsVolumesBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24ProtectionGroupsVolumesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24ProtectionGroupsVolumesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_responses.go index dda9c60..c5625c4 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_host_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupsHostGroupsReader is a Reader for the GetAPI24ProtectionGroupsHostGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupsHostGroupsReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupsHostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupsHostGroupsOK) readResponse(response runtime.Cli return nil } + +// NewGetApi24ProtectionGroupsHostGroupsBadRequest creates a GetApi24ProtectionGroupsHostGroupsBadRequest with default headers values +func NewGetApi24ProtectionGroupsHostGroupsBadRequest() *GetApi24ProtectionGroupsHostGroupsBadRequest { + return &GetApi24ProtectionGroupsHostGroupsBadRequest{} +} + +/*GetApi24ProtectionGroupsHostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupsHostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupsHostGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-groups/host-groups][%d] getApi24ProtectionGroupsHostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupsHostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupsHostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_responses.go index f3097bc..29f034d 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_hosts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupsHostsReader is a Reader for the GetAPI24ProtectionGroupsHosts structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupsHostsReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupsHostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupsHostsOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24ProtectionGroupsHostsBadRequest creates a GetApi24ProtectionGroupsHostsBadRequest with default headers values +func NewGetApi24ProtectionGroupsHostsBadRequest() *GetApi24ProtectionGroupsHostsBadRequest { + return &GetApi24ProtectionGroupsHostsBadRequest{} +} + +/*GetApi24ProtectionGroupsHostsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupsHostsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupsHostsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-groups/hosts][%d] getApi24ProtectionGroupsHostsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupsHostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupsHostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_responses.go index 41c2ee6..09c4644 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_by_array_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupsPerformanceReplicationByArrayReader is a Reader for the GetAPI24ProtectionGroupsPerformanceReplicationByArray structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupsPerformanceReplicationByArrayReader) ReadRespon return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupsPerformanceReplicationByArrayOK) readResponse(r return nil } + +// NewGetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest creates a GetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest with default headers values +func NewGetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest() *GetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest { + return &GetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest{} +} + +/*GetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-groups/performance/replication/by-array][%d] getApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupsPerformanceReplicationByArrayBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_responses.go index 34ac322..6a46bc6 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_performance_replication_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupsPerformanceReplicationReader is a Reader for the GetAPI24ProtectionGroupsPerformanceReplication structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupsPerformanceReplicationReader) ReadResponse(resp return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupsPerformanceReplicationBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupsPerformanceReplicationOK) readResponse(response return nil } + +// NewGetApi24ProtectionGroupsPerformanceReplicationBadRequest creates a GetApi24ProtectionGroupsPerformanceReplicationBadRequest with default headers values +func NewGetApi24ProtectionGroupsPerformanceReplicationBadRequest() *GetApi24ProtectionGroupsPerformanceReplicationBadRequest { + return &GetApi24ProtectionGroupsPerformanceReplicationBadRequest{} +} + +/*GetApi24ProtectionGroupsPerformanceReplicationBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupsPerformanceReplicationBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupsPerformanceReplicationBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-groups/performance/replication][%d] getApi24ProtectionGroupsPerformanceReplicationBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupsPerformanceReplicationBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupsPerformanceReplicationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_responses.go index c572b2c..ca6d262 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupsReader is a Reader for the GetAPI24ProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupsReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupsOK) readResponse(response runtime.ClientRespons return nil } + +// NewGetApi24ProtectionGroupsBadRequest creates a GetApi24ProtectionGroupsBadRequest with default headers values +func NewGetApi24ProtectionGroupsBadRequest() *GetApi24ProtectionGroupsBadRequest { + return &GetApi24ProtectionGroupsBadRequest{} +} + +/*GetApi24ProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-groups][%d] getApi24ProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_responses.go index 7bcca87..cf606fb 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_space_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupsSpaceReader is a Reader for the GetAPI24ProtectionGroupsSpace structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupsSpaceReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupsSpaceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupsSpaceOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24ProtectionGroupsSpaceBadRequest creates a GetApi24ProtectionGroupsSpaceBadRequest with default headers values +func NewGetApi24ProtectionGroupsSpaceBadRequest() *GetApi24ProtectionGroupsSpaceBadRequest { + return &GetApi24ProtectionGroupsSpaceBadRequest{} +} + +/*GetApi24ProtectionGroupsSpaceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupsSpaceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupsSpaceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-groups/space][%d] getApi24ProtectionGroupsSpaceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupsSpaceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupsSpaceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_responses.go index 385443b..76f56ee 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_targets_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupsTargetsReader is a Reader for the GetAPI24ProtectionGroupsTargets structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupsTargetsReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupsTargetsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupsTargetsOK) readResponse(response runtime.Client return nil } + +// NewGetApi24ProtectionGroupsTargetsBadRequest creates a GetApi24ProtectionGroupsTargetsBadRequest with default headers values +func NewGetApi24ProtectionGroupsTargetsBadRequest() *GetApi24ProtectionGroupsTargetsBadRequest { + return &GetApi24ProtectionGroupsTargetsBadRequest{} +} + +/*GetApi24ProtectionGroupsTargetsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupsTargetsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupsTargetsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-groups/targets][%d] getApi24ProtectionGroupsTargetsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupsTargetsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupsTargetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_responses.go index 5a99d7c..42b8f95 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/get_api_24_protection_groups_volumes_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24ProtectionGroupsVolumesReader is a Reader for the GetAPI24ProtectionGroupsVolumes structure. @@ -29,6 +29,12 @@ func (o *GetAPI24ProtectionGroupsVolumesReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24ProtectionGroupsVolumesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24ProtectionGroupsVolumesOK) readResponse(response runtime.Client return nil } + +// NewGetApi24ProtectionGroupsVolumesBadRequest creates a GetApi24ProtectionGroupsVolumesBadRequest with default headers values +func NewGetApi24ProtectionGroupsVolumesBadRequest() *GetApi24ProtectionGroupsVolumesBadRequest { + return &GetApi24ProtectionGroupsVolumesBadRequest{} +} + +/*GetApi24ProtectionGroupsVolumesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24ProtectionGroupsVolumesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24ProtectionGroupsVolumesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/protection-groups/volumes][%d] getApi24ProtectionGroupsVolumesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24ProtectionGroupsVolumesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24ProtectionGroupsVolumesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_parameters.go index 4e9b4cc..2513b8a 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24ProtectionGroupsParams creates a new PatchAPI24ProtectionGroupsParams object diff --git a/cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_responses.go index 739fc3c..6cb7d92 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24ProtectionGroupsReader is a Reader for the PatchAPI24ProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24ProtectionGroupsReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewPatchApi24ProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24ProtectionGroupsOK) readResponse(response runtime.ClientRespo return nil } + +// NewPatchApi24ProtectionGroupsBadRequest creates a PatchApi24ProtectionGroupsBadRequest with default headers values +func NewPatchApi24ProtectionGroupsBadRequest() *PatchApi24ProtectionGroupsBadRequest { + return &PatchApi24ProtectionGroupsBadRequest{} +} + +/*PatchApi24ProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24ProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24ProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/protection-groups][%d] patchApi24ProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24ProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24ProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_parameters.go index 07d13da..a6afdf0 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24ProtectionGroupsTargetsParams creates a new PatchAPI24ProtectionGroupsTargetsParams object diff --git a/cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_responses.go index 35293ed..f4d08fa 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/patch_api_24_protection_groups_targets_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24ProtectionGroupsTargetsReader is a Reader for the PatchAPI24ProtectionGroupsTargets structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24ProtectionGroupsTargetsReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewPatchApi24ProtectionGroupsTargetsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24ProtectionGroupsTargetsOK) readResponse(response runtime.Clie return nil } + +// NewPatchApi24ProtectionGroupsTargetsBadRequest creates a PatchApi24ProtectionGroupsTargetsBadRequest with default headers values +func NewPatchApi24ProtectionGroupsTargetsBadRequest() *PatchApi24ProtectionGroupsTargetsBadRequest { + return &PatchApi24ProtectionGroupsTargetsBadRequest{} +} + +/*PatchApi24ProtectionGroupsTargetsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24ProtectionGroupsTargetsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24ProtectionGroupsTargetsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/protection-groups/targets][%d] patchApi24ProtectionGroupsTargetsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24ProtectionGroupsTargetsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24ProtectionGroupsTargetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_responses.go index b008981..0d29b37 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_host_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ProtectionGroupsHostGroupsReader is a Reader for the PostAPI24ProtectionGroupsHostGroups structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ProtectionGroupsHostGroupsReader) ReadResponse(response runtim return nil, err } return result, nil + case 400: + result := NewPostApi24ProtectionGroupsHostGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ProtectionGroupsHostGroupsOK) readResponse(response runtime.Cl return nil } + +// NewPostApi24ProtectionGroupsHostGroupsBadRequest creates a PostApi24ProtectionGroupsHostGroupsBadRequest with default headers values +func NewPostApi24ProtectionGroupsHostGroupsBadRequest() *PostApi24ProtectionGroupsHostGroupsBadRequest { + return &PostApi24ProtectionGroupsHostGroupsBadRequest{} +} + +/*PostApi24ProtectionGroupsHostGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ProtectionGroupsHostGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ProtectionGroupsHostGroupsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/protection-groups/host-groups][%d] postApi24ProtectionGroupsHostGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ProtectionGroupsHostGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ProtectionGroupsHostGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_responses.go index d0e6527..7617ee8 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_hosts_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ProtectionGroupsHostsReader is a Reader for the PostAPI24ProtectionGroupsHosts structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ProtectionGroupsHostsReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewPostApi24ProtectionGroupsHostsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ProtectionGroupsHostsOK) readResponse(response runtime.ClientR return nil } + +// NewPostApi24ProtectionGroupsHostsBadRequest creates a PostApi24ProtectionGroupsHostsBadRequest with default headers values +func NewPostApi24ProtectionGroupsHostsBadRequest() *PostApi24ProtectionGroupsHostsBadRequest { + return &PostApi24ProtectionGroupsHostsBadRequest{} +} + +/*PostApi24ProtectionGroupsHostsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ProtectionGroupsHostsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ProtectionGroupsHostsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/protection-groups/hosts][%d] postApi24ProtectionGroupsHostsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ProtectionGroupsHostsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ProtectionGroupsHostsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_responses.go index dabd500..94e3682 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ProtectionGroupsReader is a Reader for the PostAPI24ProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ProtectionGroupsReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewPostApi24ProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ProtectionGroupsOK) readResponse(response runtime.ClientRespon return nil } + +// NewPostApi24ProtectionGroupsBadRequest creates a PostApi24ProtectionGroupsBadRequest with default headers values +func NewPostApi24ProtectionGroupsBadRequest() *PostApi24ProtectionGroupsBadRequest { + return &PostApi24ProtectionGroupsBadRequest{} +} + +/*PostApi24ProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/protection-groups][%d] postApi24ProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_responses.go index 8c0cbb0..fefbbe7 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_targets_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ProtectionGroupsTargetsReader is a Reader for the PostAPI24ProtectionGroupsTargets structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ProtectionGroupsTargetsReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewPostApi24ProtectionGroupsTargetsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ProtectionGroupsTargetsOK) readResponse(response runtime.Clien return nil } + +// NewPostApi24ProtectionGroupsTargetsBadRequest creates a PostApi24ProtectionGroupsTargetsBadRequest with default headers values +func NewPostApi24ProtectionGroupsTargetsBadRequest() *PostApi24ProtectionGroupsTargetsBadRequest { + return &PostApi24ProtectionGroupsTargetsBadRequest{} +} + +/*PostApi24ProtectionGroupsTargetsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ProtectionGroupsTargetsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ProtectionGroupsTargetsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/protection-groups/targets][%d] postApi24ProtectionGroupsTargetsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ProtectionGroupsTargetsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ProtectionGroupsTargetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_parameters.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_parameters.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_parameters.go diff --git a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_responses.go b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_responses.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_responses.go index 80b52bd..a4ab146 100644 --- a/cbs/internal/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/protection_groups/post_api_24_protection_groups_volumes_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24ProtectionGroupsVolumesReader is a Reader for the PostAPI24ProtectionGroupsVolumes structure. @@ -29,6 +29,12 @@ func (o *PostAPI24ProtectionGroupsVolumesReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewPostApi24ProtectionGroupsVolumesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24ProtectionGroupsVolumesOK) readResponse(response runtime.Clien return nil } + +// NewPostApi24ProtectionGroupsVolumesBadRequest creates a PostApi24ProtectionGroupsVolumesBadRequest with default headers values +func NewPostApi24ProtectionGroupsVolumesBadRequest() *PostApi24ProtectionGroupsVolumesBadRequest { + return &PostApi24ProtectionGroupsVolumesBadRequest{} +} + +/*PostApi24ProtectionGroupsVolumesBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24ProtectionGroupsVolumesBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24ProtectionGroupsVolumesBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/protection-groups/volumes][%d] postApi24ProtectionGroupsVolumesBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24ProtectionGroupsVolumesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24ProtectionGroupsVolumesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/protection_groups/protection_groups_client.go b/cbs/internal/array/faclient/2.4/client/protection_groups/protection_groups_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/protection_groups/protection_groups_client.go rename to cbs/internal/array/faclient/2.4/client/protection_groups/protection_groups_client.go diff --git a/cbs/internal/faclient/2.4/client/remote_pods/get_api_24_remote_pods_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_pods/get_api_24_remote_pods_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_pods/get_api_24_remote_pods_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_pods/get_api_24_remote_pods_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_pods/get_api_24_remote_pods_responses.go b/cbs/internal/array/faclient/2.4/client/remote_pods/get_api_24_remote_pods_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_pods/get_api_24_remote_pods_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_pods/get_api_24_remote_pods_responses.go index 0895d85..4c7dddb 100644 --- a/cbs/internal/faclient/2.4/client/remote_pods/get_api_24_remote_pods_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_pods/get_api_24_remote_pods_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24RemotePodsReader is a Reader for the GetAPI24RemotePods structure. @@ -29,6 +29,12 @@ func (o *GetAPI24RemotePodsReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24RemotePodsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24RemotePodsOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewGetApi24RemotePodsBadRequest creates a GetApi24RemotePodsBadRequest with default headers values +func NewGetApi24RemotePodsBadRequest() *GetApi24RemotePodsBadRequest { + return &GetApi24RemotePodsBadRequest{} +} + +/*GetApi24RemotePodsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24RemotePodsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24RemotePodsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/remote-pods][%d] getApi24RemotePodsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24RemotePodsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24RemotePodsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_pods/remote_pods_client.go b/cbs/internal/array/faclient/2.4/client/remote_pods/remote_pods_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_pods/remote_pods_client.go rename to cbs/internal/array/faclient/2.4/client/remote_pods/remote_pods_client.go diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_responses.go similarity index 55% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_responses.go index d416ac7..1348c17 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/delete_api_24_remote_protection_group_snapshots_responses.go @@ -7,9 +7,12 @@ package remote_protection_group_snapshots import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24RemoteProtectionGroupSnapshotsReader is a Reader for the DeleteAPI24RemoteProtectionGroupSnapshots structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24RemoteProtectionGroupSnapshotsReader) ReadResponse(response return nil, err } return result, nil + case 400: + result := NewDeleteApi24RemoteProtectionGroupSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24RemoteProtectionGroupSnapshotsOK) readResponse(response runt return nil } + +// NewDeleteApi24RemoteProtectionGroupSnapshotsBadRequest creates a DeleteApi24RemoteProtectionGroupSnapshotsBadRequest with default headers values +func NewDeleteApi24RemoteProtectionGroupSnapshotsBadRequest() *DeleteApi24RemoteProtectionGroupSnapshotsBadRequest { + return &DeleteApi24RemoteProtectionGroupSnapshotsBadRequest{} +} + +/*DeleteApi24RemoteProtectionGroupSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24RemoteProtectionGroupSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24RemoteProtectionGroupSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/remote-protection-group-snapshots][%d] deleteApi24RemoteProtectionGroupSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24RemoteProtectionGroupSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24RemoteProtectionGroupSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_responses.go index a3a79da..cb71245 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24RemoteProtectionGroupSnapshotsReader is a Reader for the GetAPI24RemoteProtectionGroupSnapshots structure. @@ -29,6 +29,12 @@ func (o *GetAPI24RemoteProtectionGroupSnapshotsReader) ReadResponse(response run return nil, err } return result, nil + case 400: + result := NewGetApi24RemoteProtectionGroupSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24RemoteProtectionGroupSnapshotsOK) readResponse(response runtime return nil } + +// NewGetApi24RemoteProtectionGroupSnapshotsBadRequest creates a GetApi24RemoteProtectionGroupSnapshotsBadRequest with default headers values +func NewGetApi24RemoteProtectionGroupSnapshotsBadRequest() *GetApi24RemoteProtectionGroupSnapshotsBadRequest { + return &GetApi24RemoteProtectionGroupSnapshotsBadRequest{} +} + +/*GetApi24RemoteProtectionGroupSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24RemoteProtectionGroupSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24RemoteProtectionGroupSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/remote-protection-group-snapshots][%d] getApi24RemoteProtectionGroupSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24RemoteProtectionGroupSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24RemoteProtectionGroupSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_responses.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_responses.go index fed8a47..41426c6 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/get_api_24_remote_protection_group_snapshots_transfer_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24RemoteProtectionGroupSnapshotsTransferReader is a Reader for the GetAPI24RemoteProtectionGroupSnapshotsTransfer structure. @@ -29,6 +29,12 @@ func (o *GetAPI24RemoteProtectionGroupSnapshotsTransferReader) ReadResponse(resp return nil, err } return result, nil + case 400: + result := NewGetApi24RemoteProtectionGroupSnapshotsTransferBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24RemoteProtectionGroupSnapshotsTransferOK) readResponse(response return nil } + +// NewGetApi24RemoteProtectionGroupSnapshotsTransferBadRequest creates a GetApi24RemoteProtectionGroupSnapshotsTransferBadRequest with default headers values +func NewGetApi24RemoteProtectionGroupSnapshotsTransferBadRequest() *GetApi24RemoteProtectionGroupSnapshotsTransferBadRequest { + return &GetApi24RemoteProtectionGroupSnapshotsTransferBadRequest{} +} + +/*GetApi24RemoteProtectionGroupSnapshotsTransferBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24RemoteProtectionGroupSnapshotsTransferBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24RemoteProtectionGroupSnapshotsTransferBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/remote-protection-group-snapshots/transfer][%d] getApi24RemoteProtectionGroupSnapshotsTransferBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24RemoteProtectionGroupSnapshotsTransferBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24RemoteProtectionGroupSnapshotsTransferBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_parameters.go index 8f7191b..bf8c59d 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24RemoteProtectionGroupSnapshotsParams creates a new PatchAPI24RemoteProtectionGroupSnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_responses.go index 9f95331..4ef6eff 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/patch_api_24_remote_protection_group_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24RemoteProtectionGroupSnapshotsReader is a Reader for the PatchAPI24RemoteProtectionGroupSnapshots structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24RemoteProtectionGroupSnapshotsReader) ReadResponse(response r return nil, err } return result, nil + case 400: + result := NewPatchApi24RemoteProtectionGroupSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24RemoteProtectionGroupSnapshotsOK) readResponse(response runti return nil } + +// NewPatchApi24RemoteProtectionGroupSnapshotsBadRequest creates a PatchApi24RemoteProtectionGroupSnapshotsBadRequest with default headers values +func NewPatchApi24RemoteProtectionGroupSnapshotsBadRequest() *PatchApi24RemoteProtectionGroupSnapshotsBadRequest { + return &PatchApi24RemoteProtectionGroupSnapshotsBadRequest{} +} + +/*PatchApi24RemoteProtectionGroupSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24RemoteProtectionGroupSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24RemoteProtectionGroupSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/remote-protection-group-snapshots][%d] patchApi24RemoteProtectionGroupSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24RemoteProtectionGroupSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24RemoteProtectionGroupSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_parameters.go index b089c88..dc0ced9 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24RemoteProtectionGroupSnapshotsParams creates a new PostAPI24RemoteProtectionGroupSnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_responses.go index ee8ee7e..b9a2a7e 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/post_api_24_remote_protection_group_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24RemoteProtectionGroupSnapshotsReader is a Reader for the PostAPI24RemoteProtectionGroupSnapshots structure. @@ -29,6 +29,12 @@ func (o *PostAPI24RemoteProtectionGroupSnapshotsReader) ReadResponse(response ru return nil, err } return result, nil + case 400: + result := NewPostApi24RemoteProtectionGroupSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24RemoteProtectionGroupSnapshotsOK) readResponse(response runtim return nil } + +// NewPostApi24RemoteProtectionGroupSnapshotsBadRequest creates a PostApi24RemoteProtectionGroupSnapshotsBadRequest with default headers values +func NewPostApi24RemoteProtectionGroupSnapshotsBadRequest() *PostApi24RemoteProtectionGroupSnapshotsBadRequest { + return &PostApi24RemoteProtectionGroupSnapshotsBadRequest{} +} + +/*PostApi24RemoteProtectionGroupSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24RemoteProtectionGroupSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24RemoteProtectionGroupSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/remote-protection-group-snapshots][%d] postApi24RemoteProtectionGroupSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24RemoteProtectionGroupSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24RemoteProtectionGroupSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/remote_protection_group_snapshots_client.go b/cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/remote_protection_group_snapshots_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_protection_group_snapshots/remote_protection_group_snapshots_client.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_group_snapshots/remote_protection_group_snapshots_client.go diff --git a/cbs/internal/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_responses.go index 7d8c86c..e7614a7 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/delete_api_24_remote_protection_groups_responses.go @@ -7,9 +7,12 @@ package remote_protection_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24RemoteProtectionGroupsReader is a Reader for the DeleteAPI24RemoteProtectionGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24RemoteProtectionGroupsReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewDeleteApi24RemoteProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24RemoteProtectionGroupsOK) readResponse(response runtime.Clie return nil } + +// NewDeleteApi24RemoteProtectionGroupsBadRequest creates a DeleteApi24RemoteProtectionGroupsBadRequest with default headers values +func NewDeleteApi24RemoteProtectionGroupsBadRequest() *DeleteApi24RemoteProtectionGroupsBadRequest { + return &DeleteApi24RemoteProtectionGroupsBadRequest{} +} + +/*DeleteApi24RemoteProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24RemoteProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24RemoteProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/remote-protection-groups][%d] deleteApi24RemoteProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24RemoteProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24RemoteProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_responses.go index bd318c4..f406182 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/get_api_24_remote_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24RemoteProtectionGroupsReader is a Reader for the GetAPI24RemoteProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24RemoteProtectionGroupsReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewGetApi24RemoteProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24RemoteProtectionGroupsOK) readResponse(response runtime.ClientR return nil } + +// NewGetApi24RemoteProtectionGroupsBadRequest creates a GetApi24RemoteProtectionGroupsBadRequest with default headers values +func NewGetApi24RemoteProtectionGroupsBadRequest() *GetApi24RemoteProtectionGroupsBadRequest { + return &GetApi24RemoteProtectionGroupsBadRequest{} +} + +/*GetApi24RemoteProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24RemoteProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24RemoteProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/remote-protection-groups][%d] getApi24RemoteProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24RemoteProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24RemoteProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_parameters.go index 13aaaca..96f034e 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24RemoteProtectionGroupsParams creates a new PatchAPI24RemoteProtectionGroupsParams object diff --git a/cbs/internal/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_responses.go index dea4ecc..b95dedb 100644 --- a/cbs/internal/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/patch_api_24_remote_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24RemoteProtectionGroupsReader is a Reader for the PatchAPI24RemoteProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24RemoteProtectionGroupsReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewPatchApi24RemoteProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24RemoteProtectionGroupsOK) readResponse(response runtime.Clien return nil } + +// NewPatchApi24RemoteProtectionGroupsBadRequest creates a PatchApi24RemoteProtectionGroupsBadRequest with default headers values +func NewPatchApi24RemoteProtectionGroupsBadRequest() *PatchApi24RemoteProtectionGroupsBadRequest { + return &PatchApi24RemoteProtectionGroupsBadRequest{} +} + +/*PatchApi24RemoteProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24RemoteProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24RemoteProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/remote-protection-groups][%d] patchApi24RemoteProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24RemoteProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24RemoteProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_protection_groups/remote_protection_groups_client.go b/cbs/internal/array/faclient/2.4/client/remote_protection_groups/remote_protection_groups_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_protection_groups/remote_protection_groups_client.go rename to cbs/internal/array/faclient/2.4/client/remote_protection_groups/remote_protection_groups_client.go diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_responses.go index afd55d5..7c9a308 100644 --- a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/delete_api_24_remote_volume_snapshots_responses.go @@ -7,9 +7,12 @@ package remote_volume_snapshots import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24RemoteVolumeSnapshotsReader is a Reader for the DeleteAPI24RemoteVolumeSnapshots structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24RemoteVolumeSnapshotsReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewDeleteApi24RemoteVolumeSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24RemoteVolumeSnapshotsOK) readResponse(response runtime.Clien return nil } + +// NewDeleteApi24RemoteVolumeSnapshotsBadRequest creates a DeleteApi24RemoteVolumeSnapshotsBadRequest with default headers values +func NewDeleteApi24RemoteVolumeSnapshotsBadRequest() *DeleteApi24RemoteVolumeSnapshotsBadRequest { + return &DeleteApi24RemoteVolumeSnapshotsBadRequest{} +} + +/*DeleteApi24RemoteVolumeSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24RemoteVolumeSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24RemoteVolumeSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/remote-volume-snapshots][%d] deleteApi24RemoteVolumeSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24RemoteVolumeSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24RemoteVolumeSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_responses.go index c856efc..fdceb41 100644 --- a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24RemoteVolumeSnapshotsReader is a Reader for the GetAPI24RemoteVolumeSnapshots structure. @@ -29,6 +29,12 @@ func (o *GetAPI24RemoteVolumeSnapshotsReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24RemoteVolumeSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24RemoteVolumeSnapshotsOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24RemoteVolumeSnapshotsBadRequest creates a GetApi24RemoteVolumeSnapshotsBadRequest with default headers values +func NewGetApi24RemoteVolumeSnapshotsBadRequest() *GetApi24RemoteVolumeSnapshotsBadRequest { + return &GetApi24RemoteVolumeSnapshotsBadRequest{} +} + +/*GetApi24RemoteVolumeSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24RemoteVolumeSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24RemoteVolumeSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/remote-volume-snapshots][%d] getApi24RemoteVolumeSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24RemoteVolumeSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24RemoteVolumeSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_responses.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_responses.go index 89548e3..a3c79fb 100644 --- a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/get_api_24_remote_volume_snapshots_transfer_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24RemoteVolumeSnapshotsTransferReader is a Reader for the GetAPI24RemoteVolumeSnapshotsTransfer structure. @@ -29,6 +29,12 @@ func (o *GetAPI24RemoteVolumeSnapshotsTransferReader) ReadResponse(response runt return nil, err } return result, nil + case 400: + result := NewGetApi24RemoteVolumeSnapshotsTransferBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24RemoteVolumeSnapshotsTransferOK) readResponse(response runtime. return nil } + +// NewGetApi24RemoteVolumeSnapshotsTransferBadRequest creates a GetApi24RemoteVolumeSnapshotsTransferBadRequest with default headers values +func NewGetApi24RemoteVolumeSnapshotsTransferBadRequest() *GetApi24RemoteVolumeSnapshotsTransferBadRequest { + return &GetApi24RemoteVolumeSnapshotsTransferBadRequest{} +} + +/*GetApi24RemoteVolumeSnapshotsTransferBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24RemoteVolumeSnapshotsTransferBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24RemoteVolumeSnapshotsTransferBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/remote-volume-snapshots/transfer][%d] getApi24RemoteVolumeSnapshotsTransferBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24RemoteVolumeSnapshotsTransferBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24RemoteVolumeSnapshotsTransferBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_parameters.go index f706eed..b4d3d1e 100644 --- a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24RemoteVolumeSnapshotsParams creates a new PatchAPI24RemoteVolumeSnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_responses.go index 05cd2e5..62536bb 100644 --- a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/patch_api_24_remote_volume_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24RemoteVolumeSnapshotsReader is a Reader for the PatchAPI24RemoteVolumeSnapshots structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24RemoteVolumeSnapshotsReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewPatchApi24RemoteVolumeSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24RemoteVolumeSnapshotsOK) readResponse(response runtime.Client return nil } + +// NewPatchApi24RemoteVolumeSnapshotsBadRequest creates a PatchApi24RemoteVolumeSnapshotsBadRequest with default headers values +func NewPatchApi24RemoteVolumeSnapshotsBadRequest() *PatchApi24RemoteVolumeSnapshotsBadRequest { + return &PatchApi24RemoteVolumeSnapshotsBadRequest{} +} + +/*PatchApi24RemoteVolumeSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24RemoteVolumeSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24RemoteVolumeSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/remote-volume-snapshots][%d] patchApi24RemoteVolumeSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24RemoteVolumeSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24RemoteVolumeSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_responses.go index 25a5dd7..6039946 100644 --- a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/post_api_24_remote_volume_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24RemoteVolumeSnapshotsReader is a Reader for the PostAPI24RemoteVolumeSnapshots structure. @@ -29,6 +29,12 @@ func (o *PostAPI24RemoteVolumeSnapshotsReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewPostApi24RemoteVolumeSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24RemoteVolumeSnapshotsOK) readResponse(response runtime.ClientR return nil } + +// NewPostApi24RemoteVolumeSnapshotsBadRequest creates a PostApi24RemoteVolumeSnapshotsBadRequest with default headers values +func NewPostApi24RemoteVolumeSnapshotsBadRequest() *PostApi24RemoteVolumeSnapshotsBadRequest { + return &PostApi24RemoteVolumeSnapshotsBadRequest{} +} + +/*PostApi24RemoteVolumeSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24RemoteVolumeSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24RemoteVolumeSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/remote-volume-snapshots][%d] postApi24RemoteVolumeSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24RemoteVolumeSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24RemoteVolumeSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/remote_volume_snapshots/remote_volume_snapshots_client.go b/cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/remote_volume_snapshots_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/remote_volume_snapshots/remote_volume_snapshots_client.go rename to cbs/internal/array/faclient/2.4/client/remote_volume_snapshots/remote_volume_snapshots_client.go diff --git a/cbs/internal/faclient/2.4/client/sessions/get_api_24_sessions_parameters.go b/cbs/internal/array/faclient/2.4/client/sessions/get_api_24_sessions_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/sessions/get_api_24_sessions_parameters.go rename to cbs/internal/array/faclient/2.4/client/sessions/get_api_24_sessions_parameters.go diff --git a/cbs/internal/faclient/2.4/client/sessions/get_api_24_sessions_responses.go b/cbs/internal/array/faclient/2.4/client/sessions/get_api_24_sessions_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/sessions/get_api_24_sessions_responses.go rename to cbs/internal/array/faclient/2.4/client/sessions/get_api_24_sessions_responses.go index b0e90d0..9d43220 100644 --- a/cbs/internal/faclient/2.4/client/sessions/get_api_24_sessions_responses.go +++ b/cbs/internal/array/faclient/2.4/client/sessions/get_api_24_sessions_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SessionsReader is a Reader for the GetAPI24Sessions structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SessionsReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewGetApi24SessionsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SessionsOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewGetApi24SessionsBadRequest creates a GetApi24SessionsBadRequest with default headers values +func NewGetApi24SessionsBadRequest() *GetApi24SessionsBadRequest { + return &GetApi24SessionsBadRequest{} +} + +/*GetApi24SessionsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SessionsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SessionsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/sessions][%d] getApi24SessionsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SessionsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SessionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/sessions/sessions_client.go b/cbs/internal/array/faclient/2.4/client/sessions/sessions_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/sessions/sessions_client.go rename to cbs/internal/array/faclient/2.4/client/sessions/sessions_client.go diff --git a/cbs/internal/faclient/2.4/client/smi_s/get_api_24_smis_parameters.go b/cbs/internal/array/faclient/2.4/client/smi_s/get_api_24_smis_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/smi_s/get_api_24_smis_parameters.go rename to cbs/internal/array/faclient/2.4/client/smi_s/get_api_24_smis_parameters.go diff --git a/cbs/internal/faclient/2.4/client/smi_s/get_api_24_smis_responses.go b/cbs/internal/array/faclient/2.4/client/smi_s/get_api_24_smis_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/smi_s/get_api_24_smis_responses.go rename to cbs/internal/array/faclient/2.4/client/smi_s/get_api_24_smis_responses.go index 2844449..d789773 100644 --- a/cbs/internal/faclient/2.4/client/smi_s/get_api_24_smis_responses.go +++ b/cbs/internal/array/faclient/2.4/client/smi_s/get_api_24_smis_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SMISReader is a Reader for the GetAPI24SMIS structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SMISReader) ReadResponse(response runtime.ClientResponse, consu return nil, err } return result, nil + case 400: + result := NewGetApi24SMISBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SMISOK) readResponse(response runtime.ClientResponse, consumer return nil } + +// NewGetApi24SMISBadRequest creates a GetApi24SMISBadRequest with default headers values +func NewGetApi24SMISBadRequest() *GetApi24SMISBadRequest { + return &GetApi24SMISBadRequest{} +} + +/*GetApi24SMISBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SMISBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SMISBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/smi-s][%d] getApi24SmisBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SMISBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SMISBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/smi_s/patch_api_24_smis_parameters.go b/cbs/internal/array/faclient/2.4/client/smi_s/patch_api_24_smis_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/smi_s/patch_api_24_smis_parameters.go rename to cbs/internal/array/faclient/2.4/client/smi_s/patch_api_24_smis_parameters.go index 9f03d79..991fab0 100644 --- a/cbs/internal/faclient/2.4/client/smi_s/patch_api_24_smis_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/smi_s/patch_api_24_smis_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SMISParams creates a new PatchAPI24SMISParams object diff --git a/cbs/internal/faclient/2.4/client/smi_s/patch_api_24_smis_responses.go b/cbs/internal/array/faclient/2.4/client/smi_s/patch_api_24_smis_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/smi_s/patch_api_24_smis_responses.go rename to cbs/internal/array/faclient/2.4/client/smi_s/patch_api_24_smis_responses.go index ca4b434..da854f7 100644 --- a/cbs/internal/faclient/2.4/client/smi_s/patch_api_24_smis_responses.go +++ b/cbs/internal/array/faclient/2.4/client/smi_s/patch_api_24_smis_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SMISReader is a Reader for the PatchAPI24SMIS structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SMISReader) ReadResponse(response runtime.ClientResponse, con return nil, err } return result, nil + case 400: + result := NewPatchApi24SMISBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SMISOK) readResponse(response runtime.ClientResponse, consume return nil } + +// NewPatchApi24SMISBadRequest creates a PatchApi24SMISBadRequest with default headers values +func NewPatchApi24SMISBadRequest() *PatchApi24SMISBadRequest { + return &PatchApi24SMISBadRequest{} +} + +/*PatchApi24SMISBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SMISBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SMISBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/smi-s][%d] patchApi24SmisBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SMISBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SMISBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/smi_s/s_m_is_client.go b/cbs/internal/array/faclient/2.4/client/smi_s/s_m_is_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/smi_s/s_m_is_client.go rename to cbs/internal/array/faclient/2.4/client/smi_s/s_m_is_client.go diff --git a/cbs/internal/faclient/2.4/client/smtp/get_api_24_smtp_servers_parameters.go b/cbs/internal/array/faclient/2.4/client/smtp/get_api_24_smtp_servers_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/smtp/get_api_24_smtp_servers_parameters.go rename to cbs/internal/array/faclient/2.4/client/smtp/get_api_24_smtp_servers_parameters.go diff --git a/cbs/internal/faclient/2.4/client/smtp/get_api_24_smtp_servers_responses.go b/cbs/internal/array/faclient/2.4/client/smtp/get_api_24_smtp_servers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/smtp/get_api_24_smtp_servers_responses.go rename to cbs/internal/array/faclient/2.4/client/smtp/get_api_24_smtp_servers_responses.go index f20b457..4eab2b9 100644 --- a/cbs/internal/faclient/2.4/client/smtp/get_api_24_smtp_servers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/smtp/get_api_24_smtp_servers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SMTPServersReader is a Reader for the GetAPI24SMTPServers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SMTPServersReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24SMTPServersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SMTPServersOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24SMTPServersBadRequest creates a GetApi24SMTPServersBadRequest with default headers values +func NewGetApi24SMTPServersBadRequest() *GetApi24SMTPServersBadRequest { + return &GetApi24SMTPServersBadRequest{} +} + +/*GetApi24SMTPServersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SMTPServersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SMTPServersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/smtp-servers][%d] getApi24SmtpServersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SMTPServersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SMTPServersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/smtp/patch_api_24_smtp_servers_parameters.go b/cbs/internal/array/faclient/2.4/client/smtp/patch_api_24_smtp_servers_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/smtp/patch_api_24_smtp_servers_parameters.go rename to cbs/internal/array/faclient/2.4/client/smtp/patch_api_24_smtp_servers_parameters.go index 46a7ece..19fe4cd 100644 --- a/cbs/internal/faclient/2.4/client/smtp/patch_api_24_smtp_servers_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/smtp/patch_api_24_smtp_servers_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SMTPServersParams creates a new PatchAPI24SMTPServersParams object diff --git a/cbs/internal/faclient/2.4/client/smtp/patch_api_24_smtp_servers_responses.go b/cbs/internal/array/faclient/2.4/client/smtp/patch_api_24_smtp_servers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/smtp/patch_api_24_smtp_servers_responses.go rename to cbs/internal/array/faclient/2.4/client/smtp/patch_api_24_smtp_servers_responses.go index 6c93d62..26eeb4e 100644 --- a/cbs/internal/faclient/2.4/client/smtp/patch_api_24_smtp_servers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/smtp/patch_api_24_smtp_servers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SMTPServersReader is a Reader for the PatchAPI24SMTPServers structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SMTPServersReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewPatchApi24SMTPServersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SMTPServersOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPatchApi24SMTPServersBadRequest creates a PatchApi24SMTPServersBadRequest with default headers values +func NewPatchApi24SMTPServersBadRequest() *PatchApi24SMTPServersBadRequest { + return &PatchApi24SMTPServersBadRequest{} +} + +/*PatchApi24SMTPServersBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SMTPServersBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SMTPServersBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/smtp-servers][%d] patchApi24SmtpServersBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SMTPServersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SMTPServersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/smtp/smtp_client.go b/cbs/internal/array/faclient/2.4/client/smtp/smtp_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/smtp/smtp_client.go rename to cbs/internal/array/faclient/2.4/client/smtp/smtp_client.go diff --git a/cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_parameters.go b/cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_parameters.go rename to cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_parameters.go diff --git a/cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_responses.go b/cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_responses.go rename to cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_responses.go index 39ddcc6..974ffb7 100644 --- a/cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_responses.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_mib_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SNMPAgentsMibReader is a Reader for the GetAPI24SNMPAgentsMib structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SNMPAgentsMibReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewGetApi24SNMPAgentsMibBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SNMPAgentsMibOK) readResponse(response runtime.ClientResponse, return nil } + +// NewGetApi24SNMPAgentsMibBadRequest creates a GetApi24SNMPAgentsMibBadRequest with default headers values +func NewGetApi24SNMPAgentsMibBadRequest() *GetApi24SNMPAgentsMibBadRequest { + return &GetApi24SNMPAgentsMibBadRequest{} +} + +/*GetApi24SNMPAgentsMibBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SNMPAgentsMibBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SNMPAgentsMibBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/snmp-agents/mib][%d] getApi24SnmpAgentsMibBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SNMPAgentsMibBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SNMPAgentsMibBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_parameters.go b/cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_parameters.go rename to cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_parameters.go diff --git a/cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_responses.go b/cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_responses.go rename to cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_responses.go index 8fb3fa9..4206e17 100644 --- a/cbs/internal/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_responses.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_agents/get_api_24_snmp_agents_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SNMPAgentsReader is a Reader for the GetAPI24SNMPAgents structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SNMPAgentsReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewGetApi24SNMPAgentsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SNMPAgentsOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewGetApi24SNMPAgentsBadRequest creates a GetApi24SNMPAgentsBadRequest with default headers values +func NewGetApi24SNMPAgentsBadRequest() *GetApi24SNMPAgentsBadRequest { + return &GetApi24SNMPAgentsBadRequest{} +} + +/*GetApi24SNMPAgentsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SNMPAgentsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SNMPAgentsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/snmp-agents][%d] getApi24SnmpAgentsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SNMPAgentsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SNMPAgentsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_parameters.go b/cbs/internal/array/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_parameters.go rename to cbs/internal/array/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_parameters.go index df80c93..5608501 100644 --- a/cbs/internal/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SNMPAgentsParams creates a new PatchAPI24SNMPAgentsParams object diff --git a/cbs/internal/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_responses.go b/cbs/internal/array/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_responses.go rename to cbs/internal/array/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_responses.go index 9a18b06..3b5c1a7 100644 --- a/cbs/internal/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_responses.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_agents/patch_api_24_snmp_agents_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SNMPAgentsReader is a Reader for the PatchAPI24SNMPAgents structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SNMPAgentsReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewPatchApi24SNMPAgentsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SNMPAgentsOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewPatchApi24SNMPAgentsBadRequest creates a PatchApi24SNMPAgentsBadRequest with default headers values +func NewPatchApi24SNMPAgentsBadRequest() *PatchApi24SNMPAgentsBadRequest { + return &PatchApi24SNMPAgentsBadRequest{} +} + +/*PatchApi24SNMPAgentsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SNMPAgentsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SNMPAgentsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/snmp-agents][%d] patchApi24SnmpAgentsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SNMPAgentsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SNMPAgentsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/snmp_agents/snmp_agents_client.go b/cbs/internal/array/faclient/2.4/client/snmp_agents/snmp_agents_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/snmp_agents/snmp_agents_client.go rename to cbs/internal/array/faclient/2.4/client/snmp_agents/snmp_agents_client.go diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_parameters.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_parameters.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_parameters.go diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_responses.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_responses.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_responses.go index ea93df9..9f2892c 100644 --- a/cbs/internal/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_managers/delete_api_24_snmp_managers_responses.go @@ -7,9 +7,12 @@ package snmp_managers import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24SNMPManagersReader is a Reader for the DeleteAPI24SNMPManagers structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24SNMPManagersReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewDeleteApi24SNMPManagersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24SNMPManagersOK) readResponse(response runtime.ClientResponse return nil } + +// NewDeleteApi24SNMPManagersBadRequest creates a DeleteApi24SNMPManagersBadRequest with default headers values +func NewDeleteApi24SNMPManagersBadRequest() *DeleteApi24SNMPManagersBadRequest { + return &DeleteApi24SNMPManagersBadRequest{} +} + +/*DeleteApi24SNMPManagersBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24SNMPManagersBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24SNMPManagersBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/snmp-managers][%d] deleteApi24SnmpManagersBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24SNMPManagersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24SNMPManagersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_parameters.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_parameters.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_parameters.go diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_responses.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_responses.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_responses.go index e7facec..e50b275 100644 --- a/cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SNMPManagersReader is a Reader for the GetAPI24SNMPManagers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SNMPManagersReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewGetApi24SNMPManagersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SNMPManagersOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewGetApi24SNMPManagersBadRequest creates a GetApi24SNMPManagersBadRequest with default headers values +func NewGetApi24SNMPManagersBadRequest() *GetApi24SNMPManagersBadRequest { + return &GetApi24SNMPManagersBadRequest{} +} + +/*GetApi24SNMPManagersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SNMPManagersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SNMPManagersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/snmp-managers][%d] getApi24SnmpManagersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SNMPManagersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SNMPManagersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_responses.go index 2b06163..72a8005 100644 --- a/cbs/internal/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_managers/get_api_24_snmp_managers_test_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SNMPManagersTestReader is a Reader for the GetAPI24SNMPManagersTest structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SNMPManagersTestReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewGetApi24SNMPManagersTestBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SNMPManagersTestOK) readResponse(response runtime.ClientRespons return nil } + +// NewGetApi24SNMPManagersTestBadRequest creates a GetApi24SNMPManagersTestBadRequest with default headers values +func NewGetApi24SNMPManagersTestBadRequest() *GetApi24SNMPManagersTestBadRequest { + return &GetApi24SNMPManagersTestBadRequest{} +} + +/*GetApi24SNMPManagersTestBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SNMPManagersTestBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SNMPManagersTestBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/snmp-managers/test][%d] getApi24SnmpManagersTestBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SNMPManagersTestBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SNMPManagersTestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_parameters.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_parameters.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_parameters.go index 31948a1..5643bf2 100644 --- a/cbs/internal/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SNMPManagersParams creates a new PatchAPI24SNMPManagersParams object diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_responses.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_responses.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_responses.go index 61f9f13..747197a 100644 --- a/cbs/internal/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_managers/patch_api_24_snmp_managers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SNMPManagersReader is a Reader for the PatchAPI24SNMPManagers structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SNMPManagersReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewPatchApi24SNMPManagersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SNMPManagersOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPatchApi24SNMPManagersBadRequest creates a PatchApi24SNMPManagersBadRequest with default headers values +func NewPatchApi24SNMPManagersBadRequest() *PatchApi24SNMPManagersBadRequest { + return &PatchApi24SNMPManagersBadRequest{} +} + +/*PatchApi24SNMPManagersBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SNMPManagersBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SNMPManagersBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/snmp-managers][%d] patchApi24SnmpManagersBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SNMPManagersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SNMPManagersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_parameters.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_parameters.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_parameters.go index 3a8f1a0..6bc5686 100644 --- a/cbs/internal/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24SNMPManagersParams creates a new PostAPI24SNMPManagersParams object diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_responses.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_responses.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_responses.go index 77a5e56..fef178b 100644 --- a/cbs/internal/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/snmp_managers/post_api_24_snmp_managers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24SNMPManagersReader is a Reader for the PostAPI24SNMPManagers structure. @@ -29,6 +29,12 @@ func (o *PostAPI24SNMPManagersReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewPostApi24SNMPManagersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24SNMPManagersOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPostApi24SNMPManagersBadRequest creates a PostApi24SNMPManagersBadRequest with default headers values +func NewPostApi24SNMPManagersBadRequest() *PostApi24SNMPManagersBadRequest { + return &PostApi24SNMPManagersBadRequest{} +} + +/*PostApi24SNMPManagersBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24SNMPManagersBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24SNMPManagersBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/snmp-managers][%d] postApi24SnmpManagersBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24SNMPManagersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24SNMPManagersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/snmp_managers/snmp_managers_client.go b/cbs/internal/array/faclient/2.4/client/snmp_managers/snmp_managers_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/snmp_managers/snmp_managers_client.go rename to cbs/internal/array/faclient/2.4/client/snmp_managers/snmp_managers_client.go diff --git a/cbs/internal/faclient/2.4/client/software/get_api_24_software_installation_steps_parameters.go b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installation_steps_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/software/get_api_24_software_installation_steps_parameters.go rename to cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installation_steps_parameters.go diff --git a/cbs/internal/faclient/2.4/client/software/get_api_24_software_installation_steps_responses.go b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installation_steps_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/software/get_api_24_software_installation_steps_responses.go rename to cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installation_steps_responses.go index dc9631f..3fd834e 100644 --- a/cbs/internal/faclient/2.4/client/software/get_api_24_software_installation_steps_responses.go +++ b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installation_steps_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SoftwareInstallationStepsReader is a Reader for the GetAPI24SoftwareInstallationSteps structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SoftwareInstallationStepsReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewGetApi24SoftwareInstallationStepsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SoftwareInstallationStepsOK) readResponse(response runtime.Clie return nil } + +// NewGetApi24SoftwareInstallationStepsBadRequest creates a GetApi24SoftwareInstallationStepsBadRequest with default headers values +func NewGetApi24SoftwareInstallationStepsBadRequest() *GetApi24SoftwareInstallationStepsBadRequest { + return &GetApi24SoftwareInstallationStepsBadRequest{} +} + +/*GetApi24SoftwareInstallationStepsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SoftwareInstallationStepsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SoftwareInstallationStepsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/software-installation-steps][%d] getApi24SoftwareInstallationStepsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SoftwareInstallationStepsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SoftwareInstallationStepsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/software/get_api_24_software_installations_parameters.go b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installations_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/software/get_api_24_software_installations_parameters.go rename to cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installations_parameters.go diff --git a/cbs/internal/faclient/2.4/client/software/get_api_24_software_installations_responses.go b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installations_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/software/get_api_24_software_installations_responses.go rename to cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installations_responses.go index 073a62a..701694d 100644 --- a/cbs/internal/faclient/2.4/client/software/get_api_24_software_installations_responses.go +++ b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_installations_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SoftwareInstallationsReader is a Reader for the GetAPI24SoftwareInstallations structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SoftwareInstallationsReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24SoftwareInstallationsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SoftwareInstallationsOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24SoftwareInstallationsBadRequest creates a GetApi24SoftwareInstallationsBadRequest with default headers values +func NewGetApi24SoftwareInstallationsBadRequest() *GetApi24SoftwareInstallationsBadRequest { + return &GetApi24SoftwareInstallationsBadRequest{} +} + +/*GetApi24SoftwareInstallationsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SoftwareInstallationsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SoftwareInstallationsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/software-installations][%d] getApi24SoftwareInstallationsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SoftwareInstallationsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SoftwareInstallationsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/software/get_api_24_software_parameters.go b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/software/get_api_24_software_parameters.go rename to cbs/internal/array/faclient/2.4/client/software/get_api_24_software_parameters.go diff --git a/cbs/internal/faclient/2.4/client/software/get_api_24_software_responses.go b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/software/get_api_24_software_responses.go rename to cbs/internal/array/faclient/2.4/client/software/get_api_24_software_responses.go index b047e21..7729c96 100644 --- a/cbs/internal/faclient/2.4/client/software/get_api_24_software_responses.go +++ b/cbs/internal/array/faclient/2.4/client/software/get_api_24_software_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SoftwareReader is a Reader for the GetAPI24Software structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SoftwareReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewGetApi24SoftwareBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SoftwareOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewGetApi24SoftwareBadRequest creates a GetApi24SoftwareBadRequest with default headers values +func NewGetApi24SoftwareBadRequest() *GetApi24SoftwareBadRequest { + return &GetApi24SoftwareBadRequest{} +} + +/*GetApi24SoftwareBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SoftwareBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SoftwareBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/software][%d] getApi24SoftwareBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SoftwareBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SoftwareBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/software/patch_api_24_software_installations_parameters.go b/cbs/internal/array/faclient/2.4/client/software/patch_api_24_software_installations_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/software/patch_api_24_software_installations_parameters.go rename to cbs/internal/array/faclient/2.4/client/software/patch_api_24_software_installations_parameters.go index 6ccc2e9..c32855c 100644 --- a/cbs/internal/faclient/2.4/client/software/patch_api_24_software_installations_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/software/patch_api_24_software_installations_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SoftwareInstallationsParams creates a new PatchAPI24SoftwareInstallationsParams object diff --git a/cbs/internal/faclient/2.4/client/software/patch_api_24_software_installations_responses.go b/cbs/internal/array/faclient/2.4/client/software/patch_api_24_software_installations_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/software/patch_api_24_software_installations_responses.go rename to cbs/internal/array/faclient/2.4/client/software/patch_api_24_software_installations_responses.go index 963823b..eb6dddc 100644 --- a/cbs/internal/faclient/2.4/client/software/patch_api_24_software_installations_responses.go +++ b/cbs/internal/array/faclient/2.4/client/software/patch_api_24_software_installations_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SoftwareInstallationsReader is a Reader for the PatchAPI24SoftwareInstallations structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SoftwareInstallationsReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewPatchApi24SoftwareInstallationsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SoftwareInstallationsOK) readResponse(response runtime.Client return nil } + +// NewPatchApi24SoftwareInstallationsBadRequest creates a PatchApi24SoftwareInstallationsBadRequest with default headers values +func NewPatchApi24SoftwareInstallationsBadRequest() *PatchApi24SoftwareInstallationsBadRequest { + return &PatchApi24SoftwareInstallationsBadRequest{} +} + +/*PatchApi24SoftwareInstallationsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SoftwareInstallationsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SoftwareInstallationsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/software-installations][%d] patchApi24SoftwareInstallationsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SoftwareInstallationsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SoftwareInstallationsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/software/post_api_24_software_installations_parameters.go b/cbs/internal/array/faclient/2.4/client/software/post_api_24_software_installations_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/software/post_api_24_software_installations_parameters.go rename to cbs/internal/array/faclient/2.4/client/software/post_api_24_software_installations_parameters.go index ae6cbd6..d97e215 100644 --- a/cbs/internal/faclient/2.4/client/software/post_api_24_software_installations_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/software/post_api_24_software_installations_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24SoftwareInstallationsParams creates a new PostAPI24SoftwareInstallationsParams object diff --git a/cbs/internal/faclient/2.4/client/software/post_api_24_software_installations_responses.go b/cbs/internal/array/faclient/2.4/client/software/post_api_24_software_installations_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/software/post_api_24_software_installations_responses.go rename to cbs/internal/array/faclient/2.4/client/software/post_api_24_software_installations_responses.go index adf5905..445df52 100644 --- a/cbs/internal/faclient/2.4/client/software/post_api_24_software_installations_responses.go +++ b/cbs/internal/array/faclient/2.4/client/software/post_api_24_software_installations_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24SoftwareInstallationsReader is a Reader for the PostAPI24SoftwareInstallations structure. @@ -29,6 +29,12 @@ func (o *PostAPI24SoftwareInstallationsReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewPostApi24SoftwareInstallationsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24SoftwareInstallationsOK) readResponse(response runtime.ClientR return nil } + +// NewPostApi24SoftwareInstallationsBadRequest creates a PostApi24SoftwareInstallationsBadRequest with default headers values +func NewPostApi24SoftwareInstallationsBadRequest() *PostApi24SoftwareInstallationsBadRequest { + return &PostApi24SoftwareInstallationsBadRequest{} +} + +/*PostApi24SoftwareInstallationsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24SoftwareInstallationsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24SoftwareInstallationsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/software-installations][%d] postApi24SoftwareInstallationsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24SoftwareInstallationsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24SoftwareInstallationsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/software/software_client.go b/cbs/internal/array/faclient/2.4/client/software/software_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/software/software_client.go rename to cbs/internal/array/faclient/2.4/client/software/software_client.go diff --git a/cbs/internal/faclient/2.4/client/subnets/delete_api_24_subnets_parameters.go b/cbs/internal/array/faclient/2.4/client/subnets/delete_api_24_subnets_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/subnets/delete_api_24_subnets_parameters.go rename to cbs/internal/array/faclient/2.4/client/subnets/delete_api_24_subnets_parameters.go diff --git a/cbs/internal/faclient/2.4/client/subnets/delete_api_24_subnets_responses.go b/cbs/internal/array/faclient/2.4/client/subnets/delete_api_24_subnets_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/subnets/delete_api_24_subnets_responses.go rename to cbs/internal/array/faclient/2.4/client/subnets/delete_api_24_subnets_responses.go index 43215f1..bcc21ac 100644 --- a/cbs/internal/faclient/2.4/client/subnets/delete_api_24_subnets_responses.go +++ b/cbs/internal/array/faclient/2.4/client/subnets/delete_api_24_subnets_responses.go @@ -7,9 +7,12 @@ package subnets import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24SubnetsReader is a Reader for the DeleteAPI24Subnets structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24SubnetsReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewDeleteApi24SubnetsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24SubnetsOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewDeleteApi24SubnetsBadRequest creates a DeleteApi24SubnetsBadRequest with default headers values +func NewDeleteApi24SubnetsBadRequest() *DeleteApi24SubnetsBadRequest { + return &DeleteApi24SubnetsBadRequest{} +} + +/*DeleteApi24SubnetsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24SubnetsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24SubnetsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/subnets][%d] deleteApi24SubnetsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24SubnetsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24SubnetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/subnets/get_api_24_subnets_parameters.go b/cbs/internal/array/faclient/2.4/client/subnets/get_api_24_subnets_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/subnets/get_api_24_subnets_parameters.go rename to cbs/internal/array/faclient/2.4/client/subnets/get_api_24_subnets_parameters.go diff --git a/cbs/internal/faclient/2.4/client/subnets/get_api_24_subnets_responses.go b/cbs/internal/array/faclient/2.4/client/subnets/get_api_24_subnets_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/subnets/get_api_24_subnets_responses.go rename to cbs/internal/array/faclient/2.4/client/subnets/get_api_24_subnets_responses.go index 1c59849..5b7400a 100644 --- a/cbs/internal/faclient/2.4/client/subnets/get_api_24_subnets_responses.go +++ b/cbs/internal/array/faclient/2.4/client/subnets/get_api_24_subnets_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SubnetsReader is a Reader for the GetAPI24Subnets structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SubnetsReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return result, nil + case 400: + result := NewGetApi24SubnetsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SubnetsOK) readResponse(response runtime.ClientResponse, consum return nil } + +// NewGetApi24SubnetsBadRequest creates a GetApi24SubnetsBadRequest with default headers values +func NewGetApi24SubnetsBadRequest() *GetApi24SubnetsBadRequest { + return &GetApi24SubnetsBadRequest{} +} + +/*GetApi24SubnetsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SubnetsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SubnetsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/subnets][%d] getApi24SubnetsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SubnetsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SubnetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/subnets/patch_api_24_subnets_parameters.go b/cbs/internal/array/faclient/2.4/client/subnets/patch_api_24_subnets_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/subnets/patch_api_24_subnets_parameters.go rename to cbs/internal/array/faclient/2.4/client/subnets/patch_api_24_subnets_parameters.go index e41de4b..f6f9a1d 100644 --- a/cbs/internal/faclient/2.4/client/subnets/patch_api_24_subnets_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/subnets/patch_api_24_subnets_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SubnetsParams creates a new PatchAPI24SubnetsParams object diff --git a/cbs/internal/faclient/2.4/client/subnets/patch_api_24_subnets_responses.go b/cbs/internal/array/faclient/2.4/client/subnets/patch_api_24_subnets_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/subnets/patch_api_24_subnets_responses.go rename to cbs/internal/array/faclient/2.4/client/subnets/patch_api_24_subnets_responses.go index 54a8ffa..78d31c0 100644 --- a/cbs/internal/faclient/2.4/client/subnets/patch_api_24_subnets_responses.go +++ b/cbs/internal/array/faclient/2.4/client/subnets/patch_api_24_subnets_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SubnetsReader is a Reader for the PatchAPI24Subnets structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SubnetsReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewPatchApi24SubnetsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SubnetsOK) readResponse(response runtime.ClientResponse, cons return nil } + +// NewPatchApi24SubnetsBadRequest creates a PatchApi24SubnetsBadRequest with default headers values +func NewPatchApi24SubnetsBadRequest() *PatchApi24SubnetsBadRequest { + return &PatchApi24SubnetsBadRequest{} +} + +/*PatchApi24SubnetsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SubnetsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SubnetsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/subnets][%d] patchApi24SubnetsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SubnetsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SubnetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/subnets/post_api_24_subnets_parameters.go b/cbs/internal/array/faclient/2.4/client/subnets/post_api_24_subnets_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/subnets/post_api_24_subnets_parameters.go rename to cbs/internal/array/faclient/2.4/client/subnets/post_api_24_subnets_parameters.go index 4b3cb06..255915f 100644 --- a/cbs/internal/faclient/2.4/client/subnets/post_api_24_subnets_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/subnets/post_api_24_subnets_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24SubnetsParams creates a new PostAPI24SubnetsParams object diff --git a/cbs/internal/faclient/2.4/client/subnets/post_api_24_subnets_responses.go b/cbs/internal/array/faclient/2.4/client/subnets/post_api_24_subnets_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/subnets/post_api_24_subnets_responses.go rename to cbs/internal/array/faclient/2.4/client/subnets/post_api_24_subnets_responses.go index 2122a98..d0ac2b8 100644 --- a/cbs/internal/faclient/2.4/client/subnets/post_api_24_subnets_responses.go +++ b/cbs/internal/array/faclient/2.4/client/subnets/post_api_24_subnets_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24SubnetsReader is a Reader for the PostAPI24Subnets structure. @@ -29,6 +29,12 @@ func (o *PostAPI24SubnetsReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewPostApi24SubnetsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24SubnetsOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewPostApi24SubnetsBadRequest creates a PostApi24SubnetsBadRequest with default headers values +func NewPostApi24SubnetsBadRequest() *PostApi24SubnetsBadRequest { + return &PostApi24SubnetsBadRequest{} +} + +/*PostApi24SubnetsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24SubnetsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24SubnetsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/subnets][%d] postApi24SubnetsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24SubnetsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24SubnetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/subnets/subnets_client.go b/cbs/internal/array/faclient/2.4/client/subnets/subnets_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/subnets/subnets_client.go rename to cbs/internal/array/faclient/2.4/client/subnets/subnets_client.go diff --git a/cbs/internal/faclient/2.4/client/support/get_api_24_support_parameters.go b/cbs/internal/array/faclient/2.4/client/support/get_api_24_support_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/support/get_api_24_support_parameters.go rename to cbs/internal/array/faclient/2.4/client/support/get_api_24_support_parameters.go diff --git a/cbs/internal/faclient/2.4/client/support/get_api_24_support_responses.go b/cbs/internal/array/faclient/2.4/client/support/get_api_24_support_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/support/get_api_24_support_responses.go rename to cbs/internal/array/faclient/2.4/client/support/get_api_24_support_responses.go index 4c18a0e..4099abf 100644 --- a/cbs/internal/faclient/2.4/client/support/get_api_24_support_responses.go +++ b/cbs/internal/array/faclient/2.4/client/support/get_api_24_support_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SupportReader is a Reader for the GetAPI24Support structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SupportReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return result, nil + case 400: + result := NewGetApi24SupportBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SupportOK) readResponse(response runtime.ClientResponse, consum return nil } + +// NewGetApi24SupportBadRequest creates a GetApi24SupportBadRequest with default headers values +func NewGetApi24SupportBadRequest() *GetApi24SupportBadRequest { + return &GetApi24SupportBadRequest{} +} + +/*GetApi24SupportBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SupportBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SupportBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/support][%d] getApi24SupportBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SupportBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SupportBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/support/get_api_24_support_test_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/support/get_api_24_support_test_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/support/get_api_24_support_test_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/support/get_api_24_support_test_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/support/get_api_24_support_test_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/support/get_api_24_support_test_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/support/get_api_24_support_test_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/support/get_api_24_support_test_swagger_responses.go index 8135ec5..9bcf406 100644 --- a/cbs/internal/faclient/2.4/client/support/get_api_24_support_test_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/support/get_api_24_support_test_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SupportTestReader is a Reader for the GetAPI24SupportTest structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SupportTestReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24SupportTestBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SupportTestOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24SupportTestBadRequest creates a GetApi24SupportTestBadRequest with default headers values +func NewGetApi24SupportTestBadRequest() *GetApi24SupportTestBadRequest { + return &GetApi24SupportTestBadRequest{} +} + +/*GetApi24SupportTestBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SupportTestBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SupportTestBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/support/test][%d] getApi24SupportTestBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SupportTestBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SupportTestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/support/patch_api_24_support_parameters.go b/cbs/internal/array/faclient/2.4/client/support/patch_api_24_support_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/support/patch_api_24_support_parameters.go rename to cbs/internal/array/faclient/2.4/client/support/patch_api_24_support_parameters.go index e47ba0f..f17e05a 100644 --- a/cbs/internal/faclient/2.4/client/support/patch_api_24_support_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/support/patch_api_24_support_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SupportParams creates a new PatchAPI24SupportParams object diff --git a/cbs/internal/faclient/2.4/client/support/patch_api_24_support_responses.go b/cbs/internal/array/faclient/2.4/client/support/patch_api_24_support_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/support/patch_api_24_support_responses.go rename to cbs/internal/array/faclient/2.4/client/support/patch_api_24_support_responses.go index 013c772..d8a2b5d 100644 --- a/cbs/internal/faclient/2.4/client/support/patch_api_24_support_responses.go +++ b/cbs/internal/array/faclient/2.4/client/support/patch_api_24_support_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SupportReader is a Reader for the PatchAPI24Support structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SupportReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewPatchApi24SupportBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SupportOK) readResponse(response runtime.ClientResponse, cons return nil } + +// NewPatchApi24SupportBadRequest creates a PatchApi24SupportBadRequest with default headers values +func NewPatchApi24SupportBadRequest() *PatchApi24SupportBadRequest { + return &PatchApi24SupportBadRequest{} +} + +/*PatchApi24SupportBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SupportBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SupportBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/support][%d] patchApi24SupportBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SupportBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SupportBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/support/support_client.go b/cbs/internal/array/faclient/2.4/client/support/support_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/support/support_client.go rename to cbs/internal/array/faclient/2.4/client/support/support_client.go diff --git a/cbs/internal/faclient/2.4/client/syslog/delete_api_24_syslog_servers_parameters.go b/cbs/internal/array/faclient/2.4/client/syslog/delete_api_24_syslog_servers_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/syslog/delete_api_24_syslog_servers_parameters.go rename to cbs/internal/array/faclient/2.4/client/syslog/delete_api_24_syslog_servers_parameters.go diff --git a/cbs/internal/faclient/2.4/client/syslog/delete_api_24_syslog_servers_responses.go b/cbs/internal/array/faclient/2.4/client/syslog/delete_api_24_syslog_servers_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/syslog/delete_api_24_syslog_servers_responses.go rename to cbs/internal/array/faclient/2.4/client/syslog/delete_api_24_syslog_servers_responses.go index a1b2dee..feceb2a 100644 --- a/cbs/internal/faclient/2.4/client/syslog/delete_api_24_syslog_servers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/delete_api_24_syslog_servers_responses.go @@ -7,9 +7,12 @@ package syslog import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24SyslogServersReader is a Reader for the DeleteAPI24SyslogServers structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24SyslogServersReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewDeleteApi24SyslogServersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24SyslogServersOK) readResponse(response runtime.ClientRespons return nil } + +// NewDeleteApi24SyslogServersBadRequest creates a DeleteApi24SyslogServersBadRequest with default headers values +func NewDeleteApi24SyslogServersBadRequest() *DeleteApi24SyslogServersBadRequest { + return &DeleteApi24SyslogServersBadRequest{} +} + +/*DeleteApi24SyslogServersBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24SyslogServersBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24SyslogServersBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/syslog-servers][%d] deleteApi24SyslogServersBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24SyslogServersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24SyslogServersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_parameters.go b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_parameters.go rename to cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_parameters.go diff --git a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_responses.go b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_responses.go rename to cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_responses.go index 5ada642..1a2bdd1 100644 --- a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SyslogServersReader is a Reader for the GetAPI24SyslogServers structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SyslogServersReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewGetApi24SyslogServersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SyslogServersOK) readResponse(response runtime.ClientResponse, return nil } + +// NewGetApi24SyslogServersBadRequest creates a GetApi24SyslogServersBadRequest with default headers values +func NewGetApi24SyslogServersBadRequest() *GetApi24SyslogServersBadRequest { + return &GetApi24SyslogServersBadRequest{} +} + +/*GetApi24SyslogServersBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SyslogServersBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SyslogServersBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/syslog-servers][%d] getApi24SyslogServersBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SyslogServersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SyslogServersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_parameters.go b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_parameters.go rename to cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_parameters.go diff --git a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_responses.go b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_responses.go rename to cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_responses.go index 551cb92..f10f9d9 100644 --- a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_responses.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_settings_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SyslogServersSettingsReader is a Reader for the GetAPI24SyslogServersSettings structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SyslogServersSettingsReader) ReadResponse(response runtime.Clie return nil, err } return result, nil + case 400: + result := NewGetApi24SyslogServersSettingsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SyslogServersSettingsOK) readResponse(response runtime.ClientRe return nil } + +// NewGetApi24SyslogServersSettingsBadRequest creates a GetApi24SyslogServersSettingsBadRequest with default headers values +func NewGetApi24SyslogServersSettingsBadRequest() *GetApi24SyslogServersSettingsBadRequest { + return &GetApi24SyslogServersSettingsBadRequest{} +} + +/*GetApi24SyslogServersSettingsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SyslogServersSettingsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SyslogServersSettingsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/syslog-servers/settings][%d] getApi24SyslogServersSettingsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SyslogServersSettingsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SyslogServersSettingsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_parameters.go b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_parameters.go rename to cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_parameters.go diff --git a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_responses.go b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_responses.go rename to cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_responses.go index 4cc6a1e..6499b9a 100644 --- a/cbs/internal/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_responses.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/get_api_24_syslog_servers_test_swagger_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24SyslogServersTestReader is a Reader for the GetAPI24SyslogServersTest structure. @@ -29,6 +29,12 @@ func (o *GetAPI24SyslogServersTestReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewGetApi24SyslogServersTestBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24SyslogServersTestOK) readResponse(response runtime.ClientRespon return nil } + +// NewGetApi24SyslogServersTestBadRequest creates a GetApi24SyslogServersTestBadRequest with default headers values +func NewGetApi24SyslogServersTestBadRequest() *GetApi24SyslogServersTestBadRequest { + return &GetApi24SyslogServersTestBadRequest{} +} + +/*GetApi24SyslogServersTestBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24SyslogServersTestBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24SyslogServersTestBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/syslog-servers/test][%d] getApi24SyslogServersTestBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24SyslogServersTestBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24SyslogServersTestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_parameters.go b/cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_parameters.go rename to cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_parameters.go index 12c2d5a..6d69c7c 100644 --- a/cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SyslogServersParams creates a new PatchAPI24SyslogServersParams object diff --git a/cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_responses.go b/cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_responses.go rename to cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_responses.go index ccad04b..abbff1c 100644 --- a/cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SyslogServersReader is a Reader for the PatchAPI24SyslogServers structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SyslogServersReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewPatchApi24SyslogServersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SyslogServersOK) readResponse(response runtime.ClientResponse return nil } + +// NewPatchApi24SyslogServersBadRequest creates a PatchApi24SyslogServersBadRequest with default headers values +func NewPatchApi24SyslogServersBadRequest() *PatchApi24SyslogServersBadRequest { + return &PatchApi24SyslogServersBadRequest{} +} + +/*PatchApi24SyslogServersBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SyslogServersBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SyslogServersBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/syslog-servers][%d] patchApi24SyslogServersBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SyslogServersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SyslogServersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_parameters.go b/cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_parameters.go rename to cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_parameters.go index e277934..a16c823 100644 --- a/cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24SyslogServersSettingsParams creates a new PatchAPI24SyslogServersSettingsParams object diff --git a/cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_responses.go b/cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_responses.go rename to cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_responses.go index 4ca57db..86ff391 100644 --- a/cbs/internal/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_responses.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/patch_api_24_syslog_servers_settings_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24SyslogServersSettingsReader is a Reader for the PatchAPI24SyslogServersSettings structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24SyslogServersSettingsReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewPatchApi24SyslogServersSettingsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24SyslogServersSettingsOK) readResponse(response runtime.Client return nil } + +// NewPatchApi24SyslogServersSettingsBadRequest creates a PatchApi24SyslogServersSettingsBadRequest with default headers values +func NewPatchApi24SyslogServersSettingsBadRequest() *PatchApi24SyslogServersSettingsBadRequest { + return &PatchApi24SyslogServersSettingsBadRequest{} +} + +/*PatchApi24SyslogServersSettingsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24SyslogServersSettingsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24SyslogServersSettingsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/syslog-servers/settings][%d] patchApi24SyslogServersSettingsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24SyslogServersSettingsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24SyslogServersSettingsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/syslog/post_api_24_syslog_servers_parameters.go b/cbs/internal/array/faclient/2.4/client/syslog/post_api_24_syslog_servers_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/syslog/post_api_24_syslog_servers_parameters.go rename to cbs/internal/array/faclient/2.4/client/syslog/post_api_24_syslog_servers_parameters.go index c04239d..3308896 100644 --- a/cbs/internal/faclient/2.4/client/syslog/post_api_24_syslog_servers_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/post_api_24_syslog_servers_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24SyslogServersParams creates a new PostAPI24SyslogServersParams object diff --git a/cbs/internal/faclient/2.4/client/syslog/post_api_24_syslog_servers_responses.go b/cbs/internal/array/faclient/2.4/client/syslog/post_api_24_syslog_servers_responses.go similarity index 62% rename from cbs/internal/faclient/2.4/client/syslog/post_api_24_syslog_servers_responses.go rename to cbs/internal/array/faclient/2.4/client/syslog/post_api_24_syslog_servers_responses.go index 6817736..73af734 100644 --- a/cbs/internal/faclient/2.4/client/syslog/post_api_24_syslog_servers_responses.go +++ b/cbs/internal/array/faclient/2.4/client/syslog/post_api_24_syslog_servers_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24SyslogServersReader is a Reader for the PostAPI24SyslogServers structure. @@ -29,6 +29,12 @@ func (o *PostAPI24SyslogServersReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewPostApi24SyslogServersBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24SyslogServersOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPostApi24SyslogServersBadRequest creates a PostApi24SyslogServersBadRequest with default headers values +func NewPostApi24SyslogServersBadRequest() *PostApi24SyslogServersBadRequest { + return &PostApi24SyslogServersBadRequest{} +} + +/*PostApi24SyslogServersBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24SyslogServersBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24SyslogServersBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/syslog-servers][%d] postApi24SyslogServersBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24SyslogServersBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24SyslogServersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/syslog/syslog_client.go b/cbs/internal/array/faclient/2.4/client/syslog/syslog_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/syslog/syslog_client.go rename to cbs/internal/array/faclient/2.4/client/syslog/syslog_client.go diff --git a/cbs/internal/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_responses.go b/cbs/internal/array/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_responses.go index 6a0dae4..abed833 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/delete_api_24_volume_groups_responses.go @@ -7,9 +7,12 @@ package volume_groups import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24VolumeGroupsReader is a Reader for the DeleteAPI24VolumeGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24VolumeGroupsReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewDeleteApi24VolumeGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24VolumeGroupsOK) readResponse(response runtime.ClientResponse return nil } + +// NewDeleteApi24VolumeGroupsBadRequest creates a DeleteApi24VolumeGroupsBadRequest with default headers values +func NewDeleteApi24VolumeGroupsBadRequest() *DeleteApi24VolumeGroupsBadRequest { + return &DeleteApi24VolumeGroupsBadRequest{} +} + +/*DeleteApi24VolumeGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24VolumeGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24VolumeGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/volume-groups][%d] deleteApi24VolumeGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24VolumeGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24VolumeGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_responses.go b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_responses.go index e669ca2..dca85cf 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_performance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumeGroupsPerformanceReader is a Reader for the GetAPI24VolumeGroupsPerformance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumeGroupsPerformanceReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24VolumeGroupsPerformanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumeGroupsPerformanceOK) readResponse(response runtime.Client return nil } + +// NewGetApi24VolumeGroupsPerformanceBadRequest creates a GetApi24VolumeGroupsPerformanceBadRequest with default headers values +func NewGetApi24VolumeGroupsPerformanceBadRequest() *GetApi24VolumeGroupsPerformanceBadRequest { + return &GetApi24VolumeGroupsPerformanceBadRequest{} +} + +/*GetApi24VolumeGroupsPerformanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumeGroupsPerformanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumeGroupsPerformanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volume-groups/performance][%d] getApi24VolumeGroupsPerformanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumeGroupsPerformanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumeGroupsPerformanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_responses.go b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_responses.go index cb015e4..132dddc 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumeGroupsReader is a Reader for the GetAPI24VolumeGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumeGroupsReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewGetApi24VolumeGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumeGroupsOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewGetApi24VolumeGroupsBadRequest creates a GetApi24VolumeGroupsBadRequest with default headers values +func NewGetApi24VolumeGroupsBadRequest() *GetApi24VolumeGroupsBadRequest { + return &GetApi24VolumeGroupsBadRequest{} +} + +/*GetApi24VolumeGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumeGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumeGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volume-groups][%d] getApi24VolumeGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumeGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumeGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_responses.go b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_responses.go index be125ea..78237e2 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_space_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumeGroupsSpaceReader is a Reader for the GetAPI24VolumeGroupsSpace structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumeGroupsSpaceReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewGetApi24VolumeGroupsSpaceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumeGroupsSpaceOK) readResponse(response runtime.ClientRespon return nil } + +// NewGetApi24VolumeGroupsSpaceBadRequest creates a GetApi24VolumeGroupsSpaceBadRequest with default headers values +func NewGetApi24VolumeGroupsSpaceBadRequest() *GetApi24VolumeGroupsSpaceBadRequest { + return &GetApi24VolumeGroupsSpaceBadRequest{} +} + +/*GetApi24VolumeGroupsSpaceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumeGroupsSpaceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumeGroupsSpaceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volume-groups/space][%d] getApi24VolumeGroupsSpaceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumeGroupsSpaceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumeGroupsSpaceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_responses.go b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_responses.go index 7e9ea20..dbf6a4f 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/get_api_24_volume_groups_volumes_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumeGroupsVolumesReader is a Reader for the GetAPI24VolumeGroupsVolumes structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumeGroupsVolumesReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewGetApi24VolumeGroupsVolumesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumeGroupsVolumesOK) readResponse(response runtime.ClientResp return nil } + +// NewGetApi24VolumeGroupsVolumesBadRequest creates a GetApi24VolumeGroupsVolumesBadRequest with default headers values +func NewGetApi24VolumeGroupsVolumesBadRequest() *GetApi24VolumeGroupsVolumesBadRequest { + return &GetApi24VolumeGroupsVolumesBadRequest{} +} + +/*GetApi24VolumeGroupsVolumesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumeGroupsVolumesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumeGroupsVolumesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volume-groups/volumes][%d] getApi24VolumeGroupsVolumesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumeGroupsVolumesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumeGroupsVolumesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_parameters.go index c1fe7dc..16fec19 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24VolumeGroupsParams creates a new PatchAPI24VolumeGroupsParams object diff --git a/cbs/internal/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_responses.go b/cbs/internal/array/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_responses.go index 07c216e..1282ab8 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/patch_api_24_volume_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24VolumeGroupsReader is a Reader for the PatchAPI24VolumeGroups structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24VolumeGroupsReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewPatchApi24VolumeGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24VolumeGroupsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPatchApi24VolumeGroupsBadRequest creates a PatchApi24VolumeGroupsBadRequest with default headers values +func NewPatchApi24VolumeGroupsBadRequest() *PatchApi24VolumeGroupsBadRequest { + return &PatchApi24VolumeGroupsBadRequest{} +} + +/*PatchApi24VolumeGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24VolumeGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24VolumeGroupsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/volume-groups][%d] patchApi24VolumeGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24VolumeGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24VolumeGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_groups/post_api_24_volume_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_groups/post_api_24_volume_groups_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/volume_groups/post_api_24_volume_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/post_api_24_volume_groups_parameters.go index 63d2858..5b8b710 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/post_api_24_volume_groups_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/post_api_24_volume_groups_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24VolumeGroupsParams creates a new PostAPI24VolumeGroupsParams object diff --git a/cbs/internal/faclient/2.4/client/volume_groups/post_api_24_volume_groups_responses.go b/cbs/internal/array/faclient/2.4/client/volume_groups/post_api_24_volume_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_groups/post_api_24_volume_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/post_api_24_volume_groups_responses.go index 070cbb3..037eb16 100644 --- a/cbs/internal/faclient/2.4/client/volume_groups/post_api_24_volume_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_groups/post_api_24_volume_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24VolumeGroupsReader is a Reader for the PostAPI24VolumeGroups structure. @@ -29,6 +29,12 @@ func (o *PostAPI24VolumeGroupsReader) ReadResponse(response runtime.ClientRespon return nil, err } return result, nil + case 400: + result := NewPostApi24VolumeGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24VolumeGroupsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewPostApi24VolumeGroupsBadRequest creates a PostApi24VolumeGroupsBadRequest with default headers values +func NewPostApi24VolumeGroupsBadRequest() *PostApi24VolumeGroupsBadRequest { + return &PostApi24VolumeGroupsBadRequest{} +} + +/*PostApi24VolumeGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24VolumeGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24VolumeGroupsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/volume-groups][%d] postApi24VolumeGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24VolumeGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24VolumeGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_groups/volume_groups_client.go b/cbs/internal/array/faclient/2.4/client/volume_groups/volume_groups_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_groups/volume_groups_client.go rename to cbs/internal/array/faclient/2.4/client/volume_groups/volume_groups_client.go diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_responses.go index 8233354..e2ba5af 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_responses.go @@ -7,9 +7,12 @@ package volume_snapshots import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24VolumeSnapshotsReader is a Reader for the DeleteAPI24VolumeSnapshots structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24VolumeSnapshotsReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewDeleteApi24VolumeSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24VolumeSnapshotsOK) readResponse(response runtime.ClientRespo return nil } + +// NewDeleteApi24VolumeSnapshotsBadRequest creates a DeleteApi24VolumeSnapshotsBadRequest with default headers values +func NewDeleteApi24VolumeSnapshotsBadRequest() *DeleteApi24VolumeSnapshotsBadRequest { + return &DeleteApi24VolumeSnapshotsBadRequest{} +} + +/*DeleteApi24VolumeSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24VolumeSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24VolumeSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/volume-snapshots][%d] deleteApi24VolumeSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24VolumeSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24VolumeSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_responses.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_responses.go index 1392adb..28ae744 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/delete_api_24_volume_snapshots_tags_responses.go @@ -7,9 +7,12 @@ package volume_snapshots import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24VolumeSnapshotsTagsReader is a Reader for the DeleteAPI24VolumeSnapshotsTags structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24VolumeSnapshotsTagsReader) ReadResponse(response runtime.Cli return nil, err } return result, nil + case 400: + result := NewDeleteApi24VolumeSnapshotsTagsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24VolumeSnapshotsTagsOK) readResponse(response runtime.ClientR return nil } + +// NewDeleteApi24VolumeSnapshotsTagsBadRequest creates a DeleteApi24VolumeSnapshotsTagsBadRequest with default headers values +func NewDeleteApi24VolumeSnapshotsTagsBadRequest() *DeleteApi24VolumeSnapshotsTagsBadRequest { + return &DeleteApi24VolumeSnapshotsTagsBadRequest{} +} + +/*DeleteApi24VolumeSnapshotsTagsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24VolumeSnapshotsTagsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24VolumeSnapshotsTagsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/volume-snapshots/tags][%d] deleteApi24VolumeSnapshotsTagsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24VolumeSnapshotsTagsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24VolumeSnapshotsTagsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_responses.go index 0a6c969..4aca97f 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumeSnapshotsReader is a Reader for the GetAPI24VolumeSnapshots structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumeSnapshotsReader) ReadResponse(response runtime.ClientResp return nil, err } return result, nil + case 400: + result := NewGetApi24VolumeSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumeSnapshotsOK) readResponse(response runtime.ClientResponse return nil } + +// NewGetApi24VolumeSnapshotsBadRequest creates a GetApi24VolumeSnapshotsBadRequest with default headers values +func NewGetApi24VolumeSnapshotsBadRequest() *GetApi24VolumeSnapshotsBadRequest { + return &GetApi24VolumeSnapshotsBadRequest{} +} + +/*GetApi24VolumeSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumeSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumeSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volume-snapshots][%d] getApi24VolumeSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumeSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumeSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_responses.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_responses.go index f12ebf9..4ff2ca5 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_tags_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumeSnapshotsTagsReader is a Reader for the GetAPI24VolumeSnapshotsTags structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumeSnapshotsTagsReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewGetApi24VolumeSnapshotsTagsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumeSnapshotsTagsOK) readResponse(response runtime.ClientResp return nil } + +// NewGetApi24VolumeSnapshotsTagsBadRequest creates a GetApi24VolumeSnapshotsTagsBadRequest with default headers values +func NewGetApi24VolumeSnapshotsTagsBadRequest() *GetApi24VolumeSnapshotsTagsBadRequest { + return &GetApi24VolumeSnapshotsTagsBadRequest{} +} + +/*GetApi24VolumeSnapshotsTagsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumeSnapshotsTagsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumeSnapshotsTagsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volume-snapshots/tags][%d] getApi24VolumeSnapshotsTagsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumeSnapshotsTagsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumeSnapshotsTagsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_responses.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_responses.go index eeb910b..218c93a 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/get_api_24_volume_snapshots_transfer_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumeSnapshotsTransferReader is a Reader for the GetAPI24VolumeSnapshotsTransfer structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumeSnapshotsTransferReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24VolumeSnapshotsTransferBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumeSnapshotsTransferOK) readResponse(response runtime.Client return nil } + +// NewGetApi24VolumeSnapshotsTransferBadRequest creates a GetApi24VolumeSnapshotsTransferBadRequest with default headers values +func NewGetApi24VolumeSnapshotsTransferBadRequest() *GetApi24VolumeSnapshotsTransferBadRequest { + return &GetApi24VolumeSnapshotsTransferBadRequest{} +} + +/*GetApi24VolumeSnapshotsTransferBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumeSnapshotsTransferBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumeSnapshotsTransferBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volume-snapshots/transfer][%d] getApi24VolumeSnapshotsTransferBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumeSnapshotsTransferBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumeSnapshotsTransferBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_parameters.go index 970e2fb..83948c7 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24VolumeSnapshotsParams creates a new PatchAPI24VolumeSnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_responses.go index 590ba93..7e4f5c9 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/patch_api_24_volume_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24VolumeSnapshotsReader is a Reader for the PatchAPI24VolumeSnapshots structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24VolumeSnapshotsReader) ReadResponse(response runtime.ClientRe return nil, err } return result, nil + case 400: + result := NewPatchApi24VolumeSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24VolumeSnapshotsOK) readResponse(response runtime.ClientRespon return nil } + +// NewPatchApi24VolumeSnapshotsBadRequest creates a PatchApi24VolumeSnapshotsBadRequest with default headers values +func NewPatchApi24VolumeSnapshotsBadRequest() *PatchApi24VolumeSnapshotsBadRequest { + return &PatchApi24VolumeSnapshotsBadRequest{} +} + +/*PatchApi24VolumeSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24VolumeSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24VolumeSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/volume-snapshots][%d] patchApi24VolumeSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24VolumeSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24VolumeSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_parameters.go index 303cddd..9e752c6 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24VolumeSnapshotsParams creates a new PostAPI24VolumeSnapshotsParams object diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_responses.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_responses.go index 66f25be..ec0710b 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/post_api_24_volume_snapshots_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24VolumeSnapshotsReader is a Reader for the PostAPI24VolumeSnapshots structure. @@ -29,6 +29,12 @@ func (o *PostAPI24VolumeSnapshotsReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewPostApi24VolumeSnapshotsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24VolumeSnapshotsOK) readResponse(response runtime.ClientRespons return nil } + +// NewPostApi24VolumeSnapshotsBadRequest creates a PostApi24VolumeSnapshotsBadRequest with default headers values +func NewPostApi24VolumeSnapshotsBadRequest() *PostApi24VolumeSnapshotsBadRequest { + return &PostApi24VolumeSnapshotsBadRequest{} +} + +/*PostApi24VolumeSnapshotsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24VolumeSnapshotsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24VolumeSnapshotsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/volume-snapshots][%d] postApi24VolumeSnapshotsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24VolumeSnapshotsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24VolumeSnapshotsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_parameters.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_parameters.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_parameters.go index 4b7573e..06fec0d 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPutAPI24VolumeSnapshotsTagsBatchParams creates a new PutAPI24VolumeSnapshotsTagsBatchParams object diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_responses.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_responses.go similarity index 60% rename from cbs/internal/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_responses.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_responses.go index fe1fa4a..473e4a4 100644 --- a/cbs/internal/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volume_snapshots/put_api_24_volume_snapshots_tags_batch_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PutAPI24VolumeSnapshotsTagsBatchReader is a Reader for the PutAPI24VolumeSnapshotsTagsBatch structure. @@ -29,6 +29,12 @@ func (o *PutAPI24VolumeSnapshotsTagsBatchReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewPutApi24VolumeSnapshotsTagsBatchBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PutApi24VolumeSnapshotsTagsBatchOK) readResponse(response runtime.Clien return nil } + +// NewPutApi24VolumeSnapshotsTagsBatchBadRequest creates a PutApi24VolumeSnapshotsTagsBatchBadRequest with default headers values +func NewPutApi24VolumeSnapshotsTagsBatchBadRequest() *PutApi24VolumeSnapshotsTagsBatchBadRequest { + return &PutApi24VolumeSnapshotsTagsBatchBadRequest{} +} + +/*PutApi24VolumeSnapshotsTagsBatchBadRequest handles this case with default header values. + +BadRequest +*/ +type PutApi24VolumeSnapshotsTagsBatchBadRequest struct { + Payload *models.Error +} + +func (o *PutApi24VolumeSnapshotsTagsBatchBadRequest) Error() string { + return fmt.Sprintf("[PUT /api/2.4/volume-snapshots/tags/batch][%d] putApi24VolumeSnapshotsTagsBatchBadRequest %+v", 400, o.Payload) +} + +func (o *PutApi24VolumeSnapshotsTagsBatchBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PutApi24VolumeSnapshotsTagsBatchBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volume_snapshots/volume_snapshots_client.go b/cbs/internal/array/faclient/2.4/client/volume_snapshots/volume_snapshots_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volume_snapshots/volume_snapshots_client.go rename to cbs/internal/array/faclient/2.4/client/volume_snapshots/volume_snapshots_client.go diff --git a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_responses.go index 714bbba..9eb042e 100644 --- a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_protection_groups_responses.go @@ -7,9 +7,12 @@ package volumes import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24VolumesProtectionGroupsReader is a Reader for the DeleteAPI24VolumesProtectionGroups structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24VolumesProtectionGroupsReader) ReadResponse(response runtime return nil, err } return result, nil + case 400: + result := NewDeleteApi24VolumesProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24VolumesProtectionGroupsOK) readResponse(response runtime.Cli return nil } + +// NewDeleteApi24VolumesProtectionGroupsBadRequest creates a DeleteApi24VolumesProtectionGroupsBadRequest with default headers values +func NewDeleteApi24VolumesProtectionGroupsBadRequest() *DeleteApi24VolumesProtectionGroupsBadRequest { + return &DeleteApi24VolumesProtectionGroupsBadRequest{} +} + +/*DeleteApi24VolumesProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24VolumesProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24VolumesProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/volumes/protection-groups][%d] deleteApi24VolumesProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24VolumesProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24VolumesProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_responses.go index 37c87ba..99bd38f 100644 --- a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_responses.go @@ -7,9 +7,12 @@ package volumes import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24VolumesReader is a Reader for the DeleteAPI24Volumes structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24VolumesReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewDeleteApi24VolumesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24VolumesOK) readResponse(response runtime.ClientResponse, con return nil } + +// NewDeleteApi24VolumesBadRequest creates a DeleteApi24VolumesBadRequest with default headers values +func NewDeleteApi24VolumesBadRequest() *DeleteApi24VolumesBadRequest { + return &DeleteApi24VolumesBadRequest{} +} + +/*DeleteApi24VolumesBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24VolumesBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24VolumesBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/volumes][%d] deleteApi24VolumesBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24VolumesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24VolumesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_tags_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_tags_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_tags_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_tags_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_tags_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_tags_responses.go similarity index 54% rename from cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_tags_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_tags_responses.go index b34cd66..ba3b456 100644 --- a/cbs/internal/faclient/2.4/client/volumes/delete_api_24_volumes_tags_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/delete_api_24_volumes_tags_responses.go @@ -7,9 +7,12 @@ package volumes import ( "fmt" + "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // DeleteAPI24VolumesTagsReader is a Reader for the DeleteAPI24VolumesTags structure. @@ -26,6 +29,12 @@ func (o *DeleteAPI24VolumesTagsReader) ReadResponse(response runtime.ClientRespo return nil, err } return result, nil + case 400: + result := NewDeleteApi24VolumesTagsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -52,3 +61,36 @@ func (o *DeleteApi24VolumesTagsOK) readResponse(response runtime.ClientResponse, return nil } + +// NewDeleteApi24VolumesTagsBadRequest creates a DeleteApi24VolumesTagsBadRequest with default headers values +func NewDeleteApi24VolumesTagsBadRequest() *DeleteApi24VolumesTagsBadRequest { + return &DeleteApi24VolumesTagsBadRequest{} +} + +/*DeleteApi24VolumesTagsBadRequest handles this case with default header values. + +BadRequest +*/ +type DeleteApi24VolumesTagsBadRequest struct { + Payload *models.Error +} + +func (o *DeleteApi24VolumesTagsBadRequest) Error() string { + return fmt.Sprintf("[DELETE /api/2.4/volumes/tags][%d] deleteApi24VolumesTagsBadRequest %+v", 400, o.Payload) +} + +func (o *DeleteApi24VolumesTagsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *DeleteApi24VolumesTagsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_responses.go index c54c6de..98decd0 100644 --- a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_by_array_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumesPerformanceByArrayReader is a Reader for the GetAPI24VolumesPerformanceByArray structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumesPerformanceByArrayReader) ReadResponse(response runtime. return nil, err } return result, nil + case 400: + result := NewGetApi24VolumesPerformanceByArrayBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumesPerformanceByArrayOK) readResponse(response runtime.Clie return nil } + +// NewGetApi24VolumesPerformanceByArrayBadRequest creates a GetApi24VolumesPerformanceByArrayBadRequest with default headers values +func NewGetApi24VolumesPerformanceByArrayBadRequest() *GetApi24VolumesPerformanceByArrayBadRequest { + return &GetApi24VolumesPerformanceByArrayBadRequest{} +} + +/*GetApi24VolumesPerformanceByArrayBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumesPerformanceByArrayBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumesPerformanceByArrayBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volumes/performance/by-array][%d] getApi24VolumesPerformanceByArrayBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumesPerformanceByArrayBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumesPerformanceByArrayBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_responses.go index 0010299..6a1c9a9 100644 --- a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_performance_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_performance_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumesPerformanceReader is a Reader for the GetAPI24VolumesPerformance structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumesPerformanceReader) ReadResponse(response runtime.ClientR return nil, err } return result, nil + case 400: + result := NewGetApi24VolumesPerformanceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumesPerformanceOK) readResponse(response runtime.ClientRespo return nil } + +// NewGetApi24VolumesPerformanceBadRequest creates a GetApi24VolumesPerformanceBadRequest with default headers values +func NewGetApi24VolumesPerformanceBadRequest() *GetApi24VolumesPerformanceBadRequest { + return &GetApi24VolumesPerformanceBadRequest{} +} + +/*GetApi24VolumesPerformanceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumesPerformanceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumesPerformanceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volumes/performance][%d] getApi24VolumesPerformanceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumesPerformanceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumesPerformanceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_responses.go index 7deb831..0807ad3 100644 --- a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumesProtectionGroupsReader is a Reader for the GetAPI24VolumesProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumesProtectionGroupsReader) ReadResponse(response runtime.Cl return nil, err } return result, nil + case 400: + result := NewGetApi24VolumesProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumesProtectionGroupsOK) readResponse(response runtime.Client return nil } + +// NewGetApi24VolumesProtectionGroupsBadRequest creates a GetApi24VolumesProtectionGroupsBadRequest with default headers values +func NewGetApi24VolumesProtectionGroupsBadRequest() *GetApi24VolumesProtectionGroupsBadRequest { + return &GetApi24VolumesProtectionGroupsBadRequest{} +} + +/*GetApi24VolumesProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumesProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumesProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volumes/protection-groups][%d] getApi24VolumesProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumesProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumesProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_responses.go index 2de0b12..f4803d4 100644 --- a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumesReader is a Reader for the GetAPI24Volumes structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumesReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return result, nil + case 400: + result := NewGetApi24VolumesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumesOK) readResponse(response runtime.ClientResponse, consum return nil } + +// NewGetApi24VolumesBadRequest creates a GetApi24VolumesBadRequest with default headers values +func NewGetApi24VolumesBadRequest() *GetApi24VolumesBadRequest { + return &GetApi24VolumesBadRequest{} +} + +/*GetApi24VolumesBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumesBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumesBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volumes][%d] getApi24VolumesBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_space_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_space_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_space_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_space_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_space_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_space_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_space_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_space_responses.go index 529232b..c038a77 100644 --- a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_space_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_space_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumesSpaceReader is a Reader for the GetAPI24VolumesSpace structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumesSpaceReader) ReadResponse(response runtime.ClientRespons return nil, err } return result, nil + case 400: + result := NewGetApi24VolumesSpaceBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumesSpaceOK) readResponse(response runtime.ClientResponse, c return nil } + +// NewGetApi24VolumesSpaceBadRequest creates a GetApi24VolumesSpaceBadRequest with default headers values +func NewGetApi24VolumesSpaceBadRequest() *GetApi24VolumesSpaceBadRequest { + return &GetApi24VolumesSpaceBadRequest{} +} + +/*GetApi24VolumesSpaceBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumesSpaceBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumesSpaceBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volumes/space][%d] getApi24VolumesSpaceBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumesSpaceBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumesSpaceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_tags_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_tags_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_tags_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_tags_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_tags_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_tags_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_tags_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_tags_responses.go index 9c52be8..74196d9 100644 --- a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_tags_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_tags_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumesTagsReader is a Reader for the GetAPI24VolumesTags structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumesTagsReader) ReadResponse(response runtime.ClientResponse return nil, err } return result, nil + case 400: + result := NewGetApi24VolumesTagsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumesTagsOK) readResponse(response runtime.ClientResponse, co return nil } + +// NewGetApi24VolumesTagsBadRequest creates a GetApi24VolumesTagsBadRequest with default headers values +func NewGetApi24VolumesTagsBadRequest() *GetApi24VolumesTagsBadRequest { + return &GetApi24VolumesTagsBadRequest{} +} + +/*GetApi24VolumesTagsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumesTagsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumesTagsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volumes/tags][%d] getApi24VolumesTagsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumesTagsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumesTagsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_responses.go index fd9174c..2a433cf 100644 --- a/cbs/internal/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/get_api_24_volumes_volume_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // GetAPI24VolumesVolumeGroupsReader is a Reader for the GetAPI24VolumesVolumeGroups structure. @@ -29,6 +29,12 @@ func (o *GetAPI24VolumesVolumeGroupsReader) ReadResponse(response runtime.Client return nil, err } return result, nil + case 400: + result := NewGetApi24VolumesVolumeGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *GetApi24VolumesVolumeGroupsOK) readResponse(response runtime.ClientResp return nil } + +// NewGetApi24VolumesVolumeGroupsBadRequest creates a GetApi24VolumesVolumeGroupsBadRequest with default headers values +func NewGetApi24VolumesVolumeGroupsBadRequest() *GetApi24VolumesVolumeGroupsBadRequest { + return &GetApi24VolumesVolumeGroupsBadRequest{} +} + +/*GetApi24VolumesVolumeGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type GetApi24VolumesVolumeGroupsBadRequest struct { + Payload *models.Error +} + +func (o *GetApi24VolumesVolumeGroupsBadRequest) Error() string { + return fmt.Sprintf("[GET /api/2.4/volumes/volume-groups][%d] getApi24VolumesVolumeGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *GetApi24VolumesVolumeGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetApi24VolumesVolumeGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/patch_api_24_volumes_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/patch_api_24_volumes_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/volumes/patch_api_24_volumes_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/patch_api_24_volumes_parameters.go index f27d9a0..b88264e 100644 --- a/cbs/internal/faclient/2.4/client/volumes/patch_api_24_volumes_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/patch_api_24_volumes_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPatchAPI24VolumesParams creates a new PatchAPI24VolumesParams object diff --git a/cbs/internal/faclient/2.4/client/volumes/patch_api_24_volumes_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/patch_api_24_volumes_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/patch_api_24_volumes_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/patch_api_24_volumes_responses.go index 3e62126..d897379 100644 --- a/cbs/internal/faclient/2.4/client/volumes/patch_api_24_volumes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/patch_api_24_volumes_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PatchAPI24VolumesReader is a Reader for the PatchAPI24Volumes structure. @@ -29,6 +29,12 @@ func (o *PatchAPI24VolumesReader) ReadResponse(response runtime.ClientResponse, return nil, err } return result, nil + case 400: + result := NewPatchApi24VolumesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PatchApi24VolumesOK) readResponse(response runtime.ClientResponse, cons return nil } + +// NewPatchApi24VolumesBadRequest creates a PatchApi24VolumesBadRequest with default headers values +func NewPatchApi24VolumesBadRequest() *PatchApi24VolumesBadRequest { + return &PatchApi24VolumesBadRequest{} +} + +/*PatchApi24VolumesBadRequest handles this case with default header values. + +BadRequest +*/ +type PatchApi24VolumesBadRequest struct { + Payload *models.Error +} + +func (o *PatchApi24VolumesBadRequest) Error() string { + return fmt.Sprintf("[PATCH /api/2.4/volumes][%d] patchApi24VolumesBadRequest %+v", 400, o.Payload) +} + +func (o *PatchApi24VolumesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PatchApi24VolumesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_parameters.go index ade8070..f008ebf 100644 --- a/cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPostAPI24VolumesParams creates a new PostAPI24VolumesParams object diff --git a/cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_parameters.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_parameters.go diff --git a/cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_responses.go index cd73d84..265b568 100644 --- a/cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_protection_groups_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24VolumesProtectionGroupsReader is a Reader for the PostAPI24VolumesProtectionGroups structure. @@ -29,6 +29,12 @@ func (o *PostAPI24VolumesProtectionGroupsReader) ReadResponse(response runtime.C return nil, err } return result, nil + case 400: + result := NewPostApi24VolumesProtectionGroupsBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24VolumesProtectionGroupsOK) readResponse(response runtime.Clien return nil } + +// NewPostApi24VolumesProtectionGroupsBadRequest creates a PostApi24VolumesProtectionGroupsBadRequest with default headers values +func NewPostApi24VolumesProtectionGroupsBadRequest() *PostApi24VolumesProtectionGroupsBadRequest { + return &PostApi24VolumesProtectionGroupsBadRequest{} +} + +/*PostApi24VolumesProtectionGroupsBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24VolumesProtectionGroupsBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24VolumesProtectionGroupsBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/volumes/protection-groups][%d] postApi24VolumesProtectionGroupsBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24VolumesProtectionGroupsBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24VolumesProtectionGroupsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_responses.go index 24d917c..7117d07 100644 --- a/cbs/internal/faclient/2.4/client/volumes/post_api_24_volumes_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/post_api_24_volumes_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PostAPI24VolumesReader is a Reader for the PostAPI24Volumes structure. @@ -29,6 +29,12 @@ func (o *PostAPI24VolumesReader) ReadResponse(response runtime.ClientResponse, c return nil, err } return result, nil + case 400: + result := NewPostApi24VolumesBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PostApi24VolumesOK) readResponse(response runtime.ClientResponse, consu return nil } + +// NewPostApi24VolumesBadRequest creates a PostApi24VolumesBadRequest with default headers values +func NewPostApi24VolumesBadRequest() *PostApi24VolumesBadRequest { + return &PostApi24VolumesBadRequest{} +} + +/*PostApi24VolumesBadRequest handles this case with default header values. + +BadRequest +*/ +type PostApi24VolumesBadRequest struct { + Payload *models.Error +} + +func (o *PostApi24VolumesBadRequest) Error() string { + return fmt.Sprintf("[POST /api/2.4/volumes][%d] postApi24VolumesBadRequest %+v", 400, o.Payload) +} + +func (o *PostApi24VolumesBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PostApi24VolumesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_parameters.go b/cbs/internal/array/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_parameters.go similarity index 99% rename from cbs/internal/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_parameters.go rename to cbs/internal/array/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_parameters.go index 411960a..8103bda 100644 --- a/cbs/internal/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_parameters.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // NewPutAPI24VolumesTagsBatchParams creates a new PutAPI24VolumesTagsBatchParams object diff --git a/cbs/internal/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_responses.go b/cbs/internal/array/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_responses.go similarity index 61% rename from cbs/internal/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_responses.go rename to cbs/internal/array/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_responses.go index 2fae263..d0f47db 100644 --- a/cbs/internal/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_responses.go +++ b/cbs/internal/array/faclient/2.4/client/volumes/put_api_24_volumes_tags_batch_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/models" ) // PutAPI24VolumesTagsBatchReader is a Reader for the PutAPI24VolumesTagsBatch structure. @@ -29,6 +29,12 @@ func (o *PutAPI24VolumesTagsBatchReader) ReadResponse(response runtime.ClientRes return nil, err } return result, nil + case 400: + result := NewPutApi24VolumesTagsBatchBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) @@ -67,3 +73,36 @@ func (o *PutApi24VolumesTagsBatchOK) readResponse(response runtime.ClientRespons return nil } + +// NewPutApi24VolumesTagsBatchBadRequest creates a PutApi24VolumesTagsBatchBadRequest with default headers values +func NewPutApi24VolumesTagsBatchBadRequest() *PutApi24VolumesTagsBatchBadRequest { + return &PutApi24VolumesTagsBatchBadRequest{} +} + +/*PutApi24VolumesTagsBatchBadRequest handles this case with default header values. + +BadRequest +*/ +type PutApi24VolumesTagsBatchBadRequest struct { + Payload *models.Error +} + +func (o *PutApi24VolumesTagsBatchBadRequest) Error() string { + return fmt.Sprintf("[PUT /api/2.4/volumes/tags/batch][%d] putApi24VolumesTagsBatchBadRequest %+v", 400, o.Payload) +} + +func (o *PutApi24VolumesTagsBatchBadRequest) GetPayload() *models.Error { + return o.Payload +} + +func (o *PutApi24VolumesTagsBatchBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cbs/internal/faclient/2.4/client/volumes/volumes_client.go b/cbs/internal/array/faclient/2.4/client/volumes/volumes_client.go similarity index 100% rename from cbs/internal/faclient/2.4/client/volumes/volumes_client.go rename to cbs/internal/array/faclient/2.4/client/volumes/volumes_client.go diff --git a/cbs/internal/faclient/2.4/models/active_directory.go b/cbs/internal/array/faclient/2.4/models/active_directory.go similarity index 100% rename from cbs/internal/faclient/2.4/models/active_directory.go rename to cbs/internal/array/faclient/2.4/models/active_directory.go diff --git a/cbs/internal/faclient/2.4/models/active_directory_all_of1.go b/cbs/internal/array/faclient/2.4/models/active_directory_all_of1.go similarity index 75% rename from cbs/internal/faclient/2.4/models/active_directory_all_of1.go rename to cbs/internal/array/faclient/2.4/models/active_directory_all_of1.go index 55c7df8..84c4a8c 100644 --- a/cbs/internal/faclient/2.4/models/active_directory_all_of1.go +++ b/cbs/internal/array/faclient/2.4/models/active_directory_all_of1.go @@ -19,7 +19,7 @@ type ActiveDirectoryAllOf1 struct { // Read Only: true ComputerName string `json:"computer_name,omitempty"` - // A list of directory servers used for lookups related to user authorization. Accepted server formats are IP address and DNS name. All specified servers must be registered to the domain appropriately in the configured DNS of the array and are only communicated with over the secure LDAP (LDAPS) protocol. If this field is `null`, the servers are resolved for the domain in DNS. + // A list of directory servers used for lookups related to user authorization. Servers must be specified in FQDN format. All specified servers must be registered to the domain appropriately in the configured DNS of the array and are only communicated with over the secure LDAP (LDAPS) protocol. If this field is `null`, the servers are resolved for the domain in DNS. // Read Only: true DirectoryServers []string `json:"directory_servers"` @@ -27,7 +27,7 @@ type ActiveDirectoryAllOf1 struct { // Read Only: true Domain string `json:"domain,omitempty"` - // A list of key distribution servers to use for Kerberos protocol. Accepted server formats are IP address and DNS name. All specified servers must be registered to the domain appropriately in the configured DNS of the array. If this field is `null`, the servers are resolved for the domain in DNS. + // A list of key distribution servers to use for Kerberos protocol. Servers must be specified in FQDN format. All specified servers must be registered to the domain appropriately in the configured DNS of the array. If this field is `null`, the servers are resolved for the domain in DNS. // Read Only: true KerberosServers []string `json:"kerberos_servers"` } diff --git a/cbs/internal/faclient/2.4/models/active_directory_get_response.go b/cbs/internal/array/faclient/2.4/models/active_directory_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/active_directory_get_response.go rename to cbs/internal/array/faclient/2.4/models/active_directory_get_response.go diff --git a/cbs/internal/faclient/2.4/models/active_directory_post.go b/cbs/internal/array/faclient/2.4/models/active_directory_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/active_directory_post.go rename to cbs/internal/array/faclient/2.4/models/active_directory_post.go diff --git a/cbs/internal/faclient/2.4/models/active_directory_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/active_directory_post_all_of1.go similarity index 60% rename from cbs/internal/faclient/2.4/models/active_directory_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/active_directory_post_all_of1.go index 7e57171..e290a04 100644 --- a/cbs/internal/faclient/2.4/models/active_directory_post_all_of1.go +++ b/cbs/internal/array/faclient/2.4/models/active_directory_post_all_of1.go @@ -6,7 +6,6 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) @@ -19,15 +18,13 @@ type ActiveDirectoryPostAllOf1 struct { // The name of the computer account to be created in the Active Directory domain. If not specified, defaults to the name of the Active Directory configuration. ComputerName string `json:"computer_name,omitempty"` - // A list of directory servers used for lookups related to user authorization. Accepted server formats are IP address and DNS name. All specified servers must be registered to the domain appropriately in the configured DNS of the array and are only communicated with over the secure LDAP (LDAPS) protocol. If not specified, servers are resolved for the domain in DNS. The specified list can have a maximum length of 1. - // Max Length: 1 + // A list of directory servers used for lookups related to user authorization. Servers must be specified in FQDN format. All specified servers must be registered to the domain appropriately in the configured DNS of the array and are only communicated with over the secure LDAP (LDAPS) protocol. If not specified, servers are resolved for the domain in DNS. DirectoryServers []string `json:"directory_servers"` // The Active Directory domain to join. Domain string `json:"domain,omitempty"` - // A list of key distribution servers to use for Kerberos protocol. Accepted server formats are IP address and DNS name. All specified servers must be registered to the domain appropriately in the configured DNS of the array. If not specified, servers are resolved for the domain in DNS. The specified list can have a maximum length of 1. - // Max Length: 1 + // A list of key distribution servers to use for Kerberos protocol. Servers must be specified in FQDN format. All specified servers must be registered to the domain appropriately in the configured DNS of the array. If not specified, servers are resolved for the domain in DNS. KerberosServers []string `json:"kerberos_servers"` // The login password of the user with privileges to create the computer account in the domain. This is not persisted on the array. @@ -39,37 +36,6 @@ type ActiveDirectoryPostAllOf1 struct { // Validate validates this active directory post all of1 func (m *ActiveDirectoryPostAllOf1) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateDirectoryServers(formats); err != nil { - res = append(res, err) - } - - if err := m.validateKerberosServers(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *ActiveDirectoryPostAllOf1) validateDirectoryServers(formats strfmt.Registry) error { - - if swag.IsZero(m.DirectoryServers) { // not required - return nil - } - - return nil -} - -func (m *ActiveDirectoryPostAllOf1) validateKerberosServers(formats strfmt.Registry) error { - - if swag.IsZero(m.KerberosServers) { // not required - return nil - } - return nil } diff --git a/cbs/internal/faclient/2.4/models/active_directory_response.go b/cbs/internal/array/faclient/2.4/models/active_directory_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/active_directory_response.go rename to cbs/internal/array/faclient/2.4/models/active_directory_response.go diff --git a/cbs/internal/faclient/2.4/models/admin.go b/cbs/internal/array/faclient/2.4/models/admin.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin.go rename to cbs/internal/array/faclient/2.4/models/admin.go diff --git a/cbs/internal/faclient/2.4/models/admin_api_token.go b/cbs/internal/array/faclient/2.4/models/admin_api_token.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_api_token.go rename to cbs/internal/array/faclient/2.4/models/admin_api_token.go diff --git a/cbs/internal/faclient/2.4/models/admin_api_token_get_response.go b/cbs/internal/array/faclient/2.4/models/admin_api_token_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_api_token_get_response.go rename to cbs/internal/array/faclient/2.4/models/admin_api_token_get_response.go diff --git a/cbs/internal/faclient/2.4/models/admin_api_token_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/admin_api_token_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_api_token_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/admin_api_token_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/admin_api_token_response.go b/cbs/internal/array/faclient/2.4/models/admin_api_token_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_api_token_response.go rename to cbs/internal/array/faclient/2.4/models/admin_api_token_response.go diff --git a/cbs/internal/faclient/2.4/models/admin_cache.go b/cbs/internal/array/faclient/2.4/models/admin_cache.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_cache.go rename to cbs/internal/array/faclient/2.4/models/admin_cache.go diff --git a/cbs/internal/faclient/2.4/models/admin_cache_get_response.go b/cbs/internal/array/faclient/2.4/models/admin_cache_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_cache_get_response.go rename to cbs/internal/array/faclient/2.4/models/admin_cache_get_response.go diff --git a/cbs/internal/faclient/2.4/models/admin_cache_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/admin_cache_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_cache_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/admin_cache_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/admin_cache_response.go b/cbs/internal/array/faclient/2.4/models/admin_cache_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_cache_response.go rename to cbs/internal/array/faclient/2.4/models/admin_cache_response.go diff --git a/cbs/internal/faclient/2.4/models/admin_get_response.go b/cbs/internal/array/faclient/2.4/models/admin_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_get_response.go rename to cbs/internal/array/faclient/2.4/models/admin_get_response.go diff --git a/cbs/internal/faclient/2.4/models/admin_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/admin_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/admin_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/admin_patch.go b/cbs/internal/array/faclient/2.4/models/admin_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_patch.go rename to cbs/internal/array/faclient/2.4/models/admin_patch.go diff --git a/cbs/internal/faclient/2.4/models/admin_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/admin_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/admin_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/admin_post.go b/cbs/internal/array/faclient/2.4/models/admin_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_post.go rename to cbs/internal/array/faclient/2.4/models/admin_post.go diff --git a/cbs/internal/faclient/2.4/models/admin_response.go b/cbs/internal/array/faclient/2.4/models/admin_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_response.go rename to cbs/internal/array/faclient/2.4/models/admin_response.go diff --git a/cbs/internal/faclient/2.4/models/admin_role.go b/cbs/internal/array/faclient/2.4/models/admin_role.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_role.go rename to cbs/internal/array/faclient/2.4/models/admin_role.go diff --git a/cbs/internal/faclient/2.4/models/admin_settings.go b/cbs/internal/array/faclient/2.4/models/admin_settings.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_settings.go rename to cbs/internal/array/faclient/2.4/models/admin_settings.go diff --git a/cbs/internal/faclient/2.4/models/admin_settings_response.go b/cbs/internal/array/faclient/2.4/models/admin_settings_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/admin_settings_response.go rename to cbs/internal/array/faclient/2.4/models/admin_settings_response.go diff --git a/cbs/internal/faclient/2.4/models/aggregate_replication_performance.go b/cbs/internal/array/faclient/2.4/models/aggregate_replication_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/aggregate_replication_performance.go rename to cbs/internal/array/faclient/2.4/models/aggregate_replication_performance.go diff --git a/cbs/internal/faclient/2.4/models/alert.go b/cbs/internal/array/faclient/2.4/models/alert.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert.go rename to cbs/internal/array/faclient/2.4/models/alert.go diff --git a/cbs/internal/faclient/2.4/models/alert_event.go b/cbs/internal/array/faclient/2.4/models/alert_event.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_event.go rename to cbs/internal/array/faclient/2.4/models/alert_event.go diff --git a/cbs/internal/faclient/2.4/models/alert_event_get_response.go b/cbs/internal/array/faclient/2.4/models/alert_event_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_event_get_response.go rename to cbs/internal/array/faclient/2.4/models/alert_event_get_response.go diff --git a/cbs/internal/faclient/2.4/models/alert_event_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/alert_event_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_event_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/alert_event_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/alert_event_oai_gen_all_of1_alert.go b/cbs/internal/array/faclient/2.4/models/alert_event_oai_gen_all_of1_alert.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_event_oai_gen_all_of1_alert.go rename to cbs/internal/array/faclient/2.4/models/alert_event_oai_gen_all_of1_alert.go diff --git a/cbs/internal/faclient/2.4/models/alert_event_response.go b/cbs/internal/array/faclient/2.4/models/alert_event_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_event_response.go rename to cbs/internal/array/faclient/2.4/models/alert_event_response.go diff --git a/cbs/internal/faclient/2.4/models/alert_get_response.go b/cbs/internal/array/faclient/2.4/models/alert_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_get_response.go rename to cbs/internal/array/faclient/2.4/models/alert_get_response.go diff --git a/cbs/internal/faclient/2.4/models/alert_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/alert_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/alert_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/alert_response.go b/cbs/internal/array/faclient/2.4/models/alert_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_response.go rename to cbs/internal/array/faclient/2.4/models/alert_response.go diff --git a/cbs/internal/faclient/2.4/models/alert_watcher.go b/cbs/internal/array/faclient/2.4/models/alert_watcher.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_watcher.go rename to cbs/internal/array/faclient/2.4/models/alert_watcher.go diff --git a/cbs/internal/faclient/2.4/models/alert_watcher_get_response.go b/cbs/internal/array/faclient/2.4/models/alert_watcher_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_watcher_get_response.go rename to cbs/internal/array/faclient/2.4/models/alert_watcher_get_response.go diff --git a/cbs/internal/faclient/2.4/models/alert_watcher_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/alert_watcher_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_watcher_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/alert_watcher_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/alert_watcher_patch.go b/cbs/internal/array/faclient/2.4/models/alert_watcher_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_watcher_patch.go rename to cbs/internal/array/faclient/2.4/models/alert_watcher_patch.go diff --git a/cbs/internal/faclient/2.4/models/alert_watcher_post.go b/cbs/internal/array/faclient/2.4/models/alert_watcher_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_watcher_post.go rename to cbs/internal/array/faclient/2.4/models/alert_watcher_post.go diff --git a/cbs/internal/faclient/2.4/models/alert_watcher_response.go b/cbs/internal/array/faclient/2.4/models/alert_watcher_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/alert_watcher_response.go rename to cbs/internal/array/faclient/2.4/models/alert_watcher_response.go diff --git a/cbs/internal/faclient/2.4/models/api_client.go b/cbs/internal/array/faclient/2.4/models/api_client.go similarity index 100% rename from cbs/internal/faclient/2.4/models/api_client.go rename to cbs/internal/array/faclient/2.4/models/api_client.go diff --git a/cbs/internal/faclient/2.4/models/api_client_get_response.go b/cbs/internal/array/faclient/2.4/models/api_client_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/api_client_get_response.go rename to cbs/internal/array/faclient/2.4/models/api_client_get_response.go diff --git a/cbs/internal/faclient/2.4/models/api_client_patch.go b/cbs/internal/array/faclient/2.4/models/api_client_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/api_client_patch.go rename to cbs/internal/array/faclient/2.4/models/api_client_patch.go diff --git a/cbs/internal/faclient/2.4/models/api_client_post.go b/cbs/internal/array/faclient/2.4/models/api_client_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/api_client_post.go rename to cbs/internal/array/faclient/2.4/models/api_client_post.go diff --git a/cbs/internal/faclient/2.4/models/api_client_response.go b/cbs/internal/array/faclient/2.4/models/api_client_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/api_client_response.go rename to cbs/internal/array/faclient/2.4/models/api_client_response.go diff --git a/cbs/internal/faclient/2.4/models/api_token.go b/cbs/internal/array/faclient/2.4/models/api_token.go similarity index 100% rename from cbs/internal/faclient/2.4/models/api_token.go rename to cbs/internal/array/faclient/2.4/models/api_token.go diff --git a/cbs/internal/faclient/2.4/models/api_version_response.go b/cbs/internal/array/faclient/2.4/models/api_version_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/api_version_response.go rename to cbs/internal/array/faclient/2.4/models/api_version_response.go diff --git a/cbs/internal/faclient/2.4/models/app.go b/cbs/internal/array/faclient/2.4/models/app.go similarity index 100% rename from cbs/internal/faclient/2.4/models/app.go rename to cbs/internal/array/faclient/2.4/models/app.go diff --git a/cbs/internal/faclient/2.4/models/app_get_response.go b/cbs/internal/array/faclient/2.4/models/app_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/app_get_response.go rename to cbs/internal/array/faclient/2.4/models/app_get_response.go diff --git a/cbs/internal/faclient/2.4/models/app_node.go b/cbs/internal/array/faclient/2.4/models/app_node.go similarity index 100% rename from cbs/internal/faclient/2.4/models/app_node.go rename to cbs/internal/array/faclient/2.4/models/app_node.go diff --git a/cbs/internal/faclient/2.4/models/app_node_get_response.go b/cbs/internal/array/faclient/2.4/models/app_node_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/app_node_get_response.go rename to cbs/internal/array/faclient/2.4/models/app_node_get_response.go diff --git a/cbs/internal/faclient/2.4/models/app_node_oai_gen_app.go b/cbs/internal/array/faclient/2.4/models/app_node_oai_gen_app.go similarity index 100% rename from cbs/internal/faclient/2.4/models/app_node_oai_gen_app.go rename to cbs/internal/array/faclient/2.4/models/app_node_oai_gen_app.go diff --git a/cbs/internal/faclient/2.4/models/app_node_response.go b/cbs/internal/array/faclient/2.4/models/app_node_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/app_node_response.go rename to cbs/internal/array/faclient/2.4/models/app_node_response.go diff --git a/cbs/internal/faclient/2.4/models/app_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/app_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/app_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/app_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/app_response.go b/cbs/internal/array/faclient/2.4/models/app_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/app_response.go rename to cbs/internal/array/faclient/2.4/models/app_response.go diff --git a/cbs/internal/faclient/2.4/models/array.go b/cbs/internal/array/faclient/2.4/models/array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array.go rename to cbs/internal/array/faclient/2.4/models/array.go diff --git a/cbs/internal/faclient/2.4/models/array_connection.go b/cbs/internal/array/faclient/2.4/models/array_connection.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection.go rename to cbs/internal/array/faclient/2.4/models/array_connection.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_get_response.go b/cbs/internal/array/faclient/2.4/models/array_connection_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_get_response.go rename to cbs/internal/array/faclient/2.4/models/array_connection_get_response.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_key.go b/cbs/internal/array/faclient/2.4/models/array_connection_key.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_key.go rename to cbs/internal/array/faclient/2.4/models/array_connection_key.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_key_get_response.go b/cbs/internal/array/faclient/2.4/models/array_connection_key_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_key_get_response.go rename to cbs/internal/array/faclient/2.4/models/array_connection_key_get_response.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_key_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/array_connection_key_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_key_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/array_connection_key_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/array_connection_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/array_connection_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_path.go b/cbs/internal/array/faclient/2.4/models/array_connection_path.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_path.go rename to cbs/internal/array/faclient/2.4/models/array_connection_path.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_path_get_response.go b/cbs/internal/array/faclient/2.4/models/array_connection_path_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_path_get_response.go rename to cbs/internal/array/faclient/2.4/models/array_connection_path_get_response.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_path_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/array_connection_path_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_path_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/array_connection_path_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_path_response.go b/cbs/internal/array/faclient/2.4/models/array_connection_path_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_path_response.go rename to cbs/internal/array/faclient/2.4/models/array_connection_path_response.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_post.go b/cbs/internal/array/faclient/2.4/models/array_connection_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_post.go rename to cbs/internal/array/faclient/2.4/models/array_connection_post.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/array_connection_post_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/array_connection_post_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/array_connection_response.go b/cbs/internal/array/faclient/2.4/models/array_connection_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_connection_response.go rename to cbs/internal/array/faclient/2.4/models/array_connection_response.go diff --git a/cbs/internal/faclient/2.4/models/array_factory_reset_token.go b/cbs/internal/array/faclient/2.4/models/array_factory_reset_token.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_factory_reset_token.go rename to cbs/internal/array/faclient/2.4/models/array_factory_reset_token.go diff --git a/cbs/internal/faclient/2.4/models/array_factory_reset_token_get_response.go b/cbs/internal/array/faclient/2.4/models/array_factory_reset_token_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_factory_reset_token_get_response.go rename to cbs/internal/array/faclient/2.4/models/array_factory_reset_token_get_response.go diff --git a/cbs/internal/faclient/2.4/models/array_factory_reset_token_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/array_factory_reset_token_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_factory_reset_token_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/array_factory_reset_token_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/array_factory_reset_token_response.go b/cbs/internal/array/faclient/2.4/models/array_factory_reset_token_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_factory_reset_token_response.go rename to cbs/internal/array/faclient/2.4/models/array_factory_reset_token_response.go diff --git a/cbs/internal/faclient/2.4/models/array_get_response.go b/cbs/internal/array/faclient/2.4/models/array_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_get_response.go rename to cbs/internal/array/faclient/2.4/models/array_get_response.go diff --git a/cbs/internal/faclient/2.4/models/array_performance.go b/cbs/internal/array/faclient/2.4/models/array_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_performance.go rename to cbs/internal/array/faclient/2.4/models/array_performance.go diff --git a/cbs/internal/faclient/2.4/models/array_performance_get_response.go b/cbs/internal/array/faclient/2.4/models/array_performance_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_performance_get_response.go rename to cbs/internal/array/faclient/2.4/models/array_performance_get_response.go diff --git a/cbs/internal/faclient/2.4/models/array_performance_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/array_performance_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_performance_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/array_performance_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/array_performance_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/array_performance_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_performance_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/array_performance_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/array_response.go b/cbs/internal/array/faclient/2.4/models/array_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_response.go rename to cbs/internal/array/faclient/2.4/models/array_response.go diff --git a/cbs/internal/faclient/2.4/models/array_space.go b/cbs/internal/array/faclient/2.4/models/array_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_space.go rename to cbs/internal/array/faclient/2.4/models/array_space.go diff --git a/cbs/internal/faclient/2.4/models/array_space_get_response.go b/cbs/internal/array/faclient/2.4/models/array_space_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_space_get_response.go rename to cbs/internal/array/faclient/2.4/models/array_space_get_response.go diff --git a/cbs/internal/faclient/2.4/models/array_space_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/array_space_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_space_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/array_space_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/array_space_get_response_all_of1_items_items.go b/cbs/internal/array/faclient/2.4/models/array_space_get_response_all_of1_items_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_space_get_response_all_of1_items_items.go rename to cbs/internal/array/faclient/2.4/models/array_space_get_response_all_of1_items_items.go diff --git a/cbs/internal/faclient/2.4/models/array_space_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/array_space_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_space_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/array_space_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/array_space_oai_gen_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/array_space_oai_gen_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_space_oai_gen_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/array_space_oai_gen_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of0.go b/cbs/internal/array/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of0.go rename to cbs/internal/array/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of1.go b/cbs/internal/array/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of1.go rename to cbs/internal/array/faclient/2.4/models/array_space_oai_gen_all_of1_space_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/arrays.go b/cbs/internal/array/faclient/2.4/models/arrays.go similarity index 100% rename from cbs/internal/faclient/2.4/models/arrays.go rename to cbs/internal/array/faclient/2.4/models/arrays.go diff --git a/cbs/internal/faclient/2.4/models/arrays_all_of1.go b/cbs/internal/array/faclient/2.4/models/arrays_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/arrays_all_of1.go rename to cbs/internal/array/faclient/2.4/models/arrays_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/audit.go b/cbs/internal/array/faclient/2.4/models/audit.go similarity index 100% rename from cbs/internal/faclient/2.4/models/audit.go rename to cbs/internal/array/faclient/2.4/models/audit.go diff --git a/cbs/internal/faclient/2.4/models/audit_get_response.go b/cbs/internal/array/faclient/2.4/models/audit_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/audit_get_response.go rename to cbs/internal/array/faclient/2.4/models/audit_get_response.go diff --git a/cbs/internal/faclient/2.4/models/audit_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/audit_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/audit_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/audit_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/audit_oai_gen_all_of1_origin.go b/cbs/internal/array/faclient/2.4/models/audit_oai_gen_all_of1_origin.go similarity index 100% rename from cbs/internal/faclient/2.4/models/audit_oai_gen_all_of1_origin.go rename to cbs/internal/array/faclient/2.4/models/audit_oai_gen_all_of1_origin.go diff --git a/cbs/internal/faclient/2.4/models/audit_response.go b/cbs/internal/array/faclient/2.4/models/audit_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/audit_response.go rename to cbs/internal/array/faclient/2.4/models/audit_response.go diff --git a/cbs/internal/faclient/2.4/models/built_in.go b/cbs/internal/array/faclient/2.4/models/built_in.go similarity index 100% rename from cbs/internal/faclient/2.4/models/built_in.go rename to cbs/internal/array/faclient/2.4/models/built_in.go diff --git a/cbs/internal/faclient/2.4/models/built_in_relationship.go b/cbs/internal/array/faclient/2.4/models/built_in_relationship.go similarity index 100% rename from cbs/internal/faclient/2.4/models/built_in_relationship.go rename to cbs/internal/array/faclient/2.4/models/built_in_relationship.go diff --git a/cbs/internal/faclient/2.4/models/built_in_resource_no_id.go b/cbs/internal/array/faclient/2.4/models/built_in_resource_no_id.go similarity index 100% rename from cbs/internal/faclient/2.4/models/built_in_resource_no_id.go rename to cbs/internal/array/faclient/2.4/models/built_in_resource_no_id.go diff --git a/cbs/internal/faclient/2.4/models/certificate.go b/cbs/internal/array/faclient/2.4/models/certificate.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate.go rename to cbs/internal/array/faclient/2.4/models/certificate.go diff --git a/cbs/internal/faclient/2.4/models/certificate_get_response.go b/cbs/internal/array/faclient/2.4/models/certificate_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_get_response.go rename to cbs/internal/array/faclient/2.4/models/certificate_get_response.go diff --git a/cbs/internal/faclient/2.4/models/certificate_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/certificate_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/certificate_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/certificate_post.go b/cbs/internal/array/faclient/2.4/models/certificate_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_post.go rename to cbs/internal/array/faclient/2.4/models/certificate_post.go diff --git a/cbs/internal/faclient/2.4/models/certificate_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/certificate_post_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/certificate_post_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/certificate_response.go b/cbs/internal/array/faclient/2.4/models/certificate_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_response.go rename to cbs/internal/array/faclient/2.4/models/certificate_response.go diff --git a/cbs/internal/faclient/2.4/models/certificate_signing_request.go b/cbs/internal/array/faclient/2.4/models/certificate_signing_request.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_signing_request.go rename to cbs/internal/array/faclient/2.4/models/certificate_signing_request.go diff --git a/cbs/internal/faclient/2.4/models/certificate_signing_request_post.go b/cbs/internal/array/faclient/2.4/models/certificate_signing_request_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_signing_request_post.go rename to cbs/internal/array/faclient/2.4/models/certificate_signing_request_post.go diff --git a/cbs/internal/faclient/2.4/models/certificate_signing_request_post_certificate.go b/cbs/internal/array/faclient/2.4/models/certificate_signing_request_post_certificate.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_signing_request_post_certificate.go rename to cbs/internal/array/faclient/2.4/models/certificate_signing_request_post_certificate.go diff --git a/cbs/internal/faclient/2.4/models/certificate_signing_request_response.go b/cbs/internal/array/faclient/2.4/models/certificate_signing_request_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/certificate_signing_request_response.go rename to cbs/internal/array/faclient/2.4/models/certificate_signing_request_response.go diff --git a/cbs/internal/faclient/2.4/models/chap.go b/cbs/internal/array/faclient/2.4/models/chap.go similarity index 100% rename from cbs/internal/faclient/2.4/models/chap.go rename to cbs/internal/array/faclient/2.4/models/chap.go diff --git a/cbs/internal/faclient/2.4/models/connection.go b/cbs/internal/array/faclient/2.4/models/connection.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection.go rename to cbs/internal/array/faclient/2.4/models/connection.go diff --git a/cbs/internal/faclient/2.4/models/connection_all_of0.go b/cbs/internal/array/faclient/2.4/models/connection_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_all_of0.go rename to cbs/internal/array/faclient/2.4/models/connection_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/connection_get_response.go b/cbs/internal/array/faclient/2.4/models/connection_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_get_response.go rename to cbs/internal/array/faclient/2.4/models/connection_get_response.go diff --git a/cbs/internal/faclient/2.4/models/connection_oai_gen1_host.go b/cbs/internal/array/faclient/2.4/models/connection_oai_gen1_host.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_oai_gen1_host.go rename to cbs/internal/array/faclient/2.4/models/connection_oai_gen1_host.go diff --git a/cbs/internal/faclient/2.4/models/connection_oai_gen1_host_group.go b/cbs/internal/array/faclient/2.4/models/connection_oai_gen1_host_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_oai_gen1_host_group.go rename to cbs/internal/array/faclient/2.4/models/connection_oai_gen1_host_group.go diff --git a/cbs/internal/faclient/2.4/models/connection_oai_gen1_protocol_endpoint.go b/cbs/internal/array/faclient/2.4/models/connection_oai_gen1_protocol_endpoint.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_oai_gen1_protocol_endpoint.go rename to cbs/internal/array/faclient/2.4/models/connection_oai_gen1_protocol_endpoint.go diff --git a/cbs/internal/faclient/2.4/models/connection_oai_gen1_volume.go b/cbs/internal/array/faclient/2.4/models/connection_oai_gen1_volume.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_oai_gen1_volume.go rename to cbs/internal/array/faclient/2.4/models/connection_oai_gen1_volume.go diff --git a/cbs/internal/faclient/2.4/models/connection_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/connection_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/connection_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/connection_post.go b/cbs/internal/array/faclient/2.4/models/connection_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_post.go rename to cbs/internal/array/faclient/2.4/models/connection_post.go diff --git a/cbs/internal/faclient/2.4/models/connection_post_protocol_endpoint.go b/cbs/internal/array/faclient/2.4/models/connection_post_protocol_endpoint.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_post_protocol_endpoint.go rename to cbs/internal/array/faclient/2.4/models/connection_post_protocol_endpoint.go diff --git a/cbs/internal/faclient/2.4/models/connection_response.go b/cbs/internal/array/faclient/2.4/models/connection_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/connection_response.go rename to cbs/internal/array/faclient/2.4/models/connection_response.go diff --git a/cbs/internal/faclient/2.4/models/controller.go b/cbs/internal/array/faclient/2.4/models/controller.go similarity index 100% rename from cbs/internal/faclient/2.4/models/controller.go rename to cbs/internal/array/faclient/2.4/models/controller.go diff --git a/cbs/internal/faclient/2.4/models/controller_all_of1.go b/cbs/internal/array/faclient/2.4/models/controller_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/controller_all_of1.go rename to cbs/internal/array/faclient/2.4/models/controller_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/controller_get_response.go b/cbs/internal/array/faclient/2.4/models/controller_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/controller_get_response.go rename to cbs/internal/array/faclient/2.4/models/controller_get_response.go diff --git a/cbs/internal/faclient/2.4/models/controller_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/controller_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/controller_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/controller_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/controllers.go b/cbs/internal/array/faclient/2.4/models/controllers.go similarity index 100% rename from cbs/internal/faclient/2.4/models/controllers.go rename to cbs/internal/array/faclient/2.4/models/controllers.go diff --git a/cbs/internal/faclient/2.4/models/destroyed_patch_post.go b/cbs/internal/array/faclient/2.4/models/destroyed_patch_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/destroyed_patch_post.go rename to cbs/internal/array/faclient/2.4/models/destroyed_patch_post.go diff --git a/cbs/internal/faclient/2.4/models/directory.go b/cbs/internal/array/faclient/2.4/models/directory.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory.go rename to cbs/internal/array/faclient/2.4/models/directory.go diff --git a/cbs/internal/faclient/2.4/models/directory_export.go b/cbs/internal/array/faclient/2.4/models/directory_export.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_export.go rename to cbs/internal/array/faclient/2.4/models/directory_export.go diff --git a/cbs/internal/faclient/2.4/models/directory_export_get_response.go b/cbs/internal/array/faclient/2.4/models/directory_export_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_export_get_response.go rename to cbs/internal/array/faclient/2.4/models/directory_export_get_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_export_oai_gen_directory.go b/cbs/internal/array/faclient/2.4/models/directory_export_oai_gen_directory.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_export_oai_gen_directory.go rename to cbs/internal/array/faclient/2.4/models/directory_export_oai_gen_directory.go diff --git a/cbs/internal/faclient/2.4/models/directory_export_oai_gen_policy.go b/cbs/internal/array/faclient/2.4/models/directory_export_oai_gen_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_export_oai_gen_policy.go rename to cbs/internal/array/faclient/2.4/models/directory_export_oai_gen_policy.go diff --git a/cbs/internal/faclient/2.4/models/directory_export_post.go b/cbs/internal/array/faclient/2.4/models/directory_export_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_export_post.go rename to cbs/internal/array/faclient/2.4/models/directory_export_post.go diff --git a/cbs/internal/faclient/2.4/models/directory_export_response.go b/cbs/internal/array/faclient/2.4/models/directory_export_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_export_response.go rename to cbs/internal/array/faclient/2.4/models/directory_export_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_get_response.go b/cbs/internal/array/faclient/2.4/models/directory_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_get_response.go rename to cbs/internal/array/faclient/2.4/models/directory_get_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/directory_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/directory_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/directory_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/directory_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/directory_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/directory_oai_gen_all_of1_file_system.go b/cbs/internal/array/faclient/2.4/models/directory_oai_gen_all_of1_file_system.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_oai_gen_all_of1_file_system.go rename to cbs/internal/array/faclient/2.4/models/directory_oai_gen_all_of1_file_system.go diff --git a/cbs/internal/faclient/2.4/models/directory_oai_gen_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/directory_oai_gen_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_oai_gen_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/directory_oai_gen_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/directory_patch.go b/cbs/internal/array/faclient/2.4/models/directory_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_patch.go rename to cbs/internal/array/faclient/2.4/models/directory_patch.go diff --git a/cbs/internal/faclient/2.4/models/directory_performance.go b/cbs/internal/array/faclient/2.4/models/directory_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_performance.go rename to cbs/internal/array/faclient/2.4/models/directory_performance.go diff --git a/cbs/internal/faclient/2.4/models/directory_performance_get_response.go b/cbs/internal/array/faclient/2.4/models/directory_performance_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_performance_get_response.go rename to cbs/internal/array/faclient/2.4/models/directory_performance_get_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_performance_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/directory_performance_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_performance_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/directory_performance_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/directory_performance_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/directory_performance_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_performance_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/directory_performance_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/directory_policy_export_post.go b/cbs/internal/array/faclient/2.4/models/directory_policy_export_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_policy_export_post.go rename to cbs/internal/array/faclient/2.4/models/directory_policy_export_post.go diff --git a/cbs/internal/faclient/2.4/models/directory_policy_export_post_policies_items.go b/cbs/internal/array/faclient/2.4/models/directory_policy_export_post_policies_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_policy_export_post_policies_items.go rename to cbs/internal/array/faclient/2.4/models/directory_policy_export_post_policies_items.go diff --git a/cbs/internal/faclient/2.4/models/directory_policy_export_post_policies_items_policy.go b/cbs/internal/array/faclient/2.4/models/directory_policy_export_post_policies_items_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_policy_export_post_policies_items_policy.go rename to cbs/internal/array/faclient/2.4/models/directory_policy_export_post_policies_items_policy.go diff --git a/cbs/internal/faclient/2.4/models/directory_policy_post.go b/cbs/internal/array/faclient/2.4/models/directory_policy_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_policy_post.go rename to cbs/internal/array/faclient/2.4/models/directory_policy_post.go diff --git a/cbs/internal/faclient/2.4/models/directory_policy_post_policies_items.go b/cbs/internal/array/faclient/2.4/models/directory_policy_post_policies_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_policy_post_policies_items.go rename to cbs/internal/array/faclient/2.4/models/directory_policy_post_policies_items.go diff --git a/cbs/internal/faclient/2.4/models/directory_policy_post_policies_items_policy.go b/cbs/internal/array/faclient/2.4/models/directory_policy_post_policies_items_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_policy_post_policies_items_policy.go rename to cbs/internal/array/faclient/2.4/models/directory_policy_post_policies_items_policy.go diff --git a/cbs/internal/faclient/2.4/models/directory_post.go b/cbs/internal/array/faclient/2.4/models/directory_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_post.go rename to cbs/internal/array/faclient/2.4/models/directory_post.go diff --git a/cbs/internal/faclient/2.4/models/directory_response.go b/cbs/internal/array/faclient/2.4/models/directory_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_response.go rename to cbs/internal/array/faclient/2.4/models/directory_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_service.go b/cbs/internal/array/faclient/2.4/models/directory_service.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service.go rename to cbs/internal/array/faclient/2.4/models/directory_service.go diff --git a/cbs/internal/faclient/2.4/models/directory_service_get_response.go b/cbs/internal/array/faclient/2.4/models/directory_service_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service_get_response.go rename to cbs/internal/array/faclient/2.4/models/directory_service_get_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_service_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/directory_service_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/directory_service_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/directory_service_oai_gen_all_of1_management.go b/cbs/internal/array/faclient/2.4/models/directory_service_oai_gen_all_of1_management.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service_oai_gen_all_of1_management.go rename to cbs/internal/array/faclient/2.4/models/directory_service_oai_gen_all_of1_management.go diff --git a/cbs/internal/faclient/2.4/models/directory_service_response.go b/cbs/internal/array/faclient/2.4/models/directory_service_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service_response.go rename to cbs/internal/array/faclient/2.4/models/directory_service_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_service_role.go b/cbs/internal/array/faclient/2.4/models/directory_service_role.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service_role.go rename to cbs/internal/array/faclient/2.4/models/directory_service_role.go diff --git a/cbs/internal/faclient/2.4/models/directory_service_role_get_response.go b/cbs/internal/array/faclient/2.4/models/directory_service_role_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service_role_get_response.go rename to cbs/internal/array/faclient/2.4/models/directory_service_role_get_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_service_role_oai_gen_role.go b/cbs/internal/array/faclient/2.4/models/directory_service_role_oai_gen_role.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service_role_oai_gen_role.go rename to cbs/internal/array/faclient/2.4/models/directory_service_role_oai_gen_role.go diff --git a/cbs/internal/faclient/2.4/models/directory_service_role_response.go b/cbs/internal/array/faclient/2.4/models/directory_service_role_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_service_role_response.go rename to cbs/internal/array/faclient/2.4/models/directory_service_role_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_get_response.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_get_response.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_get_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_policy.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_policy.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_policy.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_oai_gen_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_patch.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_patch.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_patch.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_patch_all_of1_policy.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_patch_all_of1_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_patch_all_of1_policy.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_patch_all_of1_policy.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_post.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_post.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_post.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_post_all_of0.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_post_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_post_all_of0.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_post_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_post_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_post_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/directory_snapshot_response.go b/cbs/internal/array/faclient/2.4/models/directory_snapshot_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_snapshot_response.go rename to cbs/internal/array/faclient/2.4/models/directory_snapshot_response.go diff --git a/cbs/internal/faclient/2.4/models/directory_space.go b/cbs/internal/array/faclient/2.4/models/directory_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/directory_space.go rename to cbs/internal/array/faclient/2.4/models/directory_space.go diff --git a/cbs/internal/faclient/2.4/models/dns.go b/cbs/internal/array/faclient/2.4/models/dns.go similarity index 100% rename from cbs/internal/faclient/2.4/models/dns.go rename to cbs/internal/array/faclient/2.4/models/dns.go diff --git a/cbs/internal/faclient/2.4/models/dns_get_response.go b/cbs/internal/array/faclient/2.4/models/dns_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/dns_get_response.go rename to cbs/internal/array/faclient/2.4/models/dns_get_response.go diff --git a/cbs/internal/faclient/2.4/models/dns_patch.go b/cbs/internal/array/faclient/2.4/models/dns_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/dns_patch.go rename to cbs/internal/array/faclient/2.4/models/dns_patch.go diff --git a/cbs/internal/faclient/2.4/models/dns_response.go b/cbs/internal/array/faclient/2.4/models/dns_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/dns_response.go rename to cbs/internal/array/faclient/2.4/models/dns_response.go diff --git a/cbs/internal/faclient/2.4/models/drive.go b/cbs/internal/array/faclient/2.4/models/drive.go similarity index 100% rename from cbs/internal/faclient/2.4/models/drive.go rename to cbs/internal/array/faclient/2.4/models/drive.go diff --git a/cbs/internal/faclient/2.4/models/drive_get_response.go b/cbs/internal/array/faclient/2.4/models/drive_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/drive_get_response.go rename to cbs/internal/array/faclient/2.4/models/drive_get_response.go diff --git a/cbs/internal/faclient/2.4/models/drive_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/drive_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/drive_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/drive_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/drive_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/drive_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/drive_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/drive_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/drive_response.go b/cbs/internal/array/faclient/2.4/models/drive_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/drive_response.go rename to cbs/internal/array/faclient/2.4/models/drive_response.go diff --git a/cbs/internal/array/faclient/2.4/models/error.go b/cbs/internal/array/faclient/2.4/models/error.go new file mode 100644 index 0000000..0e4792f --- /dev/null +++ b/cbs/internal/array/faclient/2.4/models/error.go @@ -0,0 +1,80 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Error error +// +// swagger:model error +type Error struct { + + // The list of errors encountered. + Errors []*ErrorErrorsItems `json:"errors"` +} + +// Validate validates this error +func (m *Error) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateErrors(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Error) validateErrors(formats strfmt.Registry) error { + + if swag.IsZero(m.Errors) { // not required + return nil + } + + for i := 0; i < len(m.Errors); i++ { + if swag.IsZero(m.Errors[i]) { // not required + continue + } + + if m.Errors[i] != nil { + if err := m.Errors[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("errors" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Error) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Error) UnmarshalBinary(b []byte) error { + var res Error + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cbs/internal/array/faclient/2.4/models/error_errors_items.go b/cbs/internal/array/faclient/2.4/models/error_errors_items.go new file mode 100644 index 0000000..3642824 --- /dev/null +++ b/cbs/internal/array/faclient/2.4/models/error_errors_items.go @@ -0,0 +1,46 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ErrorErrorsItems error errors items +// +// swagger:model errorErrorsItems +type ErrorErrorsItems struct { + + // context + Context string `json:"context,omitempty"` + + // message + Message string `json:"message,omitempty"` +} + +// Validate validates this error errors items +func (m *ErrorErrorsItems) Validate(formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ErrorErrorsItems) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ErrorErrorsItems) UnmarshalBinary(b []byte) error { + var res ErrorErrorsItems + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cbs/internal/array/faclient/2.4/models/error_unroll.go b/cbs/internal/array/faclient/2.4/models/error_unroll.go new file mode 100644 index 0000000..c0a686c --- /dev/null +++ b/cbs/internal/array/faclient/2.4/models/error_unroll.go @@ -0,0 +1,11 @@ +package models + +import "fmt" + +func (m *Error) String() string { + if buf, err := m.MarshalBinary(); err != nil { + return fmt.Sprintf("Error marshalling error msg: %+v", err) + } else { + return string(buf) + } +} \ No newline at end of file diff --git a/cbs/internal/faclient/2.4/models/eula.go b/cbs/internal/array/faclient/2.4/models/eula.go similarity index 100% rename from cbs/internal/faclient/2.4/models/eula.go rename to cbs/internal/array/faclient/2.4/models/eula.go diff --git a/cbs/internal/faclient/2.4/models/eula_get_response.go b/cbs/internal/array/faclient/2.4/models/eula_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/eula_get_response.go rename to cbs/internal/array/faclient/2.4/models/eula_get_response.go diff --git a/cbs/internal/faclient/2.4/models/eula_response.go b/cbs/internal/array/faclient/2.4/models/eula_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/eula_response.go rename to cbs/internal/array/faclient/2.4/models/eula_response.go diff --git a/cbs/internal/faclient/2.4/models/eula_signature.go b/cbs/internal/array/faclient/2.4/models/eula_signature.go similarity index 100% rename from cbs/internal/faclient/2.4/models/eula_signature.go rename to cbs/internal/array/faclient/2.4/models/eula_signature.go diff --git a/cbs/internal/faclient/2.4/models/file_system.go b/cbs/internal/array/faclient/2.4/models/file_system.go similarity index 100% rename from cbs/internal/faclient/2.4/models/file_system.go rename to cbs/internal/array/faclient/2.4/models/file_system.go diff --git a/cbs/internal/faclient/2.4/models/file_system_get_response.go b/cbs/internal/array/faclient/2.4/models/file_system_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/file_system_get_response.go rename to cbs/internal/array/faclient/2.4/models/file_system_get_response.go diff --git a/cbs/internal/faclient/2.4/models/file_system_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/file_system_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/file_system_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/file_system_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/file_system_patch.go b/cbs/internal/array/faclient/2.4/models/file_system_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/file_system_patch.go rename to cbs/internal/array/faclient/2.4/models/file_system_patch.go diff --git a/cbs/internal/faclient/2.4/models/file_system_response.go b/cbs/internal/array/faclient/2.4/models/file_system_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/file_system_response.go rename to cbs/internal/array/faclient/2.4/models/file_system_response.go diff --git a/cbs/internal/faclient/2.4/models/fixed_name_resource_no_id.go b/cbs/internal/array/faclient/2.4/models/fixed_name_resource_no_id.go similarity index 100% rename from cbs/internal/faclient/2.4/models/fixed_name_resource_no_id.go rename to cbs/internal/array/faclient/2.4/models/fixed_name_resource_no_id.go diff --git a/cbs/internal/faclient/2.4/models/fixed_reference.go b/cbs/internal/array/faclient/2.4/models/fixed_reference.go similarity index 100% rename from cbs/internal/faclient/2.4/models/fixed_reference.go rename to cbs/internal/array/faclient/2.4/models/fixed_reference.go diff --git a/cbs/internal/faclient/2.4/models/fixed_reference_no_id.go b/cbs/internal/array/faclient/2.4/models/fixed_reference_no_id.go similarity index 100% rename from cbs/internal/faclient/2.4/models/fixed_reference_no_id.go rename to cbs/internal/array/faclient/2.4/models/fixed_reference_no_id.go diff --git a/cbs/internal/faclient/2.4/models/fixed_reference_with_type.go b/cbs/internal/array/faclient/2.4/models/fixed_reference_with_type.go similarity index 100% rename from cbs/internal/faclient/2.4/models/fixed_reference_with_type.go rename to cbs/internal/array/faclient/2.4/models/fixed_reference_with_type.go diff --git a/cbs/internal/faclient/2.4/models/fixed_reference_with_type_all_of1.go b/cbs/internal/array/faclient/2.4/models/fixed_reference_with_type_all_of1.go similarity index 82% rename from cbs/internal/faclient/2.4/models/fixed_reference_with_type_all_of1.go rename to cbs/internal/array/faclient/2.4/models/fixed_reference_with_type_all_of1.go index 548fb8f..d0727f5 100644 --- a/cbs/internal/faclient/2.4/models/fixed_reference_with_type_all_of1.go +++ b/cbs/internal/array/faclient/2.4/models/fixed_reference_with_type_all_of1.go @@ -15,7 +15,7 @@ import ( // swagger:model fixedReferenceWithTypeAllOf1 type FixedReferenceWithTypeAllOf1 struct { - // Type of the object (full name of the endpoint). Valid values are `hosts`, `host-groups`, `network-interfaces`, `pods`, `ports`, `pod-replica-links`, `subnets`, `volumes`, `volume-snapshots`, `volume-groups`, `directories`, `policies/nfs`, `policies/smb`, and `policies/snapshot`. + // Type of the object (full name of the endpoint). Valid values include `hosts`, `host-groups`, `network-interfaces`, `pods`, `ports`, `pod-replica-links`, `subnets`, `volumes`, `volume-snapshots`, `volume-groups`, `directories`, `policies/nfs`, `policies/smb`, `policies/snapshot`, and `policies/quota`. // Read Only: true ResourceType string `json:"resource_type,omitempty"` } diff --git a/cbs/internal/faclient/2.4/models/hardware.go b/cbs/internal/array/faclient/2.4/models/hardware.go similarity index 100% rename from cbs/internal/faclient/2.4/models/hardware.go rename to cbs/internal/array/faclient/2.4/models/hardware.go diff --git a/cbs/internal/faclient/2.4/models/hardware_get_response.go b/cbs/internal/array/faclient/2.4/models/hardware_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/hardware_get_response.go rename to cbs/internal/array/faclient/2.4/models/hardware_get_response.go diff --git a/cbs/internal/faclient/2.4/models/hardware_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/hardware_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/hardware_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/hardware_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/hardware_patch.go b/cbs/internal/array/faclient/2.4/models/hardware_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/hardware_patch.go rename to cbs/internal/array/faclient/2.4/models/hardware_patch.go diff --git a/cbs/internal/faclient/2.4/models/hardware_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/hardware_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/hardware_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/hardware_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/hardware_response.go b/cbs/internal/array/faclient/2.4/models/hardware_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/hardware_response.go rename to cbs/internal/array/faclient/2.4/models/hardware_response.go diff --git a/cbs/internal/faclient/2.4/models/host.go b/cbs/internal/array/faclient/2.4/models/host.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host.go rename to cbs/internal/array/faclient/2.4/models/host.go diff --git a/cbs/internal/faclient/2.4/models/host_all_of0.go b/cbs/internal/array/faclient/2.4/models/host_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_all_of0.go rename to cbs/internal/array/faclient/2.4/models/host_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/host_get_response.go b/cbs/internal/array/faclient/2.4/models/host_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_get_response.go rename to cbs/internal/array/faclient/2.4/models/host_get_response.go diff --git a/cbs/internal/faclient/2.4/models/host_group.go b/cbs/internal/array/faclient/2.4/models/host_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group.go rename to cbs/internal/array/faclient/2.4/models/host_group.go diff --git a/cbs/internal/faclient/2.4/models/host_group_get_response.go b/cbs/internal/array/faclient/2.4/models/host_group_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group_get_response.go rename to cbs/internal/array/faclient/2.4/models/host_group_get_response.go diff --git a/cbs/internal/faclient/2.4/models/host_group_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/host_group_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/host_group_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/host_group_oai_gen_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/host_group_oai_gen_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group_oai_gen_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/host_group_oai_gen_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/host_group_patch.go b/cbs/internal/array/faclient/2.4/models/host_group_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group_patch.go rename to cbs/internal/array/faclient/2.4/models/host_group_patch.go diff --git a/cbs/internal/faclient/2.4/models/host_group_performance.go b/cbs/internal/array/faclient/2.4/models/host_group_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group_performance.go rename to cbs/internal/array/faclient/2.4/models/host_group_performance.go diff --git a/cbs/internal/faclient/2.4/models/host_group_performance_by_array.go b/cbs/internal/array/faclient/2.4/models/host_group_performance_by_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group_performance_by_array.go rename to cbs/internal/array/faclient/2.4/models/host_group_performance_by_array.go diff --git a/cbs/internal/faclient/2.4/models/host_group_response.go b/cbs/internal/array/faclient/2.4/models/host_group_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group_response.go rename to cbs/internal/array/faclient/2.4/models/host_group_response.go diff --git a/cbs/internal/faclient/2.4/models/host_group_space.go b/cbs/internal/array/faclient/2.4/models/host_group_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_group_space.go rename to cbs/internal/array/faclient/2.4/models/host_group_space.go diff --git a/cbs/internal/faclient/2.4/models/host_oai_gen1_all_of1.go b/cbs/internal/array/faclient/2.4/models/host_oai_gen1_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_oai_gen1_all_of1.go rename to cbs/internal/array/faclient/2.4/models/host_oai_gen1_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/host_oai_gen1_all_of1_host_group.go b/cbs/internal/array/faclient/2.4/models/host_oai_gen1_all_of1_host_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_oai_gen1_all_of1_host_group.go rename to cbs/internal/array/faclient/2.4/models/host_oai_gen1_all_of1_host_group.go diff --git a/cbs/internal/faclient/2.4/models/host_oai_gen1_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/host_oai_gen1_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_oai_gen1_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/host_oai_gen1_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/host_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/host_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/host_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/host_patch.go b/cbs/internal/array/faclient/2.4/models/host_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_patch.go rename to cbs/internal/array/faclient/2.4/models/host_patch.go diff --git a/cbs/internal/faclient/2.4/models/host_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/host_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/host_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/host_patch_all_of1_host_group.go b/cbs/internal/array/faclient/2.4/models/host_patch_all_of1_host_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_patch_all_of1_host_group.go rename to cbs/internal/array/faclient/2.4/models/host_patch_all_of1_host_group.go diff --git a/cbs/internal/faclient/2.4/models/host_performance.go b/cbs/internal/array/faclient/2.4/models/host_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_performance.go rename to cbs/internal/array/faclient/2.4/models/host_performance.go diff --git a/cbs/internal/faclient/2.4/models/host_performance_balance.go b/cbs/internal/array/faclient/2.4/models/host_performance_balance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_performance_balance.go rename to cbs/internal/array/faclient/2.4/models/host_performance_balance.go diff --git a/cbs/internal/faclient/2.4/models/host_performance_balance_get_response.go b/cbs/internal/array/faclient/2.4/models/host_performance_balance_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_performance_balance_get_response.go rename to cbs/internal/array/faclient/2.4/models/host_performance_balance_get_response.go diff --git a/cbs/internal/faclient/2.4/models/host_performance_balance_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/host_performance_balance_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_performance_balance_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/host_performance_balance_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/host_performance_balance_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/host_performance_balance_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_performance_balance_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/host_performance_balance_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/host_performance_balance_oai_gen_all_of1_target.go b/cbs/internal/array/faclient/2.4/models/host_performance_balance_oai_gen_all_of1_target.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_performance_balance_oai_gen_all_of1_target.go rename to cbs/internal/array/faclient/2.4/models/host_performance_balance_oai_gen_all_of1_target.go diff --git a/cbs/internal/faclient/2.4/models/host_performance_by_array.go b/cbs/internal/array/faclient/2.4/models/host_performance_by_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_performance_by_array.go rename to cbs/internal/array/faclient/2.4/models/host_performance_by_array.go diff --git a/cbs/internal/faclient/2.4/models/host_port_connectivity.go b/cbs/internal/array/faclient/2.4/models/host_port_connectivity.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_port_connectivity.go rename to cbs/internal/array/faclient/2.4/models/host_port_connectivity.go diff --git a/cbs/internal/faclient/2.4/models/host_post.go b/cbs/internal/array/faclient/2.4/models/host_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_post.go rename to cbs/internal/array/faclient/2.4/models/host_post.go diff --git a/cbs/internal/faclient/2.4/models/host_post_all_of0.go b/cbs/internal/array/faclient/2.4/models/host_post_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_post_all_of0.go rename to cbs/internal/array/faclient/2.4/models/host_post_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/host_response.go b/cbs/internal/array/faclient/2.4/models/host_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_response.go rename to cbs/internal/array/faclient/2.4/models/host_response.go diff --git a/cbs/internal/faclient/2.4/models/host_space.go b/cbs/internal/array/faclient/2.4/models/host_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/host_space.go rename to cbs/internal/array/faclient/2.4/models/host_space.go diff --git a/cbs/internal/faclient/2.4/models/kmip.go b/cbs/internal/array/faclient/2.4/models/kmip.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip.go rename to cbs/internal/array/faclient/2.4/models/kmip.go diff --git a/cbs/internal/faclient/2.4/models/kmip_get_response.go b/cbs/internal/array/faclient/2.4/models/kmip_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_get_response.go rename to cbs/internal/array/faclient/2.4/models/kmip_get_response.go diff --git a/cbs/internal/faclient/2.4/models/kmip_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/kmip_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/kmip_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/kmip_oai_gen_all_of1_certificate.go b/cbs/internal/array/faclient/2.4/models/kmip_oai_gen_all_of1_certificate.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_oai_gen_all_of1_certificate.go rename to cbs/internal/array/faclient/2.4/models/kmip_oai_gen_all_of1_certificate.go diff --git a/cbs/internal/faclient/2.4/models/kmip_patch.go b/cbs/internal/array/faclient/2.4/models/kmip_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_patch.go rename to cbs/internal/array/faclient/2.4/models/kmip_patch.go diff --git a/cbs/internal/faclient/2.4/models/kmip_patch_all_of0.go b/cbs/internal/array/faclient/2.4/models/kmip_patch_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_patch_all_of0.go rename to cbs/internal/array/faclient/2.4/models/kmip_patch_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/kmip_patch_all_of0_certificate.go b/cbs/internal/array/faclient/2.4/models/kmip_patch_all_of0_certificate.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_patch_all_of0_certificate.go rename to cbs/internal/array/faclient/2.4/models/kmip_patch_all_of0_certificate.go diff --git a/cbs/internal/faclient/2.4/models/kmip_post.go b/cbs/internal/array/faclient/2.4/models/kmip_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_post.go rename to cbs/internal/array/faclient/2.4/models/kmip_post.go diff --git a/cbs/internal/faclient/2.4/models/kmip_post_all_of0.go b/cbs/internal/array/faclient/2.4/models/kmip_post_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_post_all_of0.go rename to cbs/internal/array/faclient/2.4/models/kmip_post_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/kmip_post_all_of0_certificate.go b/cbs/internal/array/faclient/2.4/models/kmip_post_all_of0_certificate.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_post_all_of0_certificate.go rename to cbs/internal/array/faclient/2.4/models/kmip_post_all_of0_certificate.go diff --git a/cbs/internal/faclient/2.4/models/kmip_response.go b/cbs/internal/array/faclient/2.4/models/kmip_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_response.go rename to cbs/internal/array/faclient/2.4/models/kmip_response.go diff --git a/cbs/internal/faclient/2.4/models/kmip_test_result.go b/cbs/internal/array/faclient/2.4/models/kmip_test_result.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_test_result.go rename to cbs/internal/array/faclient/2.4/models/kmip_test_result.go diff --git a/cbs/internal/faclient/2.4/models/kmip_test_result_get_response.go b/cbs/internal/array/faclient/2.4/models/kmip_test_result_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_test_result_get_response.go rename to cbs/internal/array/faclient/2.4/models/kmip_test_result_get_response.go diff --git a/cbs/internal/faclient/2.4/models/kmip_test_result_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/kmip_test_result_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/kmip_test_result_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/kmip_test_result_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/maintenance_window.go b/cbs/internal/array/faclient/2.4/models/maintenance_window.go similarity index 100% rename from cbs/internal/faclient/2.4/models/maintenance_window.go rename to cbs/internal/array/faclient/2.4/models/maintenance_window.go diff --git a/cbs/internal/faclient/2.4/models/maintenance_window_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/maintenance_window_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/maintenance_window_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/maintenance_window_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/maintenance_window_post.go b/cbs/internal/array/faclient/2.4/models/maintenance_window_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/maintenance_window_post.go rename to cbs/internal/array/faclient/2.4/models/maintenance_window_post.go diff --git a/cbs/internal/faclient/2.4/models/maintenance_window_post_all_of0.go b/cbs/internal/array/faclient/2.4/models/maintenance_window_post_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/maintenance_window_post_all_of0.go rename to cbs/internal/array/faclient/2.4/models/maintenance_window_post_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/maintenance_windows_get_response.go b/cbs/internal/array/faclient/2.4/models/maintenance_windows_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/maintenance_windows_get_response.go rename to cbs/internal/array/faclient/2.4/models/maintenance_windows_get_response.go diff --git a/cbs/internal/faclient/2.4/models/maintenance_windows_response.go b/cbs/internal/array/faclient/2.4/models/maintenance_windows_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/maintenance_windows_response.go rename to cbs/internal/array/faclient/2.4/models/maintenance_windows_response.go diff --git a/cbs/internal/faclient/2.4/models/member.go b/cbs/internal/array/faclient/2.4/models/member.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member.go rename to cbs/internal/array/faclient/2.4/models/member.go diff --git a/cbs/internal/faclient/2.4/models/member_get_response.go b/cbs/internal/array/faclient/2.4/models/member_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_get_response.go rename to cbs/internal/array/faclient/2.4/models/member_get_response.go diff --git a/cbs/internal/faclient/2.4/models/member_no_id_all.go b/cbs/internal/array/faclient/2.4/models/member_no_id_all.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_no_id_all.go rename to cbs/internal/array/faclient/2.4/models/member_no_id_all.go diff --git a/cbs/internal/faclient/2.4/models/member_no_id_all_get_response.go b/cbs/internal/array/faclient/2.4/models/member_no_id_all_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_no_id_all_get_response.go rename to cbs/internal/array/faclient/2.4/models/member_no_id_all_get_response.go diff --git a/cbs/internal/faclient/2.4/models/member_no_id_all_oai_gen_all_of0.go b/cbs/internal/array/faclient/2.4/models/member_no_id_all_oai_gen_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_no_id_all_oai_gen_all_of0.go rename to cbs/internal/array/faclient/2.4/models/member_no_id_all_oai_gen_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_group.go b/cbs/internal/array/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_group.go rename to cbs/internal/array/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_group.go diff --git a/cbs/internal/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_member.go b/cbs/internal/array/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_member.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_member.go rename to cbs/internal/array/faclient/2.4/models/member_no_id_all_oai_gen_all_of0_member.go diff --git a/cbs/internal/faclient/2.4/models/member_no_id_all_response.go b/cbs/internal/array/faclient/2.4/models/member_no_id_all_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_no_id_all_response.go rename to cbs/internal/array/faclient/2.4/models/member_no_id_all_response.go diff --git a/cbs/internal/faclient/2.4/models/member_no_id_group.go b/cbs/internal/array/faclient/2.4/models/member_no_id_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_no_id_group.go rename to cbs/internal/array/faclient/2.4/models/member_no_id_group.go diff --git a/cbs/internal/faclient/2.4/models/member_no_id_group_oai_gen_all_of0.go b/cbs/internal/array/faclient/2.4/models/member_no_id_group_oai_gen_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_no_id_group_oai_gen_all_of0.go rename to cbs/internal/array/faclient/2.4/models/member_no_id_group_oai_gen_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/member_oai_gen_all_of0.go b/cbs/internal/array/faclient/2.4/models/member_oai_gen_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_oai_gen_all_of0.go rename to cbs/internal/array/faclient/2.4/models/member_oai_gen_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/member_response.go b/cbs/internal/array/faclient/2.4/models/member_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/member_response.go rename to cbs/internal/array/faclient/2.4/models/member_response.go diff --git a/cbs/internal/faclient/2.4/models/network_interface.go b/cbs/internal/array/faclient/2.4/models/network_interface.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface.go rename to cbs/internal/array/faclient/2.4/models/network_interface.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_get_response.go b/cbs/internal/array/faclient/2.4/models/network_interface_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_get_response.go rename to cbs/internal/array/faclient/2.4/models/network_interface_get_response.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/network_interface_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/network_interface_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_oai_gen_all_of1_eth.go b/cbs/internal/array/faclient/2.4/models/network_interface_oai_gen_all_of1_eth.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_oai_gen_all_of1_eth.go rename to cbs/internal/array/faclient/2.4/models/network_interface_oai_gen_all_of1_eth.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_oai_gen_all_of1_eth_subnet.go b/cbs/internal/array/faclient/2.4/models/network_interface_oai_gen_all_of1_eth_subnet.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_oai_gen_all_of1_eth_subnet.go rename to cbs/internal/array/faclient/2.4/models/network_interface_oai_gen_all_of1_eth_subnet.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_oai_gen_all_of1_fc.go b/cbs/internal/array/faclient/2.4/models/network_interface_oai_gen_all_of1_fc.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_oai_gen_all_of1_fc.go rename to cbs/internal/array/faclient/2.4/models/network_interface_oai_gen_all_of1_fc.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_patch.go b/cbs/internal/array/faclient/2.4/models/network_interface_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_patch.go rename to cbs/internal/array/faclient/2.4/models/network_interface_patch.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_patch_all_of0.go b/cbs/internal/array/faclient/2.4/models/network_interface_patch_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_patch_all_of0.go rename to cbs/internal/array/faclient/2.4/models/network_interface_patch_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_patch_all_of0_eth.go b/cbs/internal/array/faclient/2.4/models/network_interface_patch_all_of0_eth.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_patch_all_of0_eth.go rename to cbs/internal/array/faclient/2.4/models/network_interface_patch_all_of0_eth.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_patch_all_of0_eth_subnet.go b/cbs/internal/array/faclient/2.4/models/network_interface_patch_all_of0_eth_subnet.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_patch_all_of0_eth_subnet.go rename to cbs/internal/array/faclient/2.4/models/network_interface_patch_all_of0_eth_subnet.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_performance.go b/cbs/internal/array/faclient/2.4/models/network_interface_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_performance.go rename to cbs/internal/array/faclient/2.4/models/network_interface_performance.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_performance_get_response.go b/cbs/internal/array/faclient/2.4/models/network_interface_performance_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_performance_get_response.go rename to cbs/internal/array/faclient/2.4/models/network_interface_performance_get_response.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_performance_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/network_interface_performance_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_performance_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/network_interface_performance_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_performance_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/network_interface_performance_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_performance_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/network_interface_performance_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_eth.go b/cbs/internal/array/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_eth.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_eth.go rename to cbs/internal/array/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_eth.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_fc.go b/cbs/internal/array/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_fc.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_fc.go rename to cbs/internal/array/faclient/2.4/models/network_interface_performance_oai_gen_all_of1_fc.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_post.go b/cbs/internal/array/faclient/2.4/models/network_interface_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_post.go rename to cbs/internal/array/faclient/2.4/models/network_interface_post.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/network_interface_post_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/network_interface_post_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_post_all_of1_eth.go b/cbs/internal/array/faclient/2.4/models/network_interface_post_all_of1_eth.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_post_all_of1_eth.go rename to cbs/internal/array/faclient/2.4/models/network_interface_post_all_of1_eth.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_post_all_of1_eth_subnet.go b/cbs/internal/array/faclient/2.4/models/network_interface_post_all_of1_eth_subnet.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_post_all_of1_eth_subnet.go rename to cbs/internal/array/faclient/2.4/models/network_interface_post_all_of1_eth_subnet.go diff --git a/cbs/internal/faclient/2.4/models/network_interface_response.go b/cbs/internal/array/faclient/2.4/models/network_interface_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/network_interface_response.go rename to cbs/internal/array/faclient/2.4/models/network_interface_response.go diff --git a/cbs/internal/faclient/2.4/models/new_name.go b/cbs/internal/array/faclient/2.4/models/new_name.go similarity index 100% rename from cbs/internal/faclient/2.4/models/new_name.go rename to cbs/internal/array/faclient/2.4/models/new_name.go diff --git a/cbs/internal/faclient/2.4/models/offload.go b/cbs/internal/array/faclient/2.4/models/offload.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload.go rename to cbs/internal/array/faclient/2.4/models/offload.go diff --git a/cbs/internal/faclient/2.4/models/offload_azure.go b/cbs/internal/array/faclient/2.4/models/offload_azure.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_azure.go rename to cbs/internal/array/faclient/2.4/models/offload_azure.go diff --git a/cbs/internal/faclient/2.4/models/offload_get_response.go b/cbs/internal/array/faclient/2.4/models/offload_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_get_response.go rename to cbs/internal/array/faclient/2.4/models/offload_get_response.go diff --git a/cbs/internal/faclient/2.4/models/offload_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/offload_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/offload_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/offload_google_cloud.go b/cbs/internal/array/faclient/2.4/models/offload_google_cloud.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_google_cloud.go rename to cbs/internal/array/faclient/2.4/models/offload_google_cloud.go diff --git a/cbs/internal/faclient/2.4/models/offload_nfs.go b/cbs/internal/array/faclient/2.4/models/offload_nfs.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_nfs.go rename to cbs/internal/array/faclient/2.4/models/offload_nfs.go diff --git a/cbs/internal/faclient/2.4/models/offload_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/offload_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/offload_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/offload_post.go b/cbs/internal/array/faclient/2.4/models/offload_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_post.go rename to cbs/internal/array/faclient/2.4/models/offload_post.go diff --git a/cbs/internal/faclient/2.4/models/offload_post_azure.go b/cbs/internal/array/faclient/2.4/models/offload_post_azure.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_post_azure.go rename to cbs/internal/array/faclient/2.4/models/offload_post_azure.go diff --git a/cbs/internal/faclient/2.4/models/offload_post_google_cloud.go b/cbs/internal/array/faclient/2.4/models/offload_post_google_cloud.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_post_google_cloud.go rename to cbs/internal/array/faclient/2.4/models/offload_post_google_cloud.go diff --git a/cbs/internal/faclient/2.4/models/offload_post_nfs.go b/cbs/internal/array/faclient/2.4/models/offload_post_nfs.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_post_nfs.go rename to cbs/internal/array/faclient/2.4/models/offload_post_nfs.go diff --git a/cbs/internal/faclient/2.4/models/offload_post_s3.go b/cbs/internal/array/faclient/2.4/models/offload_post_s3.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_post_s3.go rename to cbs/internal/array/faclient/2.4/models/offload_post_s3.go diff --git a/cbs/internal/faclient/2.4/models/offload_response.go b/cbs/internal/array/faclient/2.4/models/offload_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_response.go rename to cbs/internal/array/faclient/2.4/models/offload_response.go diff --git a/cbs/internal/faclient/2.4/models/offload_s3.go b/cbs/internal/array/faclient/2.4/models/offload_s3.go similarity index 100% rename from cbs/internal/faclient/2.4/models/offload_s3.go rename to cbs/internal/array/faclient/2.4/models/offload_s3.go diff --git a/cbs/internal/faclient/2.4/models/override_check.go b/cbs/internal/array/faclient/2.4/models/override_check.go similarity index 100% rename from cbs/internal/faclient/2.4/models/override_check.go rename to cbs/internal/array/faclient/2.4/models/override_check.go diff --git a/cbs/internal/faclient/2.4/models/page_info.go b/cbs/internal/array/faclient/2.4/models/page_info.go similarity index 100% rename from cbs/internal/faclient/2.4/models/page_info.go rename to cbs/internal/array/faclient/2.4/models/page_info.go diff --git a/cbs/internal/faclient/2.4/models/page_info_all_of0.go b/cbs/internal/array/faclient/2.4/models/page_info_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/page_info_all_of0.go rename to cbs/internal/array/faclient/2.4/models/page_info_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/page_info_all_of1.go b/cbs/internal/array/faclient/2.4/models/page_info_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/page_info_all_of1.go rename to cbs/internal/array/faclient/2.4/models/page_info_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/performance.go b/cbs/internal/array/faclient/2.4/models/performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/performance.go rename to cbs/internal/array/faclient/2.4/models/performance.go diff --git a/cbs/internal/faclient/2.4/models/performance_all_of0.go b/cbs/internal/array/faclient/2.4/models/performance_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/performance_all_of0.go rename to cbs/internal/array/faclient/2.4/models/performance_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/performance_all_of1.go b/cbs/internal/array/faclient/2.4/models/performance_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/performance_all_of1.go rename to cbs/internal/array/faclient/2.4/models/performance_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod.go b/cbs/internal/array/faclient/2.4/models/pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod.go rename to cbs/internal/array/faclient/2.4/models/pod.go diff --git a/cbs/internal/faclient/2.4/models/pod_all_of0.go b/cbs/internal/array/faclient/2.4/models/pod_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_all_of0.go rename to cbs/internal/array/faclient/2.4/models/pod_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/pod_all_of0_all_of0.go b/cbs/internal/array/faclient/2.4/models/pod_all_of0_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_all_of0_all_of0.go rename to cbs/internal/array/faclient/2.4/models/pod_all_of0_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/pod_array_status.go b/cbs/internal/array/faclient/2.4/models/pod_array_status.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_array_status.go rename to cbs/internal/array/faclient/2.4/models/pod_array_status.go diff --git a/cbs/internal/faclient/2.4/models/pod_array_status_all_of2.go b/cbs/internal/array/faclient/2.4/models/pod_array_status_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_array_status_all_of2.go rename to cbs/internal/array/faclient/2.4/models/pod_array_status_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/pod_get_response.go b/cbs/internal/array/faclient/2.4/models/pod_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_get_response.go rename to cbs/internal/array/faclient/2.4/models/pod_get_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/pod_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/pod_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/pod_oai_gen1_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_oai_gen1_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_oai_gen1_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_oai_gen1_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_oai_gen2_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_oai_gen2_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_oai_gen2_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_oai_gen2_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_oai_gen2_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/pod_oai_gen2_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_oai_gen2_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/pod_oai_gen2_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/pod_oai_gen2_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/pod_oai_gen2_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_oai_gen2_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/pod_oai_gen2_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/pod_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_patch.go b/cbs/internal/array/faclient/2.4/models/pod_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_patch.go rename to cbs/internal/array/faclient/2.4/models/pod_patch.go diff --git a/cbs/internal/faclient/2.4/models/pod_patch_all_of0.go b/cbs/internal/array/faclient/2.4/models/pod_patch_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_patch_all_of0.go rename to cbs/internal/array/faclient/2.4/models/pod_patch_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/pod_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_patch_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_patch_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_patch_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_patch_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance.go b/cbs/internal/array/faclient/2.4/models/pod_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance.go rename to cbs/internal/array/faclient/2.4/models/pod_performance.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_by_array.go b/cbs/internal/array/faclient/2.4/models/pod_performance_by_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_by_array.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_by_array.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_by_array.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_by_array.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_by_array_get_response.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_by_array_get_response.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array_get_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1_array.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1_array.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array_oai_gen_all_of1_array.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_by_array_response.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_by_array_response.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_by_array_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_get_response.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_get_response.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_get_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_continuous_bytes_per_sec.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_continuous_bytes_per_sec.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_continuous_bytes_per_sec.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_continuous_bytes_per_sec.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_periodic_bytes_per_sec.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_periodic_bytes_per_sec.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_periodic_bytes_per_sec.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_periodic_bytes_per_sec.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_pod.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_pod.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_pod.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_resync_bytes_per_sec.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_resync_bytes_per_sec.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_resync_bytes_per_sec.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_resync_bytes_per_sec.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_sync_bytes_per_sec.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_sync_bytes_per_sec.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_oai_gen_sync_bytes_per_sec.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_oai_gen_sync_bytes_per_sec.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_response.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_response.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_performance_replication_response_items_items.go b/cbs/internal/array/faclient/2.4/models/pod_performance_replication_response_items_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_performance_replication_response_items_items.go rename to cbs/internal/array/faclient/2.4/models/pod_performance_replication_response_items_items.go diff --git a/cbs/internal/faclient/2.4/models/pod_post.go b/cbs/internal/array/faclient/2.4/models/pod_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_post.go rename to cbs/internal/array/faclient/2.4/models/pod_post.go diff --git a/cbs/internal/faclient/2.4/models/pod_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_post_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_post_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_post_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/pod_post_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_post_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/pod_post_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_get_response.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_get_response.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_get_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_lag.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_lag.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_lag.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_lag.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_lag_get_response.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_lag_get_response.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_get_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_lag.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_lag.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_lag.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_lag.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_local_pod.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_local_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_local_pod.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_local_pod.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_remote_pod.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_remote_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_remote_pod.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_oai_gen_all_of1_remote_pod.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_lag_response.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_lag_response.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_lag_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_local_pod.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_local_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_local_pod.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_local_pod.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_remote_pod.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_remote_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_remote_pod.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_oai_gen_all_of1_remote_pod.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_patch.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_patch.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_patch.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_performance.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_performance.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_performance.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_performance_replication.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_performance_replication.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_performance_replication.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_performance_replication.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_performance_replication_get_response.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_performance_replication_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_performance_replication_get_response.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_performance_replication_get_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_performance_replication_response.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_performance_replication_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_performance_replication_response.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_performance_replication_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_replica_link_response.go b/cbs/internal/array/faclient/2.4/models/pod_replica_link_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_replica_link_response.go rename to cbs/internal/array/faclient/2.4/models/pod_replica_link_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_response.go b/cbs/internal/array/faclient/2.4/models/pod_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_response.go rename to cbs/internal/array/faclient/2.4/models/pod_response.go diff --git a/cbs/internal/faclient/2.4/models/pod_space.go b/cbs/internal/array/faclient/2.4/models/pod_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_space.go rename to cbs/internal/array/faclient/2.4/models/pod_space.go diff --git a/cbs/internal/faclient/2.4/models/pod_space1.go b/cbs/internal/array/faclient/2.4/models/pod_space1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_space1.go rename to cbs/internal/array/faclient/2.4/models/pod_space1.go diff --git a/cbs/internal/faclient/2.4/models/pod_space_all_of1.go b/cbs/internal/array/faclient/2.4/models/pod_space_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/pod_space_all_of1.go rename to cbs/internal/array/faclient/2.4/models/pod_space_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/policy.go b/cbs/internal/array/faclient/2.4/models/policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy.go rename to cbs/internal/array/faclient/2.4/models/policy.go diff --git a/cbs/internal/faclient/2.4/models/policy_get_response.go b/cbs/internal/array/faclient/2.4/models/policy_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_get_response.go rename to cbs/internal/array/faclient/2.4/models/policy_get_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_member.go b/cbs/internal/array/faclient/2.4/models/policy_member.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member.go rename to cbs/internal/array/faclient/2.4/models/policy_member.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_export.go b/cbs/internal/array/faclient/2.4/models/policy_member_export.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_export.go rename to cbs/internal/array/faclient/2.4/models/policy_member_export.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_export_get_response.go b/cbs/internal/array/faclient/2.4/models/policy_member_export_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_export_get_response.go rename to cbs/internal/array/faclient/2.4/models/policy_member_export_get_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_export_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/policy_member_export_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_export_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/policy_member_export_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_export_post.go b/cbs/internal/array/faclient/2.4/models/policy_member_export_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_export_post.go rename to cbs/internal/array/faclient/2.4/models/policy_member_export_post.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_export_post_members_items.go b/cbs/internal/array/faclient/2.4/models/policy_member_export_post_members_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_export_post_members_items.go rename to cbs/internal/array/faclient/2.4/models/policy_member_export_post_members_items.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_export_post_members_items_member.go b/cbs/internal/array/faclient/2.4/models/policy_member_export_post_members_items_member.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_export_post_members_items_member.go rename to cbs/internal/array/faclient/2.4/models/policy_member_export_post_members_items_member.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_export_response.go b/cbs/internal/array/faclient/2.4/models/policy_member_export_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_export_response.go rename to cbs/internal/array/faclient/2.4/models/policy_member_export_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_get_response.go b/cbs/internal/array/faclient/2.4/models/policy_member_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_get_response.go rename to cbs/internal/array/faclient/2.4/models/policy_member_get_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_oai_gen_member.go b/cbs/internal/array/faclient/2.4/models/policy_member_oai_gen_member.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_oai_gen_member.go rename to cbs/internal/array/faclient/2.4/models/policy_member_oai_gen_member.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_oai_gen_policy.go b/cbs/internal/array/faclient/2.4/models/policy_member_oai_gen_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_oai_gen_policy.go rename to cbs/internal/array/faclient/2.4/models/policy_member_oai_gen_policy.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_post.go b/cbs/internal/array/faclient/2.4/models/policy_member_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_post.go rename to cbs/internal/array/faclient/2.4/models/policy_member_post.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_post_members_items.go b/cbs/internal/array/faclient/2.4/models/policy_member_post_members_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_post_members_items.go rename to cbs/internal/array/faclient/2.4/models/policy_member_post_members_items.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_post_members_items_member.go b/cbs/internal/array/faclient/2.4/models/policy_member_post_members_items_member.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_post_members_items_member.go rename to cbs/internal/array/faclient/2.4/models/policy_member_post_members_items_member.go diff --git a/cbs/internal/faclient/2.4/models/policy_member_response.go b/cbs/internal/array/faclient/2.4/models/policy_member_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_member_response.go rename to cbs/internal/array/faclient/2.4/models/policy_member_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/policy_oai_gen_all_of1.go similarity index 92% rename from cbs/internal/faclient/2.4/models/policy_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/policy_oai_gen_all_of1.go index 70efb8d..e9660df 100644 --- a/cbs/internal/faclient/2.4/models/policy_oai_gen_all_of1.go +++ b/cbs/internal/array/faclient/2.4/models/policy_oai_gen_all_of1.go @@ -18,7 +18,7 @@ type PolicyOAIGenAllOf1 struct { // Returns a value of `true` if the policy is enabled. Enabled bool `json:"enabled,omitempty"` - // Type of the policy. Valid values are `nfs`, `smb`, and `snapshot`. + // Type of the policy. Valid values include `nfs`, `smb`, `snapshot`, and `quota`. // Read Only: true PolicyType string `json:"policy_type,omitempty"` } diff --git a/cbs/internal/faclient/2.4/models/policy_patch.go b/cbs/internal/array/faclient/2.4/models/policy_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_patch.go rename to cbs/internal/array/faclient/2.4/models/policy_patch.go diff --git a/cbs/internal/faclient/2.4/models/policy_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/policy_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/policy_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/policy_post.go b/cbs/internal/array/faclient/2.4/models/policy_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_post.go rename to cbs/internal/array/faclient/2.4/models/policy_post.go diff --git a/cbs/internal/faclient/2.4/models/policy_response.go b/cbs/internal/array/faclient/2.4/models/policy_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_response.go rename to cbs/internal/array/faclient/2.4/models/policy_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_nfs_client.go b/cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_nfs_client.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_nfs_client_get_response.go b/cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_nfs_client_get_response.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_get_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_nfs_client_oai_gen_policy.go b/cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_oai_gen_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_nfs_client_oai_gen_policy.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_oai_gen_policy.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_nfs_client_post.go b/cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_nfs_client_post.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_post.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_nfs_client_post_rules_items.go b/cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_post_rules_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_nfs_client_post_rules_items.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_post_rules_items.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_nfs_client_response.go b/cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_nfs_client_response.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_nfs_client_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_smb_client.go b/cbs/internal/array/faclient/2.4/models/policy_rule_smb_client.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_smb_client.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_smb_client.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_smb_client_get_response.go b/cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_smb_client_get_response.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_get_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_smb_client_oai_gen_policy.go b/cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_oai_gen_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_smb_client_oai_gen_policy.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_oai_gen_policy.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_smb_client_post.go b/cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_smb_client_post.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_post.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_smb_client_post_rules_items.go b/cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_post_rules_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_smb_client_post_rules_items.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_post_rules_items.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_smb_client_response.go b/cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_smb_client_response.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_smb_client_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_snapshot.go b/cbs/internal/array/faclient/2.4/models/policy_rule_snapshot.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_snapshot.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_snapshot.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_snapshot_get_response.go b/cbs/internal/array/faclient/2.4/models/policy_rule_snapshot_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_snapshot_get_response.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_snapshot_get_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_snapshot_oai_gen_policy.go b/cbs/internal/array/faclient/2.4/models/policy_rule_snapshot_oai_gen_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_snapshot_oai_gen_policy.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_snapshot_oai_gen_policy.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_snapshot_post.go b/cbs/internal/array/faclient/2.4/models/policy_rule_snapshot_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_snapshot_post.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_snapshot_post.go diff --git a/cbs/internal/faclient/2.4/models/policy_rule_snapshot_response.go b/cbs/internal/array/faclient/2.4/models/policy_rule_snapshot_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_rule_snapshot_response.go rename to cbs/internal/array/faclient/2.4/models/policy_rule_snapshot_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_smb.go b/cbs/internal/array/faclient/2.4/models/policy_smb.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_smb.go rename to cbs/internal/array/faclient/2.4/models/policy_smb.go diff --git a/cbs/internal/faclient/2.4/models/policy_smb_get_response.go b/cbs/internal/array/faclient/2.4/models/policy_smb_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_smb_get_response.go rename to cbs/internal/array/faclient/2.4/models/policy_smb_get_response.go diff --git a/cbs/internal/faclient/2.4/models/policy_smb_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/policy_smb_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_smb_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/policy_smb_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/policy_smb_patch.go b/cbs/internal/array/faclient/2.4/models/policy_smb_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_smb_patch.go rename to cbs/internal/array/faclient/2.4/models/policy_smb_patch.go diff --git a/cbs/internal/faclient/2.4/models/policy_smb_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/policy_smb_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_smb_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/policy_smb_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/policy_smb_post.go b/cbs/internal/array/faclient/2.4/models/policy_smb_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_smb_post.go rename to cbs/internal/array/faclient/2.4/models/policy_smb_post.go diff --git a/cbs/internal/faclient/2.4/models/policy_smb_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/policy_smb_post_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_smb_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/policy_smb_post_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/policy_smb_response.go b/cbs/internal/array/faclient/2.4/models/policy_smb_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policy_smb_response.go rename to cbs/internal/array/faclient/2.4/models/policy_smb_response.go diff --git a/cbs/internal/faclient/2.4/models/policyrulesnapshotpost_rules.go b/cbs/internal/array/faclient/2.4/models/policyrulesnapshotpost_rules.go similarity index 100% rename from cbs/internal/faclient/2.4/models/policyrulesnapshotpost_rules.go rename to cbs/internal/array/faclient/2.4/models/policyrulesnapshotpost_rules.go diff --git a/cbs/internal/faclient/2.4/models/port.go b/cbs/internal/array/faclient/2.4/models/port.go similarity index 100% rename from cbs/internal/faclient/2.4/models/port.go rename to cbs/internal/array/faclient/2.4/models/port.go diff --git a/cbs/internal/faclient/2.4/models/port_common.go b/cbs/internal/array/faclient/2.4/models/port_common.go similarity index 100% rename from cbs/internal/faclient/2.4/models/port_common.go rename to cbs/internal/array/faclient/2.4/models/port_common.go diff --git a/cbs/internal/faclient/2.4/models/port_get_response.go b/cbs/internal/array/faclient/2.4/models/port_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/port_get_response.go rename to cbs/internal/array/faclient/2.4/models/port_get_response.go diff --git a/cbs/internal/faclient/2.4/models/port_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/port_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/port_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/port_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/port_initiator.go b/cbs/internal/array/faclient/2.4/models/port_initiator.go similarity index 100% rename from cbs/internal/faclient/2.4/models/port_initiator.go rename to cbs/internal/array/faclient/2.4/models/port_initiator.go diff --git a/cbs/internal/faclient/2.4/models/port_initiators_get_response.go b/cbs/internal/array/faclient/2.4/models/port_initiators_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/port_initiators_get_response.go rename to cbs/internal/array/faclient/2.4/models/port_initiators_get_response.go diff --git a/cbs/internal/faclient/2.4/models/port_initiators_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/port_initiators_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/port_initiators_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/port_initiators_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/port_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/port_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/port_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/port_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/post_oauth210_token_bad_request_body.go b/cbs/internal/array/faclient/2.4/models/post_oauth210_token_bad_request_body.go similarity index 100% rename from cbs/internal/faclient/2.4/models/post_oauth210_token_bad_request_body.go rename to cbs/internal/array/faclient/2.4/models/post_oauth210_token_bad_request_body.go diff --git a/cbs/internal/faclient/2.4/models/post_oauth210_token_o_k_body.go b/cbs/internal/array/faclient/2.4/models/post_oauth210_token_o_k_body.go similarity index 100% rename from cbs/internal/faclient/2.4/models/post_oauth210_token_o_k_body.go rename to cbs/internal/array/faclient/2.4/models/post_oauth210_token_o_k_body.go diff --git a/cbs/internal/faclient/2.4/models/post_oauth210_token_unauthorized_body.go b/cbs/internal/array/faclient/2.4/models/post_oauth210_token_unauthorized_body.go similarity index 100% rename from cbs/internal/faclient/2.4/models/post_oauth210_token_unauthorized_body.go rename to cbs/internal/array/faclient/2.4/models/post_oauth210_token_unauthorized_body.go diff --git a/cbs/internal/faclient/2.4/models/protection_group.go b/cbs/internal/array/faclient/2.4/models/protection_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group.go rename to cbs/internal/array/faclient/2.4/models/protection_group.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_get_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_get_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_get_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/protection_group_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/protection_group_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_pod.go b/cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_pod.go rename to cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_pod.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_replication_schedule.go b/cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_replication_schedule.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_replication_schedule.go rename to cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_replication_schedule.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_snapshot_schedule.go b/cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_snapshot_schedule.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_snapshot_schedule.go rename to cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_snapshot_schedule.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_source_retention.go b/cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_source_retention.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_source_retention.go rename to cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_source_retention.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_target_retention.go b/cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_target_retention.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_oai_gen_all_of1_target_retention.go rename to cbs/internal/array/faclient/2.4/models/protection_group_oai_gen_all_of1_target_retention.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance_array.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance_array.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance_array.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance_array_all_of2.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance_array_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance_array_all_of2.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance_array_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance_array_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance_array_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance_array_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance_array_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance_array_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance_array_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance_array_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance_array_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance_by_array.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance_by_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance_by_array.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance_by_array.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_performance_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/protection_group_performance_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_performance_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/protection_group_performance_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_get_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_get_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_get_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_pod.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_pod.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_pod.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_oai_gen_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_patch.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_patch.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_patch.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_post.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_post.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_post.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_post_all_of2.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_post_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_post_all_of2.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_post_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_transfer.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_transfer.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_transfer.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_transfer.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_transfer_get_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_transfer_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_transfer_get_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_transfer_get_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_transfer_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_transfer_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_transfer_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_transfer_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_snapshot_transfer_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_snapshot_transfer_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_snapshot_transfer_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_snapshot_transfer_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_space.go b/cbs/internal/array/faclient/2.4/models/protection_group_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_space.go rename to cbs/internal/array/faclient/2.4/models/protection_group_space.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_target.go b/cbs/internal/array/faclient/2.4/models/protection_group_target.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_target.go rename to cbs/internal/array/faclient/2.4/models/protection_group_target.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_target_get_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_target_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_target_get_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_target_get_response.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_target_oai_gen_all_of0.go b/cbs/internal/array/faclient/2.4/models/protection_group_target_oai_gen_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_target_oai_gen_all_of0.go rename to cbs/internal/array/faclient/2.4/models/protection_group_target_oai_gen_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/protection_group_target_response.go b/cbs/internal/array/faclient/2.4/models/protection_group_target_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/protection_group_target_response.go rename to cbs/internal/array/faclient/2.4/models/protection_group_target_response.go diff --git a/cbs/internal/faclient/2.4/models/qos.go b/cbs/internal/array/faclient/2.4/models/qos.go similarity index 100% rename from cbs/internal/faclient/2.4/models/qos.go rename to cbs/internal/array/faclient/2.4/models/qos.go diff --git a/cbs/internal/faclient/2.4/models/reference.go b/cbs/internal/array/faclient/2.4/models/reference.go similarity index 100% rename from cbs/internal/faclient/2.4/models/reference.go rename to cbs/internal/array/faclient/2.4/models/reference.go diff --git a/cbs/internal/faclient/2.4/models/reference_no_id.go b/cbs/internal/array/faclient/2.4/models/reference_no_id.go similarity index 100% rename from cbs/internal/faclient/2.4/models/reference_no_id.go rename to cbs/internal/array/faclient/2.4/models/reference_no_id.go diff --git a/cbs/internal/faclient/2.4/models/reference_with_type.go b/cbs/internal/array/faclient/2.4/models/reference_with_type.go similarity index 100% rename from cbs/internal/faclient/2.4/models/reference_with_type.go rename to cbs/internal/array/faclient/2.4/models/reference_with_type.go diff --git a/cbs/internal/faclient/2.4/models/reference_with_type_all_of1.go b/cbs/internal/array/faclient/2.4/models/reference_with_type_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/reference_with_type_all_of1.go rename to cbs/internal/array/faclient/2.4/models/reference_with_type_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/remote_pod.go b/cbs/internal/array/faclient/2.4/models/remote_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_pod.go rename to cbs/internal/array/faclient/2.4/models/remote_pod.go diff --git a/cbs/internal/faclient/2.4/models/remote_pod_all_of1.go b/cbs/internal/array/faclient/2.4/models/remote_pod_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_pod_all_of1.go rename to cbs/internal/array/faclient/2.4/models/remote_pod_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/remote_pods_response.go b/cbs/internal/array/faclient/2.4/models/remote_pods_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_pods_response.go rename to cbs/internal/array/faclient/2.4/models/remote_pods_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_pods_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/remote_pods_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_pods_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/remote_pods_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_get_response.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_get_response.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_get_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_remote.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_remote.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_remote.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_remote.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_target_retention.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_target_retention.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_target_retention.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_oai_gen_all_of1_target_retention.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_response.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_response.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_get_response.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_get_response.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_get_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_remote.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_remote.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_remote.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_remote.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_oai_gen_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_post.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_post.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_post.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_post_all_of2.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_post_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_post_all_of2.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_post_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_response.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_response.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_transfer.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_transfer.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_transfer.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_transfer.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_transfer_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_transfer_response.go b/cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_transfer_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_protection_group_snapshot_transfer_response.go rename to cbs/internal/array/faclient/2.4/models/remote_protection_group_snapshot_transfer_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot_get_response.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot_get_response.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_get_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2_remote.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2_remote.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2_remote.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_oai_gen_all_of2_remote.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot_response.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot_response.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot_transfer.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_transfer.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot_transfer.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_transfer.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot_transfer_get_response.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_transfer_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot_transfer_get_response.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_transfer_get_response.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot_transfer_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_transfer_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot_transfer_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_transfer_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/remote_volume_snapshot_transfer_response.go b/cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_transfer_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/remote_volume_snapshot_transfer_response.go rename to cbs/internal/array/faclient/2.4/models/remote_volume_snapshot_transfer_response.go diff --git a/cbs/internal/faclient/2.4/models/replica_link_lag.go b/cbs/internal/array/faclient/2.4/models/replica_link_lag.go similarity index 100% rename from cbs/internal/faclient/2.4/models/replica_link_lag.go rename to cbs/internal/array/faclient/2.4/models/replica_link_lag.go diff --git a/cbs/internal/faclient/2.4/models/replica_link_performance_replication.go b/cbs/internal/array/faclient/2.4/models/replica_link_performance_replication.go similarity index 100% rename from cbs/internal/faclient/2.4/models/replica_link_performance_replication.go rename to cbs/internal/array/faclient/2.4/models/replica_link_performance_replication.go diff --git a/cbs/internal/faclient/2.4/models/replica_link_performance_replication_local_pod.go b/cbs/internal/array/faclient/2.4/models/replica_link_performance_replication_local_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/replica_link_performance_replication_local_pod.go rename to cbs/internal/array/faclient/2.4/models/replica_link_performance_replication_local_pod.go diff --git a/cbs/internal/faclient/2.4/models/replica_link_performance_replication_remote_pod.go b/cbs/internal/array/faclient/2.4/models/replica_link_performance_replication_remote_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/replica_link_performance_replication_remote_pod.go rename to cbs/internal/array/faclient/2.4/models/replica_link_performance_replication_remote_pod.go diff --git a/cbs/internal/faclient/2.4/models/replication_performance_with_total.go b/cbs/internal/array/faclient/2.4/models/replication_performance_with_total.go similarity index 100% rename from cbs/internal/faclient/2.4/models/replication_performance_with_total.go rename to cbs/internal/array/faclient/2.4/models/replication_performance_with_total.go diff --git a/cbs/internal/faclient/2.4/models/replication_schedule.go b/cbs/internal/array/faclient/2.4/models/replication_schedule.go similarity index 100% rename from cbs/internal/faclient/2.4/models/replication_schedule.go rename to cbs/internal/array/faclient/2.4/models/replication_schedule.go diff --git a/cbs/internal/faclient/2.4/models/replication_schedule_all_of1.go b/cbs/internal/array/faclient/2.4/models/replication_schedule_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/replication_schedule_all_of1.go rename to cbs/internal/array/faclient/2.4/models/replication_schedule_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/replication_schedule_all_of1_blackout.go b/cbs/internal/array/faclient/2.4/models/replication_schedule_all_of1_blackout.go similarity index 100% rename from cbs/internal/faclient/2.4/models/replication_schedule_all_of1_blackout.go rename to cbs/internal/array/faclient/2.4/models/replication_schedule_all_of1_blackout.go diff --git a/cbs/internal/faclient/2.4/models/resource.go b/cbs/internal/array/faclient/2.4/models/resource.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource.go rename to cbs/internal/array/faclient/2.4/models/resource.go diff --git a/cbs/internal/faclient/2.4/models/resource_fixed_non_unique_name.go b/cbs/internal/array/faclient/2.4/models/resource_fixed_non_unique_name.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_fixed_non_unique_name.go rename to cbs/internal/array/faclient/2.4/models/resource_fixed_non_unique_name.go diff --git a/cbs/internal/faclient/2.4/models/resource_no_id.go b/cbs/internal/array/faclient/2.4/models/resource_no_id.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_no_id.go rename to cbs/internal/array/faclient/2.4/models/resource_no_id.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance.go b/cbs/internal/array/faclient/2.4/models/resource_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance.go rename to cbs/internal/array/faclient/2.4/models/resource_performance.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_by_array.go b/cbs/internal/array/faclient/2.4/models/resource_performance_by_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_by_array.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_by_array.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_by_array_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_performance_by_array_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_by_array_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_by_array_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_by_array_all_of1_array.go b/cbs/internal/array/faclient/2.4/models/resource_performance_by_array_all_of1_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_by_array_all_of1_array.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_by_array_all_of1_array.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_by_array_get_response.go b/cbs/internal/array/faclient/2.4/models/resource_performance_by_array_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_by_array_get_response.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_by_array_get_response.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_by_array_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_performance_by_array_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_by_array_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_by_array_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_get_response.go b/cbs/internal/array/faclient/2.4/models/resource_performance_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_get_response.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_get_response.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_performance_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_no_id.go b/cbs/internal/array/faclient/2.4/models/resource_performance_no_id.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_no_id.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_no_id.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array.go b/cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array_all_of1_array.go b/cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array_all_of1_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array_all_of1_array.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array_all_of1_array.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array_get_response.go b/cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array_get_response.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array_get_response.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_no_id_by_array_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_no_id_by_array_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_no_id_get_response.go b/cbs/internal/array/faclient/2.4/models/resource_performance_no_id_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_no_id_get_response.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_no_id_get_response.go diff --git a/cbs/internal/faclient/2.4/models/resource_performance_no_id_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_performance_no_id_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_performance_no_id_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_performance_no_id_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_pod_space.go b/cbs/internal/array/faclient/2.4/models/resource_pod_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_pod_space.go rename to cbs/internal/array/faclient/2.4/models/resource_pod_space.go diff --git a/cbs/internal/faclient/2.4/models/resource_pod_space_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_pod_space_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_pod_space_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_pod_space_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_pod_space_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/resource_pod_space_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_pod_space_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/resource_pod_space_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/resource_pod_space_get_response.go b/cbs/internal/array/faclient/2.4/models/resource_pod_space_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_pod_space_get_response.go rename to cbs/internal/array/faclient/2.4/models/resource_pod_space_get_response.go diff --git a/cbs/internal/faclient/2.4/models/resource_pod_space_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_pod_space_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_pod_space_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_pod_space_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_space.go b/cbs/internal/array/faclient/2.4/models/resource_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space.go rename to cbs/internal/array/faclient/2.4/models/resource_space.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_space_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_space_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/resource_space_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/resource_space_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_get_response.go b/cbs/internal/array/faclient/2.4/models/resource_space_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_get_response.go rename to cbs/internal/array/faclient/2.4/models/resource_space_get_response.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_space_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_space_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_no_id.go b/cbs/internal/array/faclient/2.4/models/resource_space_no_id.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_no_id.go rename to cbs/internal/array/faclient/2.4/models/resource_space_no_id.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_no_id_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_space_no_id_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_no_id_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_space_no_id_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_no_id_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/resource_space_no_id_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_no_id_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/resource_space_no_id_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_no_id_get_response.go b/cbs/internal/array/faclient/2.4/models/resource_space_no_id_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_no_id_get_response.go rename to cbs/internal/array/faclient/2.4/models/resource_space_no_id_get_response.go diff --git a/cbs/internal/faclient/2.4/models/resource_space_no_id_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/resource_space_no_id_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/resource_space_no_id_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/resource_space_no_id_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/retention_policy.go b/cbs/internal/array/faclient/2.4/models/retention_policy.go similarity index 100% rename from cbs/internal/faclient/2.4/models/retention_policy.go rename to cbs/internal/array/faclient/2.4/models/retention_policy.go diff --git a/cbs/internal/faclient/2.4/models/session.go b/cbs/internal/array/faclient/2.4/models/session.go similarity index 100% rename from cbs/internal/faclient/2.4/models/session.go rename to cbs/internal/array/faclient/2.4/models/session.go diff --git a/cbs/internal/faclient/2.4/models/session_get_response.go b/cbs/internal/array/faclient/2.4/models/session_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/session_get_response.go rename to cbs/internal/array/faclient/2.4/models/session_get_response.go diff --git a/cbs/internal/faclient/2.4/models/session_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/session_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/session_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/session_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/session_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/session_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/session_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/session_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/smis.go b/cbs/internal/array/faclient/2.4/models/smis.go similarity index 100% rename from cbs/internal/faclient/2.4/models/smis.go rename to cbs/internal/array/faclient/2.4/models/smis.go diff --git a/cbs/internal/faclient/2.4/models/smis_get_response.go b/cbs/internal/array/faclient/2.4/models/smis_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/smis_get_response.go rename to cbs/internal/array/faclient/2.4/models/smis_get_response.go diff --git a/cbs/internal/faclient/2.4/models/smis_response.go b/cbs/internal/array/faclient/2.4/models/smis_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/smis_response.go rename to cbs/internal/array/faclient/2.4/models/smis_response.go diff --git a/cbs/internal/faclient/2.4/models/smtp.go b/cbs/internal/array/faclient/2.4/models/smtp.go similarity index 100% rename from cbs/internal/faclient/2.4/models/smtp.go rename to cbs/internal/array/faclient/2.4/models/smtp.go diff --git a/cbs/internal/faclient/2.4/models/smtp_server.go b/cbs/internal/array/faclient/2.4/models/smtp_server.go similarity index 100% rename from cbs/internal/faclient/2.4/models/smtp_server.go rename to cbs/internal/array/faclient/2.4/models/smtp_server.go diff --git a/cbs/internal/faclient/2.4/models/smtp_server_all_of1.go b/cbs/internal/array/faclient/2.4/models/smtp_server_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/smtp_server_all_of1.go rename to cbs/internal/array/faclient/2.4/models/smtp_server_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/smtp_server_get_response.go b/cbs/internal/array/faclient/2.4/models/smtp_server_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/smtp_server_get_response.go rename to cbs/internal/array/faclient/2.4/models/smtp_server_get_response.go diff --git a/cbs/internal/faclient/2.4/models/smtp_server_response.go b/cbs/internal/array/faclient/2.4/models/smtp_server_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/smtp_server_response.go rename to cbs/internal/array/faclient/2.4/models/smtp_server_response.go diff --git a/cbs/internal/faclient/2.4/models/snapshot.go b/cbs/internal/array/faclient/2.4/models/snapshot.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snapshot.go rename to cbs/internal/array/faclient/2.4/models/snapshot.go diff --git a/cbs/internal/faclient/2.4/models/snapshot_pod.go b/cbs/internal/array/faclient/2.4/models/snapshot_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snapshot_pod.go rename to cbs/internal/array/faclient/2.4/models/snapshot_pod.go diff --git a/cbs/internal/faclient/2.4/models/snapshot_schedule.go b/cbs/internal/array/faclient/2.4/models/snapshot_schedule.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snapshot_schedule.go rename to cbs/internal/array/faclient/2.4/models/snapshot_schedule.go diff --git a/cbs/internal/faclient/2.4/models/snapshot_source.go b/cbs/internal/array/faclient/2.4/models/snapshot_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snapshot_source.go rename to cbs/internal/array/faclient/2.4/models/snapshot_source.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent.go b/cbs/internal/array/faclient/2.4/models/snmp_agent.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_get_response.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_get_response.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_get_response.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_mib.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_mib.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_mib.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_mib.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_mib_all_of0.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_mib_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_mib_all_of0.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_mib_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_mib_get_response.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_mib_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_mib_get_response.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_mib_get_response.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_mib_response.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_mib_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_mib_response.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_mib_response.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_patch.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_patch.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_patch.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/snmp_agent_response.go b/cbs/internal/array/faclient/2.4/models/snmp_agent_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_agent_response.go rename to cbs/internal/array/faclient/2.4/models/snmp_agent_response.go diff --git a/cbs/internal/faclient/2.4/models/snmp_manager.go b/cbs/internal/array/faclient/2.4/models/snmp_manager.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_manager.go rename to cbs/internal/array/faclient/2.4/models/snmp_manager.go diff --git a/cbs/internal/faclient/2.4/models/snmp_manager_all_of1.go b/cbs/internal/array/faclient/2.4/models/snmp_manager_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_manager_all_of1.go rename to cbs/internal/array/faclient/2.4/models/snmp_manager_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/snmp_manager_get_response.go b/cbs/internal/array/faclient/2.4/models/snmp_manager_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_manager_get_response.go rename to cbs/internal/array/faclient/2.4/models/snmp_manager_get_response.go diff --git a/cbs/internal/faclient/2.4/models/snmp_manager_patch.go b/cbs/internal/array/faclient/2.4/models/snmp_manager_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_manager_patch.go rename to cbs/internal/array/faclient/2.4/models/snmp_manager_patch.go diff --git a/cbs/internal/faclient/2.4/models/snmp_manager_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/snmp_manager_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_manager_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/snmp_manager_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/snmp_manager_post.go b/cbs/internal/array/faclient/2.4/models/snmp_manager_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_manager_post.go rename to cbs/internal/array/faclient/2.4/models/snmp_manager_post.go diff --git a/cbs/internal/faclient/2.4/models/snmp_manager_response.go b/cbs/internal/array/faclient/2.4/models/snmp_manager_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_manager_response.go rename to cbs/internal/array/faclient/2.4/models/snmp_manager_response.go diff --git a/cbs/internal/faclient/2.4/models/snmp_managers.go b/cbs/internal/array/faclient/2.4/models/snmp_managers.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_managers.go rename to cbs/internal/array/faclient/2.4/models/snmp_managers.go diff --git a/cbs/internal/faclient/2.4/models/snmp_v2c.go b/cbs/internal/array/faclient/2.4/models/snmp_v2c.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_v2c.go rename to cbs/internal/array/faclient/2.4/models/snmp_v2c.go diff --git a/cbs/internal/faclient/2.4/models/snmp_v3.go b/cbs/internal/array/faclient/2.4/models/snmp_v3.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_v3.go rename to cbs/internal/array/faclient/2.4/models/snmp_v3.go diff --git a/cbs/internal/faclient/2.4/models/snmp_v3_patch.go b/cbs/internal/array/faclient/2.4/models/snmp_v3_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_v3_patch.go rename to cbs/internal/array/faclient/2.4/models/snmp_v3_patch.go diff --git a/cbs/internal/faclient/2.4/models/snmp_v3_post.go b/cbs/internal/array/faclient/2.4/models/snmp_v3_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/snmp_v3_post.go rename to cbs/internal/array/faclient/2.4/models/snmp_v3_post.go diff --git a/cbs/internal/faclient/2.4/models/software.go b/cbs/internal/array/faclient/2.4/models/software.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software.go rename to cbs/internal/array/faclient/2.4/models/software.go diff --git a/cbs/internal/faclient/2.4/models/software_all_of0.go b/cbs/internal/array/faclient/2.4/models/software_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_all_of0.go rename to cbs/internal/array/faclient/2.4/models/software_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/software_get_response.go b/cbs/internal/array/faclient/2.4/models/software_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_get_response.go rename to cbs/internal/array/faclient/2.4/models/software_get_response.go diff --git a/cbs/internal/faclient/2.4/models/software_installation.go b/cbs/internal/array/faclient/2.4/models/software_installation.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation.go rename to cbs/internal/array/faclient/2.4/models/software_installation.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_all_of2.go b/cbs/internal/array/faclient/2.4/models/software_installation_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_all_of2.go rename to cbs/internal/array/faclient/2.4/models/software_installation_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_all_of2_software.go b/cbs/internal/array/faclient/2.4/models/software_installation_all_of2_software.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_all_of2_software.go rename to cbs/internal/array/faclient/2.4/models/software_installation_all_of2_software.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_patch.go b/cbs/internal/array/faclient/2.4/models/software_installation_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_patch.go rename to cbs/internal/array/faclient/2.4/models/software_installation_patch.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_post.go b/cbs/internal/array/faclient/2.4/models/software_installation_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_post.go rename to cbs/internal/array/faclient/2.4/models/software_installation_post.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_step.go b/cbs/internal/array/faclient/2.4/models/software_installation_step.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_step.go rename to cbs/internal/array/faclient/2.4/models/software_installation_step.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_step_all_of2.go b/cbs/internal/array/faclient/2.4/models/software_installation_step_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_step_all_of2.go rename to cbs/internal/array/faclient/2.4/models/software_installation_step_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_step_all_of2_checks_items.go b/cbs/internal/array/faclient/2.4/models/software_installation_step_all_of2_checks_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_step_all_of2_checks_items.go rename to cbs/internal/array/faclient/2.4/models/software_installation_step_all_of2_checks_items.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_step_all_of2_installation.go b/cbs/internal/array/faclient/2.4/models/software_installation_step_all_of2_installation.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_step_all_of2_installation.go rename to cbs/internal/array/faclient/2.4/models/software_installation_step_all_of2_installation.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_steps.go b/cbs/internal/array/faclient/2.4/models/software_installation_steps.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_steps.go rename to cbs/internal/array/faclient/2.4/models/software_installation_steps.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_steps_get_response.go b/cbs/internal/array/faclient/2.4/models/software_installation_steps_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_steps_get_response.go rename to cbs/internal/array/faclient/2.4/models/software_installation_steps_get_response.go diff --git a/cbs/internal/faclient/2.4/models/software_installation_steps_response.go b/cbs/internal/array/faclient/2.4/models/software_installation_steps_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installation_steps_response.go rename to cbs/internal/array/faclient/2.4/models/software_installation_steps_response.go diff --git a/cbs/internal/faclient/2.4/models/software_installations.go b/cbs/internal/array/faclient/2.4/models/software_installations.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installations.go rename to cbs/internal/array/faclient/2.4/models/software_installations.go diff --git a/cbs/internal/faclient/2.4/models/software_installations_get_response.go b/cbs/internal/array/faclient/2.4/models/software_installations_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installations_get_response.go rename to cbs/internal/array/faclient/2.4/models/software_installations_get_response.go diff --git a/cbs/internal/faclient/2.4/models/software_installations_response.go b/cbs/internal/array/faclient/2.4/models/software_installations_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_installations_response.go rename to cbs/internal/array/faclient/2.4/models/software_installations_response.go diff --git a/cbs/internal/faclient/2.4/models/software_oai_gen1_all_of1.go b/cbs/internal/array/faclient/2.4/models/software_oai_gen1_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_oai_gen1_all_of1.go rename to cbs/internal/array/faclient/2.4/models/software_oai_gen1_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/software_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/software_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/software_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/software_oai_gen_all_of1_upgrade_plan_items.go b/cbs/internal/array/faclient/2.4/models/software_oai_gen_all_of1_upgrade_plan_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_oai_gen_all_of1_upgrade_plan_items.go rename to cbs/internal/array/faclient/2.4/models/software_oai_gen_all_of1_upgrade_plan_items.go diff --git a/cbs/internal/faclient/2.4/models/software_response.go b/cbs/internal/array/faclient/2.4/models/software_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/software_response.go rename to cbs/internal/array/faclient/2.4/models/software_response.go diff --git a/cbs/internal/faclient/2.4/models/space.go b/cbs/internal/array/faclient/2.4/models/space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/space.go rename to cbs/internal/array/faclient/2.4/models/space.go diff --git a/cbs/internal/faclient/2.4/models/space_all_of1.go b/cbs/internal/array/faclient/2.4/models/space_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/space_all_of1.go rename to cbs/internal/array/faclient/2.4/models/space_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/start_end_time.go b/cbs/internal/array/faclient/2.4/models/start_end_time.go similarity index 100% rename from cbs/internal/faclient/2.4/models/start_end_time.go rename to cbs/internal/array/faclient/2.4/models/start_end_time.go diff --git a/cbs/internal/faclient/2.4/models/subnet.go b/cbs/internal/array/faclient/2.4/models/subnet.go similarity index 100% rename from cbs/internal/faclient/2.4/models/subnet.go rename to cbs/internal/array/faclient/2.4/models/subnet.go diff --git a/cbs/internal/faclient/2.4/models/subnet_get_response.go b/cbs/internal/array/faclient/2.4/models/subnet_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/subnet_get_response.go rename to cbs/internal/array/faclient/2.4/models/subnet_get_response.go diff --git a/cbs/internal/faclient/2.4/models/subnet_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/subnet_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/subnet_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/subnet_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/subnet_patch.go b/cbs/internal/array/faclient/2.4/models/subnet_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/subnet_patch.go rename to cbs/internal/array/faclient/2.4/models/subnet_patch.go diff --git a/cbs/internal/faclient/2.4/models/subnet_post.go b/cbs/internal/array/faclient/2.4/models/subnet_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/subnet_post.go rename to cbs/internal/array/faclient/2.4/models/subnet_post.go diff --git a/cbs/internal/faclient/2.4/models/subnet_response.go b/cbs/internal/array/faclient/2.4/models/subnet_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/subnet_response.go rename to cbs/internal/array/faclient/2.4/models/subnet_response.go diff --git a/cbs/internal/faclient/2.4/models/support.go b/cbs/internal/array/faclient/2.4/models/support.go similarity index 100% rename from cbs/internal/faclient/2.4/models/support.go rename to cbs/internal/array/faclient/2.4/models/support.go diff --git a/cbs/internal/faclient/2.4/models/support_get_response.go b/cbs/internal/array/faclient/2.4/models/support_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/support_get_response.go rename to cbs/internal/array/faclient/2.4/models/support_get_response.go diff --git a/cbs/internal/faclient/2.4/models/support_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/support_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/support_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/support_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/support_oai_gen_all_of1_remote_assist_paths_items.go b/cbs/internal/array/faclient/2.4/models/support_oai_gen_all_of1_remote_assist_paths_items.go similarity index 100% rename from cbs/internal/faclient/2.4/models/support_oai_gen_all_of1_remote_assist_paths_items.go rename to cbs/internal/array/faclient/2.4/models/support_oai_gen_all_of1_remote_assist_paths_items.go diff --git a/cbs/internal/faclient/2.4/models/support_patch.go b/cbs/internal/array/faclient/2.4/models/support_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/support_patch.go rename to cbs/internal/array/faclient/2.4/models/support_patch.go diff --git a/cbs/internal/faclient/2.4/models/support_response.go b/cbs/internal/array/faclient/2.4/models/support_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/support_response.go rename to cbs/internal/array/faclient/2.4/models/support_response.go diff --git a/cbs/internal/faclient/2.4/models/syslog_server.go b/cbs/internal/array/faclient/2.4/models/syslog_server.go similarity index 100% rename from cbs/internal/faclient/2.4/models/syslog_server.go rename to cbs/internal/array/faclient/2.4/models/syslog_server.go diff --git a/cbs/internal/faclient/2.4/models/syslog_server_get_response.go b/cbs/internal/array/faclient/2.4/models/syslog_server_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/syslog_server_get_response.go rename to cbs/internal/array/faclient/2.4/models/syslog_server_get_response.go diff --git a/cbs/internal/faclient/2.4/models/syslog_server_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/syslog_server_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/syslog_server_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/syslog_server_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/syslog_server_response.go b/cbs/internal/array/faclient/2.4/models/syslog_server_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/syslog_server_response.go rename to cbs/internal/array/faclient/2.4/models/syslog_server_response.go diff --git a/cbs/internal/faclient/2.4/models/syslog_server_settings.go b/cbs/internal/array/faclient/2.4/models/syslog_server_settings.go similarity index 100% rename from cbs/internal/faclient/2.4/models/syslog_server_settings.go rename to cbs/internal/array/faclient/2.4/models/syslog_server_settings.go diff --git a/cbs/internal/faclient/2.4/models/syslog_server_settings_get_response.go b/cbs/internal/array/faclient/2.4/models/syslog_server_settings_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/syslog_server_settings_get_response.go rename to cbs/internal/array/faclient/2.4/models/syslog_server_settings_get_response.go diff --git a/cbs/internal/faclient/2.4/models/syslog_server_settings_response.go b/cbs/internal/array/faclient/2.4/models/syslog_server_settings_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/syslog_server_settings_response.go rename to cbs/internal/array/faclient/2.4/models/syslog_server_settings_response.go diff --git a/cbs/internal/faclient/2.4/models/tag.go b/cbs/internal/array/faclient/2.4/models/tag.go similarity index 100% rename from cbs/internal/faclient/2.4/models/tag.go rename to cbs/internal/array/faclient/2.4/models/tag.go diff --git a/cbs/internal/faclient/2.4/models/tag_get_response.go b/cbs/internal/array/faclient/2.4/models/tag_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/tag_get_response.go rename to cbs/internal/array/faclient/2.4/models/tag_get_response.go diff --git a/cbs/internal/faclient/2.4/models/tag_response.go b/cbs/internal/array/faclient/2.4/models/tag_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/tag_response.go rename to cbs/internal/array/faclient/2.4/models/tag_response.go diff --git a/cbs/internal/faclient/2.4/models/target_protection_group.go b/cbs/internal/array/faclient/2.4/models/target_protection_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/target_protection_group.go rename to cbs/internal/array/faclient/2.4/models/target_protection_group.go diff --git a/cbs/internal/faclient/2.4/models/target_protection_group_all_of0.go b/cbs/internal/array/faclient/2.4/models/target_protection_group_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/target_protection_group_all_of0.go rename to cbs/internal/array/faclient/2.4/models/target_protection_group_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/target_protection_group_post_patch.go b/cbs/internal/array/faclient/2.4/models/target_protection_group_post_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/target_protection_group_post_patch.go rename to cbs/internal/array/faclient/2.4/models/target_protection_group_post_patch.go diff --git a/cbs/internal/faclient/2.4/models/target_protection_group_post_patch_all_of0.go b/cbs/internal/array/faclient/2.4/models/target_protection_group_post_patch_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/target_protection_group_post_patch_all_of0.go rename to cbs/internal/array/faclient/2.4/models/target_protection_group_post_patch_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/test_result.go b/cbs/internal/array/faclient/2.4/models/test_result.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result.go rename to cbs/internal/array/faclient/2.4/models/test_result.go diff --git a/cbs/internal/faclient/2.4/models/test_result_get_response.go b/cbs/internal/array/faclient/2.4/models/test_result_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_get_response.go rename to cbs/internal/array/faclient/2.4/models/test_result_get_response.go diff --git a/cbs/internal/faclient/2.4/models/test_result_response.go b/cbs/internal/array/faclient/2.4/models/test_result_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_response.go rename to cbs/internal/array/faclient/2.4/models/test_result_response.go diff --git a/cbs/internal/faclient/2.4/models/test_result_with_resource.go b/cbs/internal/array/faclient/2.4/models/test_result_with_resource.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_with_resource.go rename to cbs/internal/array/faclient/2.4/models/test_result_with_resource.go diff --git a/cbs/internal/faclient/2.4/models/test_result_with_resource_get_response.go b/cbs/internal/array/faclient/2.4/models/test_result_with_resource_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_with_resource_get_response.go rename to cbs/internal/array/faclient/2.4/models/test_result_with_resource_get_response.go diff --git a/cbs/internal/faclient/2.4/models/test_result_with_resource_get_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/test_result_with_resource_get_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_with_resource_get_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/test_result_with_resource_get_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1_resource.go b/cbs/internal/array/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1_resource.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1_resource.go rename to cbs/internal/array/faclient/2.4/models/test_result_with_resource_oai_gen_all_of1_resource.go diff --git a/cbs/internal/faclient/2.4/models/test_result_with_resource_response.go b/cbs/internal/array/faclient/2.4/models/test_result_with_resource_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_with_resource_response.go rename to cbs/internal/array/faclient/2.4/models/test_result_with_resource_response.go diff --git a/cbs/internal/faclient/2.4/models/test_result_with_resource_response_all_of1.go b/cbs/internal/array/faclient/2.4/models/test_result_with_resource_response_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/test_result_with_resource_response_all_of1.go rename to cbs/internal/array/faclient/2.4/models/test_result_with_resource_response_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/throttle.go b/cbs/internal/array/faclient/2.4/models/throttle.go similarity index 100% rename from cbs/internal/faclient/2.4/models/throttle.go rename to cbs/internal/array/faclient/2.4/models/throttle.go diff --git a/cbs/internal/faclient/2.4/models/throttle_window.go b/cbs/internal/array/faclient/2.4/models/throttle_window.go similarity index 100% rename from cbs/internal/faclient/2.4/models/throttle_window.go rename to cbs/internal/array/faclient/2.4/models/throttle_window.go diff --git a/cbs/internal/faclient/2.4/models/time_window.go b/cbs/internal/array/faclient/2.4/models/time_window.go similarity index 100% rename from cbs/internal/faclient/2.4/models/time_window.go rename to cbs/internal/array/faclient/2.4/models/time_window.go diff --git a/cbs/internal/faclient/2.4/models/total_item_count_response.go b/cbs/internal/array/faclient/2.4/models/total_item_count_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/total_item_count_response.go rename to cbs/internal/array/faclient/2.4/models/total_item_count_response.go diff --git a/cbs/internal/faclient/2.4/models/transfer.go b/cbs/internal/array/faclient/2.4/models/transfer.go similarity index 100% rename from cbs/internal/faclient/2.4/models/transfer.go rename to cbs/internal/array/faclient/2.4/models/transfer.go diff --git a/cbs/internal/faclient/2.4/models/username.go b/cbs/internal/array/faclient/2.4/models/username.go similarity index 100% rename from cbs/internal/faclient/2.4/models/username.go rename to cbs/internal/array/faclient/2.4/models/username.go diff --git a/cbs/internal/faclient/2.4/models/username_response.go b/cbs/internal/array/faclient/2.4/models/username_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/username_response.go rename to cbs/internal/array/faclient/2.4/models/username_response.go diff --git a/cbs/internal/faclient/2.4/models/volume.go b/cbs/internal/array/faclient/2.4/models/volume.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume.go rename to cbs/internal/array/faclient/2.4/models/volume.go diff --git a/cbs/internal/faclient/2.4/models/volume_all_of0.go b/cbs/internal/array/faclient/2.4/models/volume_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_all_of0.go rename to cbs/internal/array/faclient/2.4/models/volume_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/volume_common.go b/cbs/internal/array/faclient/2.4/models/volume_common.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_common.go rename to cbs/internal/array/faclient/2.4/models/volume_common.go diff --git a/cbs/internal/faclient/2.4/models/volume_common_all_of1.go b/cbs/internal/array/faclient/2.4/models/volume_common_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_common_all_of1.go rename to cbs/internal/array/faclient/2.4/models/volume_common_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/volume_common_all_of1_qos.go b/cbs/internal/array/faclient/2.4/models/volume_common_all_of1_qos.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_common_all_of1_qos.go rename to cbs/internal/array/faclient/2.4/models/volume_common_all_of1_qos.go diff --git a/cbs/internal/faclient/2.4/models/volume_common_all_of1_space.go b/cbs/internal/array/faclient/2.4/models/volume_common_all_of1_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_common_all_of1_space.go rename to cbs/internal/array/faclient/2.4/models/volume_common_all_of1_space.go diff --git a/cbs/internal/faclient/2.4/models/volume_get_response.go b/cbs/internal/array/faclient/2.4/models/volume_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_get_response.go rename to cbs/internal/array/faclient/2.4/models/volume_get_response.go diff --git a/cbs/internal/faclient/2.4/models/volume_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/volume_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/volume_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/volume_group.go b/cbs/internal/array/faclient/2.4/models/volume_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group.go rename to cbs/internal/array/faclient/2.4/models/volume_group.go diff --git a/cbs/internal/faclient/2.4/models/volume_group_get_response.go b/cbs/internal/array/faclient/2.4/models/volume_group_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group_get_response.go rename to cbs/internal/array/faclient/2.4/models/volume_group_get_response.go diff --git a/cbs/internal/faclient/2.4/models/volume_group_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/volume_group_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/volume_group_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/volume_group_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/volume_group_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/volume_group_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/volume_group_performance.go b/cbs/internal/array/faclient/2.4/models/volume_group_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group_performance.go rename to cbs/internal/array/faclient/2.4/models/volume_group_performance.go diff --git a/cbs/internal/faclient/2.4/models/volume_group_post.go b/cbs/internal/array/faclient/2.4/models/volume_group_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group_post.go rename to cbs/internal/array/faclient/2.4/models/volume_group_post.go diff --git a/cbs/internal/faclient/2.4/models/volume_group_post_all_of2.go b/cbs/internal/array/faclient/2.4/models/volume_group_post_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group_post_all_of2.go rename to cbs/internal/array/faclient/2.4/models/volume_group_post_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/volume_group_response.go b/cbs/internal/array/faclient/2.4/models/volume_group_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group_response.go rename to cbs/internal/array/faclient/2.4/models/volume_group_response.go diff --git a/cbs/internal/faclient/2.4/models/volume_group_space.go b/cbs/internal/array/faclient/2.4/models/volume_group_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_group_space.go rename to cbs/internal/array/faclient/2.4/models/volume_group_space.go diff --git a/cbs/internal/faclient/2.4/models/volume_oai_gen1_all_of1.go b/cbs/internal/array/faclient/2.4/models/volume_oai_gen1_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_oai_gen1_all_of1.go rename to cbs/internal/array/faclient/2.4/models/volume_oai_gen1_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/volume_oai_gen1_all_of1_pod.go b/cbs/internal/array/faclient/2.4/models/volume_oai_gen1_all_of1_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_oai_gen1_all_of1_pod.go rename to cbs/internal/array/faclient/2.4/models/volume_oai_gen1_all_of1_pod.go diff --git a/cbs/internal/faclient/2.4/models/volume_oai_gen1_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/volume_oai_gen1_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_oai_gen1_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/volume_oai_gen1_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/volume_oai_gen1_all_of1_volume_group.go b/cbs/internal/array/faclient/2.4/models/volume_oai_gen1_all_of1_volume_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_oai_gen1_all_of1_volume_group.go rename to cbs/internal/array/faclient/2.4/models/volume_oai_gen1_all_of1_volume_group.go diff --git a/cbs/internal/faclient/2.4/models/volume_oai_gen_all_of1.go b/cbs/internal/array/faclient/2.4/models/volume_oai_gen_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_oai_gen_all_of1.go rename to cbs/internal/array/faclient/2.4/models/volume_oai_gen_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/volume_patch.go b/cbs/internal/array/faclient/2.4/models/volume_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_patch.go rename to cbs/internal/array/faclient/2.4/models/volume_patch.go diff --git a/cbs/internal/faclient/2.4/models/volume_patch_all_of0.go b/cbs/internal/array/faclient/2.4/models/volume_patch_all_of0.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_patch_all_of0.go rename to cbs/internal/array/faclient/2.4/models/volume_patch_all_of0.go diff --git a/cbs/internal/faclient/2.4/models/volume_patch_all_of1.go b/cbs/internal/array/faclient/2.4/models/volume_patch_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_patch_all_of1.go rename to cbs/internal/array/faclient/2.4/models/volume_patch_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/volume_patch_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/volume_patch_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_patch_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/volume_patch_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/volume_patch_oai_gen_all_of2_pod.go b/cbs/internal/array/faclient/2.4/models/volume_patch_oai_gen_all_of2_pod.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_patch_oai_gen_all_of2_pod.go rename to cbs/internal/array/faclient/2.4/models/volume_patch_oai_gen_all_of2_pod.go diff --git a/cbs/internal/faclient/2.4/models/volume_patch_oai_gen_all_of2_qos.go b/cbs/internal/array/faclient/2.4/models/volume_patch_oai_gen_all_of2_qos.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_patch_oai_gen_all_of2_qos.go rename to cbs/internal/array/faclient/2.4/models/volume_patch_oai_gen_all_of2_qos.go diff --git a/cbs/internal/faclient/2.4/models/volume_patch_oai_gen_all_of2_volume_group.go b/cbs/internal/array/faclient/2.4/models/volume_patch_oai_gen_all_of2_volume_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_patch_oai_gen_all_of2_volume_group.go rename to cbs/internal/array/faclient/2.4/models/volume_patch_oai_gen_all_of2_volume_group.go diff --git a/cbs/internal/faclient/2.4/models/volume_performance.go b/cbs/internal/array/faclient/2.4/models/volume_performance.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_performance.go rename to cbs/internal/array/faclient/2.4/models/volume_performance.go diff --git a/cbs/internal/faclient/2.4/models/volume_performance_by_array.go b/cbs/internal/array/faclient/2.4/models/volume_performance_by_array.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_performance_by_array.go rename to cbs/internal/array/faclient/2.4/models/volume_performance_by_array.go diff --git a/cbs/internal/faclient/2.4/models/volume_post.go b/cbs/internal/array/faclient/2.4/models/volume_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_post.go rename to cbs/internal/array/faclient/2.4/models/volume_post.go diff --git a/cbs/internal/faclient/2.4/models/volume_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/volume_post_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/volume_post_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/volume_post_all_of1_qos.go b/cbs/internal/array/faclient/2.4/models/volume_post_all_of1_qos.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_post_all_of1_qos.go rename to cbs/internal/array/faclient/2.4/models/volume_post_all_of1_qos.go diff --git a/cbs/internal/faclient/2.4/models/volume_post_all_of1_source.go b/cbs/internal/array/faclient/2.4/models/volume_post_all_of1_source.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_post_all_of1_source.go rename to cbs/internal/array/faclient/2.4/models/volume_post_all_of1_source.go diff --git a/cbs/internal/faclient/2.4/models/volume_response.go b/cbs/internal/array/faclient/2.4/models/volume_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_response.go rename to cbs/internal/array/faclient/2.4/models/volume_response.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_get_response.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_get_response.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_get_response.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_oai_gen_all_of2.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_oai_gen_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_oai_gen_all_of2.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_oai_gen_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_space.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_space.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_space.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_volume_group.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_volume_group.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_volume_group.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_oai_gen_all_of2_volume_group.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_patch.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_patch.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_patch.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_patch.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_post.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_post.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_post.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_post.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_post_all_of1.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_post_all_of1.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_post_all_of1.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_post_all_of1.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_response.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_response.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_response.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_transfer.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_transfer.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_transfer.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_transfer.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_transfer_get_response.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_transfer_get_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_transfer_get_response.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_transfer_get_response.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_transfer_get_response_all_of2.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_transfer_get_response_all_of2.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_transfer_get_response_all_of2.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_transfer_get_response_all_of2.go diff --git a/cbs/internal/faclient/2.4/models/volume_snapshot_transfer_response.go b/cbs/internal/array/faclient/2.4/models/volume_snapshot_transfer_response.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_snapshot_transfer_response.go rename to cbs/internal/array/faclient/2.4/models/volume_snapshot_transfer_response.go diff --git a/cbs/internal/faclient/2.4/models/volume_space.go b/cbs/internal/array/faclient/2.4/models/volume_space.go similarity index 100% rename from cbs/internal/faclient/2.4/models/volume_space.go rename to cbs/internal/array/faclient/2.4/models/volume_space.go diff --git a/cbs/internal/array/faclient/auth/auth.go b/cbs/internal/array/faclient/auth/auth.go new file mode 100644 index 0000000..e1a48ae --- /dev/null +++ b/cbs/internal/array/faclient/auth/auth.go @@ -0,0 +1,46 @@ +package auth + +import ( + "time" + + "github.com/dgrijalva/jwt-go" +) + +const defaultExpTimeSec = 315360000 //10 years + +type TokenConfig struct { + Issuer string + ClientID string + KeyID string + + User string + + PrivateKey string +} + +func (tc *TokenConfig) BuildToken() (string, error) { + + signingKey, err := jwt.ParseRSAPrivateKeyFromPEM([]byte(tc.PrivateKey)) + if err != nil { + return "", err + } + + issued := time.Now() + expires := issued.Add(time.Second * defaultExpTimeSec) + + token := jwt.NewWithClaims(jwt.SigningMethodRS256, jwt.MapClaims{ + "aud": tc.ClientID, + "iss": tc.Issuer, + "sub": tc.User, + "iat": issued.Unix(), + "exp": expires.Unix(), + }) + token.Header["kid"] = tc.KeyID + + signedToken, err := token.SignedString(signingKey) + if err != nil { + return "", err + } + + return signedToken, nil +} diff --git a/cbs/internal/array/faclient/auth/tex.go b/cbs/internal/array/faclient/auth/tex.go new file mode 100644 index 0000000..368336f --- /dev/null +++ b/cbs/internal/array/faclient/auth/tex.go @@ -0,0 +1,73 @@ +package auth + +import ( + "crypto/tls" + "encoding/json" + "fmt" + "net/http" + "net/url" +) + +type TokenExchanger interface { + ExchangeToken(string) (string, error) +} + +// implements the TokenExchanger interface +type Tex struct { + TexHost string +} + +const ( + oauthEndpoint = "/oauth2/1.0/token" + oauthGrantType = "urn:ietf:params:oauth:grant-type:token-exchange" + oauthSubjectTokenType = "urn:ietf:params:oauth:token-type:jwt" +) + +// TexResponse represents the response for the token exchange request. +type TexResponse struct { + AccessToken string `json:"access_token,omitempty"` + IssuedTokenType string `json:"issued_token_type,omitempty"` + TokenType string `json:"token_type,omitempty"` + ExpiresIn uint32 `json:"expires_in,omitempty"` +} + +// Exchanges an identity token for an access token by calling the OAuth endpoint on the array +func (t *Tex) ExchangeToken(identityToken string) (string, error) { + + //TODO make cert verification a parameter + httpClient := http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + }, + } + + texURL := url.URL{ + Scheme: "https", + Host: t.TexHost, + Path: oauthEndpoint, + } + + resp, err := httpClient.PostForm(texURL.String(), url.Values{ + "grant_type": {oauthGrantType}, + "subject_token": {identityToken}, + "subject_token_type": {oauthSubjectTokenType}, + }) + if err != nil { + return "", fmt.Errorf("Error exchanging tokens: %s", err) + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return "", fmt.Errorf("Array returned HTTP response code %d when attempting to exchange tokens: %s", + resp.StatusCode, resp.Status) + } + + decoder := json.NewDecoder(resp.Body) + texResponse := new(TexResponse) + err = decoder.Decode(texResponse) + if err != nil { + return "", fmt.Errorf("Error decoding token exchange response: %s", err) + } + + return texResponse.AccessToken, nil +} diff --git a/cbs/internal/array/faclient/faclient.go b/cbs/internal/array/faclient/faclient.go new file mode 100644 index 0000000..320d6a8 --- /dev/null +++ b/cbs/internal/array/faclient/faclient.go @@ -0,0 +1,38 @@ +package faclient + +import ( + "crypto/tls" + "fmt" + "net/http" + + httptransport "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/2.4/client" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/auth" +) + +func New(host string, tokenConfig auth.TokenConfig) (*client.Flasharray, error) { + + identityToken, err := tokenConfig.BuildToken() + if err != nil { + return nil, fmt.Errorf("Error creating client: %s", err) + } + + tex := auth.Tex{TexHost: host} + accessToken, err := tex.ExchangeToken(identityToken) + if err != nil { + return nil, fmt.Errorf("Error exchanging tokens: %s", err) + } + + cfg := client.DefaultTransportConfig().WithHost(host).WithSchemes([]string{"https"}) + httpClient := http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + }, + } + transport := httptransport.NewWithClient(cfg.Host, cfg.BasePath, cfg.Schemes, &httpClient) + // TODO implement token refreshing + transport.DefaultAuthentication = httptransport.BearerToken(accessToken) + + return client.New(transport, strfmt.Default), nil +} diff --git a/cbs/internal/array/faclient/faclient_test.go b/cbs/internal/array/faclient/faclient_test.go new file mode 100644 index 0000000..4acc1e5 --- /dev/null +++ b/cbs/internal/array/faclient/faclient_test.go @@ -0,0 +1,83 @@ +package faclient_test + +import ( + "testing" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array/faclient/auth" +) + +const testPrivateKey = ` +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAumcxoptOzGLwQuTAWZXovlc0KO79Zp/MYFlsF5XMWS8q2/ff +dpnknyfFNUIy6uEYf3kKHl1D15KuyGZJ2Opiv2nDc1XJAl4LWQU2YlliKrJ2yURq +oxRxQfoW0T/Zi1+v7wqyfxq6uYqUMxitBRRgstIGihTBGgjc7obP9mUp+3MH3NPx +qXT4CVsQDKlDWJC7pR0sZmeGc/YeDanD4iXl9ldk4j45ow8eaO6yeJgRx39hW7kT +NYYrDaWrlwVAt96OQHGmFmNyVIaikvm5tSid4nr3GKioyvU3a4aFIRK9s0iJ4Pa1 +Xkae0/M+LVnwqUzSPtOKB4ZOsxOkcG22QV5aQQIDAQABAoIBABSG4qdmdPH6/zxO +loQHBx9W2Q6c6tjPRiFiF44tV9iGYjDhBgG4hr2kEop/5L2K1jjLanrXiG4H4Cl/ +Yih5/y/XBMgBrWYOVy+RbGC+ORo8luopF5kn2iUK1lJqtpkri2NGiUuH9QITqahK +0lrZ2KA4krHIAU/NpA68V9BpaYsf+oUek43iZrZyjABp9sv4DOm1JeA61vUFTBPQ +euZCcxbdFo/5+9k2AAEr29o79fnLw8yeAckczke9Xpp++XAC8HQ9/ZjSeCo9NEEE +iAx7T1ahaT2LzRf5K/Uj3n4Fuo11XnMjqDyet46/yk821QB2H0epm+Z3iaMjSCYW +0mnCKbECgYEA6nnkIx5keh9BT5SdHHAKePCJBo/v7Ag6E2Q9yMN/QQu0t+wQZGne ++4P8Xts1arigWg85LOdrAdFq6DYuT3ja1JKwahQ/XlWYqpbLwuHnq3LvQm2pLxYA +gqnb7GPrfKm3bj10Cezy3Zv4EwpDRiXrVSEqlXNsVQV+Pnnusx/n7XUCgYEAy4Oa +VNK4Ey9nPeYL95de0fL4sI35EZNY9yX6n4pv+EOgvrsQSoWQb0JQLyV/Tmw064vb +70Z1bEHz8wWM2BjedqFuKkdzUpQTTZIXS5ozyxmAAS6h4MvBPSuFOO7yqhkkSKJo +McO61FteoR26LvRapt+x1r55iFtvCwkVm5FkJB0CgYA6w8vKhW53MOgkcsGhg+8L ++nTNITvnMvSjMYdOjriQ68ciJVbCY8pPzPduKpBLq/P8Pj59I46tCPg7NIEMx+RI +TG9MVsC++sLlVh/BOu7eCFMwmd1CAMil9r44k55MQxjG1z4C0tDXe6SD2RmdNhmx +3zsV87Sd5l+KdvK9D+0HlQKBgDjiKer3kvfZ0hOdD08/AgPQ0+4VYL6m3sEF3o1l +VnKgBHgLNTx/JKXUdTEYXAMBf7EuwGSa3wtJS/RrYrisCtJBwNcUbYlxVgvif5xk +F4H3OK4b6Kc6jGKanXwSXcVpjZi3vEPcn4XnnAWQl4+0QPpPoBeT2chhNiJxgZag +BsuJAoGBAIt/VO7U1Dea29weR3nk5nNblhKUAG5kcZ82iCUaOg5tPMy+E09ClaxF +6b85KZRT66rSlVFcPfNETD9ZEdwrtM/YTNmhsUf3KdW+p1IbHF3VwhHWRwrrSkyz +HYz83jsJVBLVMwmUltHmsGLKSGwpaAJHqHh7OOgka9bmiuGnSDD/ +-----END RSA PRIVATE KEY-----` + +const testPublicKey = `-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAumcxoptOzGLwQuTAWZXo +vlc0KO79Zp/MYFlsF5XMWS8q2/ffdpnknyfFNUIy6uEYf3kKHl1D15KuyGZJ2Opi +v2nDc1XJAl4LWQU2YlliKrJ2yURqoxRxQfoW0T/Zi1+v7wqyfxq6uYqUMxitBRRg +stIGihTBGgjc7obP9mUp+3MH3NPxqXT4CVsQDKlDWJC7pR0sZmeGc/YeDanD4iXl +9ldk4j45ow8eaO6yeJgRx39hW7kTNYYrDaWrlwVAt96OQHGmFmNyVIaikvm5tSid +4nr3GKioyvU3a4aFIRK9s0iJ4Pa1Xkae0/M+LVnwqUzSPtOKB4ZOsxOkcG22QV5a +QQIDAQAB +-----END PUBLIC KEY-----` + +type testParams struct { + host string + issuer string + clientID string + keyID string + privateKey string +} + +var params testParams + +// TODO use env vars to specify test params +func setup() { + params.host = "vm-ejacobs2" + params.issuer = "test-client" + params.clientID = "90b1fb8a-f15e-4a59-98ca-b220b53e7e10" + params.keyID = "aa837c07-d1c8-4c11-9ab6-c307aa913aca" + params.privateKey = testPrivateKey +} + +func TestAuth(t *testing.T) { + setup() + + tokenConfig := auth.TokenConfig{ + Issuer: params.issuer, + ClientID: params.clientID, + KeyID: params.keyID, + User: "pureuser", + PrivateKey: params.privateKey, + } + + _, err := faclient.New(params.host, tokenConfig) + if err != nil { + t.Error(err) + } +} diff --git a/cbs/internal/array/mock_fa.go b/cbs/internal/array/mock_fa.go new file mode 100644 index 0000000..68ac312 --- /dev/null +++ b/cbs/internal/array/mock_fa.go @@ -0,0 +1,73 @@ +// +build mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + This file contains a mock implementation of the AWS cloud service + calls. + +*/ + +// TODO: Would be nice to have AZ, AWS prefixes on things + +package array + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/internal/mockdb" +) + +const ( + FAClientKindAWS = iota + FAClientKindAzure +) + +type MockFAClient struct { + Kind int + Host string +} + +func buildFAClient(host string, secretPayload string) (FAClientAPI, error) { + // the mock aws and mock azure clients don't actually use this, instead they build the + // MockFAClient directly so that they can set the Kind enum. + // TODO we should try and use this instead for the mocks + return nil, nil +} + +func (self *MockFAClient) Deactivate() error { + if self.Kind == FAClientKindAWS { + stack := mockdb.AWSGetHostStack(self.Host) + if stack == nil { + return fmt.Errorf("Stack for management endpoint address `%s` does not exist", self.Host) + } + mockdb.AWSDelStack(*stack.StackId) + mockdb.AWSDelStack(*stack.StackName) + + stack.StackStatus = aws.String("DELETE_COMPLETE") + mockdb.AWSSetStack(*stack.StackId, self.Host, *stack) + mockdb.AWSSetStack(*stack.StackName, self.Host, *stack) + } else if self.Kind == FAClientKindAzure { + // Dont do anything for now, as in Azure the array doesn't delete itself on deactivation, + // but we should follow up with some better mocks later though... + } else { + return fmt.Errorf("this error should not happen") + } + + return nil +} diff --git a/cbs/internal/cloud/api.go b/cbs/internal/cloud/api.go new file mode 100644 index 0000000..a1ab552 --- /dev/null +++ b/cbs/internal/cloud/api.go @@ -0,0 +1,73 @@ +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +package cloud + +import ( + "context" + + "github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/managedapplications" + "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" + vaultSecret "github.com/Azure/azure-sdk-for-go/services/keyvault/v7.1/keyvault" + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/cloudformation" + "github.com/aws/aws-sdk-go/service/secretsmanager" + "github.com/aws/aws-sdk-go/service/sts" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array" +) + +type AWSClientAPI interface { + CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) + DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) + DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) + WaitUntilStackCreateCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput) error + WaitUntilStackDeleteCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput) error + GetCallerIdentity(input *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) + PutSecretValue(input *secretsmanager.PutSecretValueInput) (*secretsmanager.PutSecretValueOutput, error) + GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error) + NewFAClient(host string, adminSecretsManagerArn string) (array.FAClientAPI, error) +} + +func NewAWSClient(region string) (AWSClientAPI, error) { + return buildAWSClient(region) +} + +type AzureConfig struct { + SubscriptionID string + ClientID string + ClientSecret string + TenantID string +} + +type AzureClientAPI interface { + SubscriptionID() string + GroupsListComplete(ctx context.Context, filter string) (*[]graphrbac.ADGroup, error) + AppsCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters managedapplications.Application) error + AppsGet(ctx context.Context, resourceGroupName string, applicationName string) (managedapplications.Application, error) + AppsDelete(ctx context.Context, resourceGroupName string, applicationName string) error + SecretSet(ctx context.Context, vaultId string, secretName string, parameters vaultSecret.SecretSetParameters) (vaultSecret.SecretBundle, error) + SecretGet(ctx context.Context, vaultId string, secretName string, version string) (vaultSecret.SecretBundle, error) + SecretDelete(ctx context.Context, vaultId string, secretName string) (vaultSecret.DeletedSecretBundle, error) + SecretRecover(ctx context.Context, vaultId string, secretName string) error + DeactivateWait() + NewFAClient(host string, vaultId string, secretName string) (array.FAClientAPI, error) +} + +func NewAzureClient(config AzureConfig) (AzureClientAPI, error) { + return buildAzureClient(config) +} diff --git a/cbs/internal/cloud/aws.go b/cbs/internal/cloud/aws.go new file mode 100644 index 0000000..f5569ed --- /dev/null +++ b/cbs/internal/cloud/aws.go @@ -0,0 +1,114 @@ +// +build !mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +/* + + This file contains wrappers for "real" cloud service calls, as opposed to alternative + implementations that are mocked. Some of these wrappers also do a small amount of + "flattening" in order to simplify some of the cloud APIs. Simplifications includes + reducing the number of objects, and putting multiple calls together. This helps serve + as a single file for tracking all cloud accesses, and it also makes it clearer what + interfaces need to be mocked. + +*/ + +package cloud + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudformation" + "github.com/aws/aws-sdk-go/service/secretsmanager" + "github.com/aws/aws-sdk-go/service/sts" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array" +) + +type awsClient struct { + cloudFormation *cloudformation.CloudFormation + sts *sts.STS + secretsManager *secretsmanager.SecretsManager +} + +func buildAWSClient(region string) (AWSClientAPI, error) { + var awsClient awsClient + sess, err := session.NewSession(&aws.Config{ + Region: aws.String(region)}, + ) + if err != nil { + return nil, err + } + + awsClient.cloudFormation = cloudformation.New(sess) + awsClient.sts = sts.New(sess) + awsClient.secretsManager = secretsmanager.New(sess) + return &awsClient, nil +} + +func (client *awsClient) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) { + return client.cloudFormation.CreateStack(input) +} + +func (client *awsClient) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) { + return client.cloudFormation.DescribeStacks(input) +} + +func (client *awsClient) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) { + return client.cloudFormation.DeleteStack(input) +} + +func (client *awsClient) WaitUntilStackCreateCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput) error { + return client.cloudFormation.WaitUntilStackCreateCompleteWithContext(ctx, input, + request.WithWaiterDelay(request.ConstantWaiterDelay(30*time.Second)), + request.WithWaiterMaxAttempts(240), + ) +} + +func (client *awsClient) WaitUntilStackDeleteCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput) error { + return client.cloudFormation.WaitUntilStackDeleteCompleteWithContext(ctx, input, + request.WithWaiterDelay(request.ConstantWaiterDelay(30*time.Second)), + request.WithWaiterMaxAttempts(20), + ) +} + +func (client *awsClient) GetCallerIdentity(input *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) { + return client.sts.GetCallerIdentity(input) +} + +func (client *awsClient) PutSecretValue(input *secretsmanager.PutSecretValueInput) (*secretsmanager.PutSecretValueOutput, error) { + return client.secretsManager.PutSecretValue(input) +} + +func (client *awsClient) GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error) { + return client.secretsManager.GetSecretValue(input) +} + +func (client *awsClient) NewFAClient(host string, adminSecretsManagerArn string) (array.FAClientAPI, error) { + secretInput := &secretsmanager.GetSecretValueInput{ + SecretId: aws.String(string(adminSecretsManagerArn)), + } + result, err := client.GetSecretValue(secretInput) + if err != nil { + return nil, err + } + return array.NewFAClient(host, *result.SecretString) +} diff --git a/cbs/internal/cloud/azure.go b/cbs/internal/cloud/azure.go new file mode 100644 index 0000000..e7cdc7f --- /dev/null +++ b/cbs/internal/cloud/azure.go @@ -0,0 +1,241 @@ +// +build !mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +/* + + This file contains wrappers for "real" cloud service calls, as opposed to alternative + implementations that are mocked. Some of these wrappers also do a small amount of + "flattening" in order to simplify some of the cloud APIs. Simplifications includes + reducing the number of objects, and putting multiple calls together. This helps serve + as a single file for tracking all cloud accesses, and it also makes it clearer what + interfaces need to be mocked. + +*/ + +package cloud + +import ( + "context" + "fmt" + "time" + + vaultSecret "github.com/Azure/azure-sdk-for-go/services/keyvault/v7.1/keyvault" + vaultManagement "github.com/Azure/azure-sdk-for-go/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault" + + "github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/managedapplications" + "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" + "github.com/Azure/go-autorest/autorest" + "github.com/hashicorp/go-azure-helpers/authentication" + "github.com/hashicorp/go-azure-helpers/sender" + "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/internal/tfazurerm" +) + +const azureEnvironment = "public" + +type azureClient struct { + applicationsClient managedapplications.ApplicationsClient + groupsClient graphrbac.GroupsClient + vaultManagementClient vaultManagement.VaultsClient + vaultSecretClient vaultSecret.BaseClient +} + +func buildAzureClient(userConfig AzureConfig) (AzureClientAPI, error) { + + // Heavily inspired by https://github.com/terraform-providers/terraform-provider-azurerm/blob/dfba957d737fa474870eebafedb9326edf899858/azurerm/internal/clients/builder.go + // and https://github.com/terraform-providers/terraform-provider-azurerm/blob/d155f299d12e6e2440f42d7c8695569f8256b9c6/azurerm/internal/services/keyvault/client/client.go + + builder := &authentication.Builder{ + SubscriptionID: userConfig.SubscriptionID, + ClientID: userConfig.ClientID, + ClientSecret: userConfig.ClientSecret, + TenantID: userConfig.TenantID, + Environment: azureEnvironment, + SupportsClientSecretAuth: true, + SupportsAzureCliToken: true, + } + + config, err := builder.Build() + if err != nil { + return nil, err + } + + env, err := authentication.DetermineEnvironment(config.Environment) + if err != nil { + return nil, err + } + + // This indicates that a 429 response should not be included as a retry attempt + // so that we continue to retry until it succeeds. Set this behavior to keep + // consistent with azurerm provider. + autorest.Count429AsRetry = false + + oauthConfig, err := config.BuildOAuthConfig(env.ActiveDirectoryEndpoint) + if err != nil { + return nil, err + } + + sender := sender.BuildSender("cbs") + auth, err := config.GetAuthorizationToken(sender, oauthConfig, env.TokenAudience) + if err != nil { + return nil, err + } + graphAuth, err := config.GetAuthorizationToken(sender, oauthConfig, env.GraphEndpoint) + if err != nil { + return nil, err + } + vaultAuthorizer := config.BearerAuthorizerCallback(sender, oauthConfig) + + vaultSecretClient := vaultSecret.New() + vaultSecretClient.Authorizer = vaultAuthorizer + + vaultManagementClient := vaultManagement.NewVaultsClientWithBaseURI( + env.ResourceManagerEndpoint, config.SubscriptionID) + vaultManagementClient.Authorizer = auth + + // Create applications client + applicationsClient := managedapplications.NewApplicationsClient(config.SubscriptionID) + applicationsClient.SubscriptionID = config.SubscriptionID + applicationsClient.Authorizer = auth + // Create groups client + groupClient := graphrbac.NewGroupsClient(config.TenantID) + groupClient.Authorizer = graphAuth + + return &azureClient{ + applicationsClient: applicationsClient, + groupsClient: groupClient, + vaultManagementClient: vaultManagementClient, + vaultSecretClient: vaultSecretClient, + }, nil + +} + +func (client *azureClient) SubscriptionID() string { + return client.applicationsClient.SubscriptionID +} + +func (client *azureClient) GroupsListComplete(ctx context.Context, filter string) (*[]graphrbac.ADGroup, error) { + resp, err := client.groupsClient.ListComplete(ctx, filter) + if err != nil { + return nil, err + } + return resp.Response().Value, nil +} + +func (azureClient *azureClient) AppsCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters managedapplications.Application) error { + future, err := azureClient.applicationsClient.CreateOrUpdate(ctx, resourceGroupName, applicationName, parameters) + if err != nil { + return fmt.Errorf("failed to create Managed Application %q (Resource Group %q): %+v", applicationName, resourceGroupName, err) + } + err = future.WaitForCompletionRef(ctx, azureClient.applicationsClient.Client) + if err != nil { + return fmt.Errorf("failed to wait for creation of Managed Application %q (Resource Group %q): %+v", applicationName, resourceGroupName, err) + } + return nil +} + +func (azureClient *azureClient) AppsGet(ctx context.Context, resourceGroupName string, applicationName string) (managedapplications.Application, error) { + return azureClient.applicationsClient.Get(ctx, resourceGroupName, applicationName) +} + +func (azureClient *azureClient) AppsDelete(ctx context.Context, resourceGroupName string, applicationName string) error { + future, err := azureClient.applicationsClient.Delete(ctx, resourceGroupName, applicationName) + if err != nil { + return fmt.Errorf("failed to delete Managed Application %q (Resource Group %q): %+v", applicationName, resourceGroupName, err) + } + err = future.WaitForCompletionRef(ctx, azureClient.applicationsClient.Client) + if err != nil { + return fmt.Errorf("failed to wait for deleting Managed Application (Managed Application Name %q / Resource Group %q): %+v", applicationName, resourceGroupName, err) + } + return nil +} + +func (azureClient *azureClient) SecretSet(ctx context.Context, vaultId string, secretName string, parameters vaultSecret.SecretSetParameters) (vaultSecret.SecretBundle, error) { + vaultUri, err := azureClient.baseUriForKeyVault(ctx, vaultId) + if err != nil { + return vaultSecret.SecretBundle{}, err + } + + return azureClient.vaultSecretClient.SetSecret(ctx, *vaultUri, secretName, parameters) +} + +func (azureClient *azureClient) SecretGet(ctx context.Context, vaultId string, secretName string, version string) (vaultSecret.SecretBundle, error) { + vaultUri, err := azureClient.baseUriForKeyVault(ctx, vaultId) + if err != nil { + return vaultSecret.SecretBundle{}, err + } + return azureClient.vaultSecretClient.GetSecret(ctx, *vaultUri, secretName, version) +} + +func (azureClient *azureClient) SecretDelete(ctx context.Context, vaultId string, secretName string) (vaultSecret.DeletedSecretBundle, error) { + vaultUri, err := azureClient.baseUriForKeyVault(ctx, vaultId) + if err != nil { + return vaultSecret.DeletedSecretBundle{}, err + } + return azureClient.vaultSecretClient.DeleteSecret(ctx, *vaultUri, secretName) +} + +func (azureClient *azureClient) SecretRecover(ctx context.Context, vaultId string, secretName string) error { + vaultUri, err := azureClient.baseUriForKeyVault(ctx, vaultId) + if err != nil { + return err + } + _, err = azureClient.vaultSecretClient.RecoverDeletedSecret(ctx, *vaultUri, secretName) + return err +} + +// Inpsired by: https://github.com/terraform-providers/terraform-provider-azurerm/blob/8a924c35f7cc5a977877677dfb0312597aedfa5d/azurerm/internal/services/keyvault/client/helpers.go#L36 but simplified +func (azureClient *azureClient) baseUriForKeyVault(ctx context.Context, azureId string) (*string, error) { + + vaultName, vaultRGName, err := tfazurerm.ParseNameRGFromID(azureId, "vaults") + if err != nil { + return nil, err + } + + resp, err := azureClient.vaultManagementClient.Get(ctx, vaultRGName, vaultName) + if err != nil { + if utils.ResponseWasNotFound(resp.Response) { + return nil, fmt.Errorf("%s was not found", azureId) + } + return nil, fmt.Errorf("retrieving %s: %+v", azureId, err) + } + + if resp.Properties == nil || resp.Properties.VaultURI == nil { + return nil, fmt.Errorf("`properties` was nil for %s", azureId) + } + + return resp.Properties.VaultURI, nil +} + +func (azureClient *azureClient) NewFAClient(host string, vaultId string, secretName string) (array.FAClientAPI, error) { + + secret, err := azureClient.SecretGet(context.TODO(), vaultId, secretName, "") + if err != nil { + return nil, err + } + return array.NewFAClient(host, *secret.Value) +} + +func (azureClient *azureClient) DeactivateWait() { + // Docs say that we should wait 5 minutes after deactivation on Azure before we delete the managed app + // We have pulled this out into function so that the mocked version doesn't have to wait. + time.Sleep(5 * time.Minute) +} diff --git a/cbs/internal/cloud/mock_aws.go b/cbs/internal/cloud/mock_aws.go new file mode 100644 index 0000000..7166fdb --- /dev/null +++ b/cbs/internal/cloud/mock_aws.go @@ -0,0 +1,184 @@ +// +build mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + This file contains a mock implementation of the AWS cloud service + calls. + +*/ + +// TODO: Would be nice to have AZ, AWS prefixes on things + +package cloud + +import ( + "crypto/rand" + "crypto/sha1" + "encoding/binary" + "fmt" + "math/big" + "strconv" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/cloudformation" + "github.com/aws/aws-sdk-go/service/secretsmanager" + "github.com/aws/aws-sdk-go/service/sts" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/auth" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/internal/mockdb" +) + +// Hash the stack name, use it for stack id +func awsMockStackID(stackName string) string { + nh := sha1.Sum([]byte(stackName)) + return fmt.Sprintf("arn:aws:cloudformation:mock:%012d:stack/%s/%x-%x-%x-%x-%x", + binary.BigEndian.Uint32(nh[16:20]), stackName, nh[0:4], nh[4:6], nh[6:8], nh[8:10], nh[10:16]) +} + +func buildAWSClient(region string) (AWSClientAPI, error) { + return &mockAWSClient{}, nil +} + +type mockAWSClient struct{} + +func (m *mockAWSClient) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) { + stackId := awsMockStackID(*input.StackName) + + if mockdb.AWSGetStack(*input.StackName) != nil { + return nil, fmt.Errorf("Stack with name `%s` already exists", *input.StackName) + } + if mockdb.AWSGetStack(stackId) != nil { + return nil, fmt.Errorf("Stack with StackId `%s` (from name `%s`) already exists", stackId, *input.StackName) + } + + outputs := make([]*cloudformation.Output, 0) + for _, key := range []string{ + "ReplicationEndpointCT0", "ReplicationEndpointCT1", + "iSCSIEndpointCT0", "iSCSIEndpointCT1", + "GUIEndpoint", "ResumeLambda", + } { + outputs = append(outputs, &cloudformation.Output{ + OutputKey: aws.String(key), + OutputValue: aws.String(fmt.Sprintf("%s mocked value", key)), + }) + } + + outputs = append(outputs, &cloudformation.Output{ + OutputKey: aws.String("AdminSecretsManagerArn"), + OutputValue: aws.String(awsMockSecretsManagerArn()), + }) + + host := awsMockManagementEndpoint() + outputs = append(outputs, &cloudformation.Output{ + OutputKey: aws.String("ManagementEndpoint"), + OutputValue: aws.String(host), + }) + + stack := cloudformation.Stack{ + Capabilities: input.Capabilities, + DisableRollback: input.DisableRollback, + Parameters: input.Parameters, + RoleARN: input.RoleARN, + StackName: input.StackName, + StackId: &stackId, + StackStatus: aws.String("CREATE_COMPLETE"), + Outputs: outputs, + Tags: input.Tags, + } + + mockdb.AWSSetStack(stackId, host, stack) + mockdb.AWSSetStack(*input.StackName, host, stack) + return &cloudformation.CreateStackOutput{StackId: &stackId}, nil +} + +func (m *mockAWSClient) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) { + stack := mockdb.AWSGetStack(*input.StackName) + if stack == nil { + return nil, fmt.Errorf("Stack with name or Id `%s` does not exist", *input.StackName) + } + return &cloudformation.DescribeStacksOutput{Stacks: []*cloudformation.Stack{stack}}, nil +} + +func (m *mockAWSClient) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) { + stack := mockdb.AWSGetStack(*input.StackName) + if stack == nil { + return nil, fmt.Errorf("Stack with name or Id `%s` does not exist", *input.StackName) + } + mockdb.AWSDelStack(*stack.StackId) + mockdb.AWSDelStack(*stack.StackName) + + stack.StackStatus = aws.String("DELETE_COMPLETE") + mockdb.AWSSetStack(*stack.StackId, "", *stack) + mockdb.AWSSetStack(*stack.StackName, "", *stack) + + return &cloudformation.DeleteStackOutput{}, nil +} + +func (m *mockAWSClient) WaitUntilStackCreateCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput) error { + return nil +} + +func (m *mockAWSClient) WaitUntilStackDeleteCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput) error { + return nil +} + +func (m *mockAWSClient) GetCallerIdentity(input *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) { + mockUserArn := "arn:aws:iam::123456789012:user/mock" + return &sts.GetCallerIdentityOutput{Arn: &mockUserArn}, nil +} + +func (m *mockAWSClient) PutSecretValue(input *secretsmanager.PutSecretValueInput) (*secretsmanager.PutSecretValueOutput, error) { + mockBootstrap := auth.NewBootstrapService() + mockSecret, _ := mockBootstrap.GenerateSecretPayload("mock_host", []byte("mock_key")) + if mockdb.AWSGetSecret(*input.SecretId) != nil { + return nil, fmt.Errorf("Secret with Id `%s` already exists", *input.SecretId) + } + mockdb.AWSSetSecret(*input.SecretId, string(mockSecret)) + + return &secretsmanager.PutSecretValueOutput{ARN: input.SecretId}, nil +} + +func awsMockSecretsManagerArn() string { + b := make([]byte, 19) + rand.Read(b) + return fmt.Sprintf("arn:aws:secretsmanager:mock:123456789012:secret:pure/cbs/%x-%x-%x-%x-%x-%x", + b[0:4], b[4:6], b[6:8], b[8:10], b[10:16], b[16:19]) +} + +func (m *mockAWSClient) GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error) { + secret := mockdb.AWSGetSecret(*input.SecretId) + if secret == nil { + return nil, fmt.Errorf("Secret with Id `%s` does not exist", *input.SecretId) + } + return &secretsmanager.GetSecretValueOutput{SecretString: secret}, nil +} + +func (m *mockAWSClient) NewFAClient(host string, adminSecretsManagerArn string) (array.FAClientAPI, error) { + return &array.MockFAClient{Host: host, Kind: array.FAClientKindAWS}, nil +} + +func awsMockManagementEndpoint() string { + bg := big.NewInt(255) + blocks := []string{} + for i := 0; i < 4; i++ { + number, _ := rand.Int(rand.Reader, bg) + blocks = append(blocks, strconv.Itoa(int(number.Int64()))) + } + return strings.Join(blocks, ".") +} diff --git a/cbs/internal/cloud/mock_azure.go b/cbs/internal/cloud/mock_azure.go new file mode 100644 index 0000000..d72f3be --- /dev/null +++ b/cbs/internal/cloud/mock_azure.go @@ -0,0 +1,197 @@ +// +build mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + This file contains a mock implementation of the Azure cloud service + calls. + +*/ + +package cloud + +import ( + "context" + "fmt" + "math/rand" + "net/http" + "regexp" + + "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" + vaultSecret "github.com/Azure/azure-sdk-for-go/services/keyvault/v7.1/keyvault" + "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/managedapplications" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/to" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/array" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/internal/mockdb" +) + +var azureTFOutputs = []string{ + "applicationName", + "managedResourceGroupName", + "ct0Name", + "ct1Name", + "managementEndpoint", + "managementEndpointCT0", + "managementEndpointCT1", + "replicationEndpointCT0", + "replicationEndpointCT1", + "iSCSIEndpointCT0", + "iSCSIEndpointCT1", +} + +func buildAzureClient(config AzureConfig) (AzureClientAPI, error) { + return &mockAzureClient{config}, nil +} + +type mockAzureClient struct { + config AzureConfig +} + +func (m *mockAzureClient) SubscriptionID() string { + return m.config.SubscriptionID + +} + +var mockGroupsListCompleteDisplayNameRE = regexp.MustCompile(`displayName eq '(\w+)'`) + +// Expect filter to be something like `displayName eq 'a_GroupName'` +func (m *mockAzureClient) GroupsListComplete(ctx context.Context, filter string) (*[]graphrbac.ADGroup, error) { + filterMatches := mockGroupsListCompleteDisplayNameRE.FindStringSubmatch(filter) + + if len(filterMatches) != 2 { + return nil, fmt.Errorf("Mock didn't understand your groups list filter") + } + + return &[]graphrbac.ADGroup{ + {DisplayName: &filterMatches[1], ObjectID: to.StringPtr("mock-group-object-id")}, + }, nil +} + +func (m *mockAzureClient) AppsCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters managedapplications.Application) error { + mockdb.AzureAppsDel(resourceGroupName, applicationName) + + outputs := make(map[string]interface{}) + for _, value := range append(azureTFOutputs, "floatingManagementIP") { + outputs[value] = make(map[string]interface{}) + outputs[value].(map[string]interface{})["value"] = fmt.Sprintf("mock value for %s", value) + outputs[value].(map[string]interface{})["type"] = "mock type" + } + + appParams := parameters.ApplicationProperties.Parameters.(map[string]interface{}) + appParams["_artifactsLocationSasToken"] = map[string]interface{}{"type": "SecureString"} + appParams["licenseKey"].(map[string]interface{})["type"] = "SecureString" + appParams["licenseKey"].(map[string]interface{})["value"] = nil + appParams["pureuserPublicKey"].(map[string]interface{})["type"] = "SecureString" + appParams["pureuserPublicKey"].(map[string]interface{})["value"] = nil + + for _, v := range appParams { + t := v.(map[string]interface{})["type"] + if t == nil || t.(string) != "SecureString" { + v.(map[string]interface{})["type"] = "mock type" + } + } + + parameters.ApplicationProperties.Outputs = outputs + parameters.Response = autorest.Response{ + Response: &http.Response{StatusCode: http.StatusOK, Request: &http.Request{}}, + } + parameters.Location = to.StringPtr("mock Location") + parameters.ID = to.StringPtr(fmt.Sprintf( + "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Solutions/applications/%s", + m.SubscriptionID(), resourceGroupName, applicationName)) + + mockdb.AzureAppsSet(resourceGroupName, applicationName, parameters) + + return nil +} + +func (m *mockAzureClient) AppsGet(ctx context.Context, resourceGroupName string, applicationName string) (managedapplications.Application, error) { + app := mockdb.AzureAppsGet(resourceGroupName, applicationName) + if app == nil { + return managedapplications.Application{Response: autorest.Response{ + Response: &http.Response{StatusCode: http.StatusNotFound, Request: &http.Request{}}, + }}, fmt.Errorf("mock appsGet not found") + } + return *app, nil +} + +func (m *mockAzureClient) AppsDelete(ctx context.Context, resourceGroupName string, applicationName string) error { + mockdb.AzureAppsDel(resourceGroupName, applicationName) + return nil +} + +const deletedMagicValue = "__DELETED" +const recoveredMagicValue = "__RECOVERED" + +func (azureClient *mockAzureClient) SecretSet(ctx context.Context, vaultId string, secretName string, parameters vaultSecret.SecretSetParameters) (vaultSecret.SecretBundle, error) { + wasDeleted := false + existing := mockdb.AzureSecretGet(vaultId, secretName) + if existing != nil { + if *existing == deletedMagicValue { + wasDeleted = true + } + } + mockdb.AzureSecretDel(vaultId, secretName) + // Random chance this was previously deleted + + if (!wasDeleted && existing != nil) || (!wasDeleted && rand.Intn(2) == 0) { // Not deleted + mockdb.AzureSecretSet(vaultId, secretName, *parameters.Value) + return vaultSecret.SecretBundle{Value: parameters.Value}, nil + } else { // Was deleted + mockdb.AzureSecretSet(vaultId, secretName, deletedMagicValue) + return vaultSecret.SecretBundle{Response: autorest.Response{Response: &http.Response{StatusCode: 409}}}, fmt.Errorf("secret is deleted") + } +} + +func (azureClient *mockAzureClient) SecretGet(ctx context.Context, vaultId string, secretName string, version string) (vaultSecret.SecretBundle, error) { + existing := mockdb.AzureSecretGet(vaultId, secretName) + if existing == nil || *existing == deletedMagicValue { + return vaultSecret.SecretBundle{Response: autorest.Response{Response: &http.Response{StatusCode: 404}}}, fmt.Errorf("secret not found") + } + return vaultSecret.SecretBundle{Value: existing}, nil +} + +func (azureClient *mockAzureClient) SecretDelete(ctx context.Context, vaultId string, secretName string) (vaultSecret.DeletedSecretBundle, error) { + existing := mockdb.AzureSecretGet(vaultId, secretName) + if existing == nil || *existing == deletedMagicValue { + return vaultSecret.DeletedSecretBundle{Response: autorest.Response{Response: &http.Response{StatusCode: 404}}}, fmt.Errorf("secret not found") + } + mockdb.AzureSecretDel(vaultId, secretName) + mockdb.AzureSecretSet(vaultId, secretName, deletedMagicValue) + return vaultSecret.DeletedSecretBundle{}, nil +} + +func (azureClient *mockAzureClient) SecretRecover(ctx context.Context, vaultId string, secretName string) error { + existing := mockdb.AzureSecretGet(vaultId, secretName) + if existing == nil { + return fmt.Errorf("secret not found") + } + if *existing != deletedMagicValue { + return fmt.Errorf("secret not deleted") + } + mockdb.AzureSecretDel(vaultId, secretName) + mockdb.AzureSecretSet(vaultId, secretName, recoveredMagicValue) + return nil +} + +func (azureClient *mockAzureClient) NewFAClient(host string, vaultId string, secretName string) (array.FAClientAPI, error) { + return &array.MockFAClient{Host: host, Kind: array.FAClientKindAzure}, nil +} + +func (azureClient *mockAzureClient) DeactivateWait() {} diff --git a/cbs/internal/faclient/faclient.go b/cbs/internal/faclient/faclient.go deleted file mode 100644 index 932bfba..0000000 --- a/cbs/internal/faclient/faclient.go +++ /dev/null @@ -1,287 +0,0 @@ -package faclient - -import ( - "crypto/tls" - "fmt" - "net/http" - "time" - - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client" - - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/authorization" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/protection_groups" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/remote_volume_snapshots" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/volume_snapshots" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/client/volumes" - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient/2.4/models" -) - -type FlashArrayClient struct { - mgmtEndpoint string - apiToken string - HTTPClient *http.Client - //UserAgent string - - transport *httptransport.Runtime - SupportedVersions []string - - // clients of different versions - fa24 *client.Flasharray -} - -func (f *FlashArrayClient) set24Client() { - f.fa24 = client.New(f.transport, strfmt.Default) - // get supported version - resp, err := f.fa24.Authorization.GetAPIAPIVersion(nil) - fmt.Printf("Response %v, Error %v\n,", resp, err) - if err != nil { - fmt.Println("Ignore error of fetching versions") - } - f.SupportedVersions = resp.GetPayload().Version -} - -func (f *FlashArrayClient) setTransport() { - f.transport = httptransport.NewWithClient(f.mgmtEndpoint, "", []string{"https"}, f.HTTPClient) - f.transport.SetDebug(true) -} - -func New(serviceName string, mgmtEndpoint string, apiToken string) *FlashArrayClient { - // jar, _ := cookiejar.New(nil) - f := &FlashArrayClient{ - mgmtEndpoint: mgmtEndpoint, - apiToken: apiToken, - HTTPClient: &http.Client{ - // http.Client doesn't set the default Timeout, - // so it will be blocked forever without Timeout setting - Timeout: time.Second * 30, - // Jar: jar, // Not setting cookiejar because it will return same response even though array state changes - Transport: &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, - }, - }, - //UserAgent: restclient.BuildUserAgent(appName, appVersion), - } - f.setTransport() - f.set24Client() - return f -} - -// configureAuth will start a new session -// TODO: only do it when session expires -func (f *FlashArrayClient) configureAuth() error { - fmt.Println("Create Auth Client") - authClient := f.fa24.Authorization - // Issue /login request, create a session, getting xAuthToken - var xAuthToken string - param := authorization.NewPostAPI24LoginParams() - param.SetAPIToken(&f.apiToken) - resp, err := authClient.PostAPI24Login(param) - if err != nil { - fmt.Printf("Response %v, Error %v, xAuthToken %v\n", resp, err, xAuthToken) - return err - } else { - xAuthToken = resp.XAuthToken - } - // Use the x-auth-token as default authentication - apiKeyQueryAuth := httptransport.APIKeyAuth("x-auth-token", "header", xAuthToken) - f.transport.DefaultAuthentication = apiKeyQueryAuth - return nil -} - -// PgroupInfo contains the configuration of a protection group -type PgroupInfo struct { - Name string `json:"name"` - Source string `json:"source"` - // Targets []PgroupTargetInfo `json:"targets"` - // Volumes []string `json:"volumes"` - - ReplicationFrequency int64 `json:"replicate_frequency"` - ReplicationEnabled bool `json:"replicate_enabled"` -} - -func (f *FlashArrayClient) GetPgroupList24() (*[]PgroupInfo, error) { - f.configureAuth() - - getPgParam := protection_groups.NewGetAPI24ProtectionGroupsParams() - resp, err := f.fa24.ProtectionGroups.GetAPI24ProtectionGroups(getPgParam) - if err != nil { - fmt.Printf("Response %v, Error %v\n", resp, err) - return nil, err - } - - respPgroups := resp.GetPayload().Items - - pgroupInfoReturn := make([]PgroupInfo, len(respPgroups)) - for i, pg := range respPgroups { - pgroupInfoReturn[i] = PgroupInfo{ - Name: pg.Name, - Source: pg.Source.Name, - ReplicationFrequency: pg.ReplicationSchedule.Frequency, - ReplicationEnabled: pg.ReplicationSchedule.Enabled, - } - } - - // Need separate request for getting targets - if resp2, err2 := f.fa24.ProtectionGroups.GetAPI24ProtectionGroupsTargets(nil); true { - fmt.Printf("Response %v, Error %v\n", resp2, err2) - } - - // Need separate request for getting volumes - if resp2, err2 := f.fa24.ProtectionGroups.GetAPI24ProtectionGroupsVolumes(nil); true { - fmt.Printf("Response %v, Error %v\n", resp2, err2) - } - return &pgroupInfoReturn, nil -} - -// The result of the snapshot that is being sent -type RemoteVolumeSnapshot struct { - Name string // The name of the snapshot that is being sent - SourceName string // The name of the volume that sent snapshot belongs -} - -// SendSnapshot sends snapshots to the "to" FA -// It returns the info about the snapshot that is being sent -func (f *FlashArrayClient) SendSnapshot(snapshots []string, to string) (*[]RemoteVolumeSnapshot, error) { - f.configureAuth() - - params := remote_volume_snapshots.NewPostAPI24RemoteVolumeSnapshotsParams() - params.SetSourceNames(snapshots) - params.SetOn(&to) - - resp, err := f.fa24.RemoteVolumeSnapshots.PostAPI24RemoteVolumeSnapshots(params) - if err != nil { - fmt.Printf("Response %v, Error %v\n", resp, err) - return nil, err - } - - items := resp.GetPayload().Items - - remoteVolumeSnapshots := make([]RemoteVolumeSnapshot, len(items)) - for i, pg := range items { - remoteVolumeSnapshots[i] = RemoteVolumeSnapshot{ - Name: pg.Name, - SourceName: pg.Source.Name, - } - } - - return &remoteVolumeSnapshots, nil -} - -type SnapshotTransferStats struct { - Name string - DataTransferred int64 - PhysicalBytesWritten int64 - Progress float32 - CompletionTime int64 // Non-zero value being snapshot is completed -} - -// GetSnapshotTransfer returns transfer stats of given snapshots -func (f *FlashArrayClient) GetSnapshotTransfer(snapshots []string) (*[]SnapshotTransferStats, error) { - f.configureAuth() - - params := volume_snapshots.NewGetAPI24VolumeSnapshotsTransferParams() - params.SetNames(snapshots) - resp, err := f.fa24.VolumeSnapshots.GetAPI24VolumeSnapshotsTransfer(params) - if err != nil { - fmt.Printf("Response %v, Error %v\n", resp, err) - return nil, err - } - items := resp.GetPayload().Items - result := make([]SnapshotTransferStats, len(items)) - for i, item := range items { - result[i] = SnapshotTransferStats{ - Name: item.Name, - DataTransferred: item.DataTransferred, - PhysicalBytesWritten: item.PhysicalBytesWritten, - Progress: item.Progress, - CompletionTime: item.Completed, - } - } - - return &result, err -} - -func (f *FlashArrayClient) destroyVolumeSnapshots(snapshots []string) error { - f.configureAuth() - - params := volume_snapshots.NewPatchAPI24VolumeSnapshotsParams() - params.SetNames(snapshots) - replicationSnapshot := true - params.SetReplicationSnapshot(&replicationSnapshot) - - destroyPatch := models.VolumeSnapshotPatch{ - models.DestroyedPatchPost{ - Destroyed: true, - }, - models.NewName{}, - } - params.SetVolumeSnapshot(&destroyPatch) - _, err := f.fa24.VolumeSnapshots.PatchAPI24VolumeSnapshots(params) - if err != nil { - return err - } - return nil -} - -func (f *FlashArrayClient) eradicateVolumeSnapshots(snapshots []string) error { - f.configureAuth() - - params := volume_snapshots.NewDeleteAPI24VolumeSnapshotsParams() - params.SetNames(snapshots) - replicationSnapshot := true - params.SetReplicationSnapshot(&replicationSnapshot) - _, err := f.fa24.VolumeSnapshots.DeleteAPI24VolumeSnapshots(params) - return err -} - -// DeleteVolumeSnapshots destroys and eradicates the given snapshot list -func (f *FlashArrayClient) DeleteVolumeSnapshots(snapshots []string) error { - // Destroy and then eradicate snapshots - if err := f.destroyVolumeSnapshots(snapshots); err != nil { - fmt.Printf("Failed to destroy snapshots %v\n", err) - // Proceed to eradicate anyway - } - if err := f.eradicateVolumeSnapshots(snapshots); err != nil { - return err - } - return nil -} - -func (f *FlashArrayClient) destroyVolumes(volumeNames []string) error { - f.configureAuth() - - destroyParams := volumes.NewPatchAPI24VolumesParams() - destroyParams.SetNames(volumeNames) - - destroyPatch := models.VolumePatch{} - destroyPatch.Destroyed = true - destroyParams.SetVolume(&destroyPatch) - _, err := f.fa24.Volumes.PatchAPI24Volumes(destroyParams) - if err != nil { - return err - } - return nil -} - -func (f *FlashArrayClient) eradicateVolumes(volumeNames []string) error { - f.configureAuth() - - params := volumes.NewDeleteAPI24VolumesParams() - params.SetNames(volumeNames) - _, err := f.fa24.Volumes.DeleteAPI24Volumes(params) - return err -} - -// DeleteVolumes destroys and eradicates the given volume list -func (f *FlashArrayClient) DeleteVolumes(volumes []string) error { - if err := f.destroyVolumes(volumes); err != nil { - fmt.Printf("Failed to destroy snapshots %v\n", err) - // Proceed to eradicate anyway - } - if err := f.eradicateVolumes(volumes); err != nil { - return err - } - return nil -} diff --git a/cbs/internal/faclient/faclient_test.go b/cbs/internal/faclient/faclient_test.go deleted file mode 100644 index 4d3c7dc..0000000 --- a/cbs/internal/faclient/faclient_test.go +++ /dev/null @@ -1,81 +0,0 @@ -// +build realfa - -package faclient_test - -import ( - "fmt" - "testing" - - "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/faclient" - //"purity.purestorage.com/pkg/faclient" -) - -func TestWithRealArray(t *testing.T) { - // hostname := "gs64-13.dev.purestorage.com" - // apiToken := "fbab6e1f-5262-b7ac-8dbb-d52a869f8fad" - hostname := "vm-yizhao" - apiToken := "f2532610-629c-870d-c45c-999555510c14" - - fa := faclient.New("test", hostname, apiToken) - fmt.Printf("Supported versions are %v", fa.SupportedVersions) - - if err := getPgroup(fa); err != nil { - t.Errorf("Failed to get pgroup %v", err) - } - - /* - if err := testVolumeAndSnapshot(t, fa); err != nil { - t.Errorf("Volume test failed %v", err) - } - */ -} - -/* -func testVolumeAndSnapshot(t *testing.T, fa *FlashArrayClient) error { - // Assumes volume exist - volume := "faclient-test" - - // copy to a new volume - toVolume := "faclient-test-copy" - if err := fa.CreateVolumeFromSnap(volume, toVolume, true); err != nil { - t.Errorf("Failed to create volume %v", err) - return err - } - - sendSnap := "" - if resp, err := fa.SendSnapshot([]string{toVolume}, "vm-yizhao2"); err != nil { - t.Errorf("Failed to send volume %v", err) - return err - } else { - sendSnap = (*resp)[0].Name - } - - if _, err := fa.GetSnapshotTransfer([]string{sendSnap}); err != nil { - t.Errorf("Failed to get volume transfer %v", err) - return err - } - - if err := fa.DeleteVolumeSnapshots([]string{sendSnap}); err != nil { - t.Errorf("Failed to delete volume snapshot %v", err) - return err - } - - if err := fa.DeleteVolumes([]string{toVolume}); err != nil { - t.Errorf("Failed to delete volume %v", err) - return err - } - return nil -} -*/ - -func getPgroup(fa *faclient.FlashArrayClient) error { - /* - if _, err := fa.GetPgroupList(true); err != nil { - return err - } - */ - if _, err := fa.GetPgroupList24(); err != nil { - return err - } - return nil -} diff --git a/cbs/internal/service/version_mapper.go b/cbs/internal/service/version_mapper.go new file mode 100644 index 0000000..8b983ce --- /dev/null +++ b/cbs/internal/service/version_mapper.go @@ -0,0 +1,175 @@ +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +package service + +import ( + "encoding/json" + "fmt" + "net/http" + + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/version" + + "github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/managedapplications" + "github.com/Azure/go-autorest/autorest/to" + goversion "github.com/hashicorp/go-version" +) + +const ( + // The version mapper only supports purity release versions starting at 6.1.6 + minPurityVersionString = "6.1.6" + + // TODO finalize public location and URL + versionConfigURL = "https://github.dev.purestorage.com/raw/FlashArray/terraform-provider-cbs-utils/master/version_map.json" +) + +var minPurityVersion *goversion.Version + +type VersionMapper interface { + GetCFTForVersion(purityVersionString string) (string, error) + GetManagedAppPlanForVersion(purityVersionString string) (*managedapplications.Plan, error) +} + +type awsDetails struct { + TemplateURL string `json:"template_url"` +} + +type azureDetails struct { + PlanName string `json:"plan_name"` + PlanProduct string `json:"plan_product"` + PlanPublisher string `json:"plan_publisher"` + PlanVersion string `json:"plan_version"` +} + +type versionDetails struct { + AWS awsDetails `json:"aws"` + Azure azureDetails `json:"azure"` + MinProviderVersion string `json:"min_provider_version"` + MaxProviderVersion string `json:"max_provider_version"` +} + +type versionDetailsMap map[string]versionDetails + +type versionConfig struct { + Versions versionDetailsMap `json:"purity_versions"` +} + +type versionMapperImpl struct { + providerVersion string + configURL string +} + +func init() { + var err error + if minPurityVersion, err = goversion.NewVersion(minPurityVersionString); err != nil { + panic(err) + } +} + +func NewVersionMapper() VersionMapper { + return &versionMapperImpl{ + providerVersion: version.ProviderVersion, + configURL: versionConfigURL, + } +} + +func (vm *versionMapperImpl) GetCFTForVersion(purityVersionString string) (string, error) { + details, err := vm.getAndValidateVersionDetails(purityVersionString) + if err != nil { + return "", err + } + return details.AWS.TemplateURL, nil +} + +func (vm *versionMapperImpl) GetManagedAppPlanForVersion(purityVersionString string) (*managedapplications.Plan, error) { + details, err := vm.getAndValidateVersionDetails(purityVersionString) + if err != nil { + return nil, err + } + plan := &managedapplications.Plan{ + Name: to.StringPtr(details.Azure.PlanName), + Product: to.StringPtr(details.Azure.PlanProduct), + Publisher: to.StringPtr(details.Azure.PlanPublisher), + Version: to.StringPtr(details.Azure.PlanVersion), + } + return plan, nil +} + +func (vm *versionMapperImpl) getAndValidateVersionDetails(purityVersionString string) (*versionDetails, error) { + + config, err := vm.retrieveVersionDetailsFile() + if err != nil { + return nil, err + } + + versionDetails, ok := config.Versions[purityVersionString] + if !ok { + purityVersion, err := goversion.NewVersion(purityVersionString) + + if err == nil && purityVersion.LessThan(minPurityVersion) { + return nil, fmt.Errorf("invalid version %s. The \"version\" parameter only supports purity versions %s and later", + purityVersion, minPurityVersion) + } else { + return nil, fmt.Errorf("invalid version %s", purityVersionString) + } + + } else if versionDetails.MaxProviderVersion != "" || versionDetails.MinProviderVersion != "" { + maxProviderVersionString := versionDetails.MaxProviderVersion + minProviderVersionString := versionDetails.MinProviderVersion + + providerVersion := goversion.Must(goversion.NewVersion(vm.providerVersion)) + + if maxProviderVersionString != "" { + maxProviderVersion := goversion.Must(goversion.NewVersion(maxProviderVersionString)) + + if providerVersion.GreaterThan(maxProviderVersion) { + return nil, fmt.Errorf("purity version %s is only supported by provider versions %s and earlier. Current provider version: %s", + purityVersionString, maxProviderVersionString, vm.providerVersion) + } + } + if minProviderVersionString != "" { + minProviderVersion := goversion.Must(goversion.NewVersion(minProviderVersionString)) + + if providerVersion.LessThan(minProviderVersion) { + return nil, fmt.Errorf("purity version %s is only supported by provider versions %s and later. Current provider version: %s", + purityVersionString, minProviderVersionString, vm.providerVersion) + } + } + } + + return &versionDetails, nil +} + +func (vm *versionMapperImpl) retrieveVersionDetailsFile() (*versionConfig, error) { + + res, err := http.Get(vm.configURL) + if err != nil { + return nil, fmt.Errorf("could not retrieve purity version configuration: %s", err) + } + defer res.Body.Close() + + if res.StatusCode != http.StatusOK { + return nil, fmt.Errorf("received invalid status code %d when attempting to retrieve purity version configuration", res.StatusCode) + } + + var config versionConfig + if err := json.NewDecoder(res.Body).Decode(&config); err != nil { + panic(err) + } + return &config, nil +} diff --git a/cbs/internal/service/version_mapper_test.go b/cbs/internal/service/version_mapper_test.go new file mode 100644 index 0000000..77c272f --- /dev/null +++ b/cbs/internal/service/version_mapper_test.go @@ -0,0 +1,186 @@ +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +package service + +import ( + "context" + "fmt" + "net" + "net/http" + "testing" + + "github.com/stretchr/testify/assert" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/version" +) + +const testConfigDir = "../../../testing" +const testConfigURL = "http://localhost:%d/test_version_config.json" + +// Make sure that we can retrieve the real config file +func TestVersionMapper_retrieveRealConfig(t *testing.T) { + mapper := versionMapperImpl{ + providerVersion: version.ProviderVersion, + configURL: versionConfigURL, + } + if _, err := mapper.retrieveVersionDetailsFile(); err != nil { + t.Errorf("failed to retrieve config file from %s: %s", versionConfigURL, err) + } +} + +func launchServer(port int) *http.Server { + + server := http.Server{ + Handler: http.FileServer(http.Dir(testConfigDir)), + } + + l, err := net.Listen("tcp", fmt.Sprintf(":%d", port)) + if err != nil { + panic(err) + } + + go server.Serve(l) + + return &server +} + +func TestVersionMapper_badRequest(t *testing.T) { + port := 8080 + server := launchServer(port) + defer server.Shutdown(context.Background()) + + tests := map[string]struct { + purityVersion string + providerVersion string + expectedError string + }{ + "purityVersionTooEarly": { + purityVersion: "6.1.0", + providerVersion: "0.5.0", + expectedError: "invalid version 6.1.0. The \"version\" parameter only supports purity versions 6.1.6 and later", + }, + "purityVersionNotFound": { + purityVersion: "6.2.0", + providerVersion: "0.5.0", + expectedError: "invalid version 6.2.0", + }, + "purityVersionInvalid": { + purityVersion: "foobar", + providerVersion: "0.5.0", + expectedError: "invalid version foobar", + }, + "providerVersionTooEarly": { + purityVersion: "6.1.7", + providerVersion: "0.5.0", + expectedError: "purity version 6.1.7 is only supported by provider versions 0.6.0 and later. Current provider version: 0.5.0", + }, + "providerVersionTooLate": { + purityVersion: "6.1.6", + providerVersion: "0.7.0", + expectedError: "purity version 6.1.6 is only supported by provider versions 0.6.0 and earlier. Current provider version: 0.7.0", + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + mapper := versionMapperImpl{ + providerVersion: test.providerVersion, + configURL: fmt.Sprintf(testConfigURL, port), + } + _, err := mapper.GetCFTForVersion(test.purityVersion) + assert.NotNil(t, err) + + if err.Error() != test.expectedError { + t.Errorf("expected error: %s, actual error: %s", test.expectedError, err.Error()) + } + }) + } +} + +func TestVersionMapper_badURL(t *testing.T) { + port := 8081 + server := launchServer(port) + defer server.Shutdown(context.Background()) + + invalidConfigURL := fmt.Sprintf("http://localhost:%d/test_version_config_invalid.json", port) + + mapper := versionMapperImpl{ + providerVersion: "0.5.0", + configURL: invalidConfigURL, + } + + _, err := mapper.GetCFTForVersion("6.1.6") + assert.NotNil(t, err) + + expectedError := "received invalid status code 404 when attempting to retrieve purity version configuration" + assert.EqualError(t, err, expectedError) +} + +func TestVersionMapper_success(t *testing.T) { + port := 8082 + server := launchServer(port) + defer server.Shutdown(context.Background()) + + tests := map[string]struct { + purityVersion string + providerVersion string + azurePlanVersion string + }{ + "test_616": { + purityVersion: "6.1.6", + providerVersion: "0.5.0", + azurePlanVersion: "1.0.0", + }, + "test_617": { + purityVersion: "6.1.7", + providerVersion: "0.7.0", + azurePlanVersion: "1.0.9", + }, + "test_618": { + purityVersion: "6.1.8", + providerVersion: "foo", //no min or max provider version for 6.1.8 test config, this should be able to be anything + azurePlanVersion: "1.0.5", + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + mapper := versionMapperImpl{ + providerVersion: test.providerVersion, + configURL: fmt.Sprintf(testConfigURL, port), + } + + // Test AWS + awsURL, err := mapper.GetCFTForVersion(test.purityVersion) + assert.Nil(t, err) + + expectedURL := fmt.Sprintf("aws_url_%s", test.purityVersion) + assert.Equal(t, expectedURL, awsURL) + + // Test Azure + plan, err := mapper.GetManagedAppPlanForVersion(test.purityVersion) + assert.Nil(t, err) + + assert.Equal(t, fmt.Sprintf("azure_plan_%s", test.purityVersion), *plan.Name) + assert.Equal(t, fmt.Sprintf("azure_product_%s", test.purityVersion), *plan.Product) + assert.Equal(t, fmt.Sprintf("azure_publisher_%s", test.purityVersion), *plan.Publisher) + assert.Equal(t, test.azurePlanVersion, *plan.Version) + + }) + } +} diff --git a/cbs/mock_aws.go b/cbs/mock_aws.go deleted file mode 100644 index 5b0ce59..0000000 --- a/cbs/mock_aws.go +++ /dev/null @@ -1,125 +0,0 @@ -// +build mock - -/* - - Copyright 2021, Pure Storage Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - This file contains a mock implementation of the AWS cloud service - calls. - -*/ - -// TODO: Would be nice to have AZ, AWS prefixes on things - -package cbs - -import ( - "crypto/sha1" - "encoding/binary" - "fmt" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/hashicorp/terraform-plugin-sdk/v2/diag" -) - -// Hash the stack name, use it for stack id -func awsMockStackID(stackName string) string { - nh := sha1.Sum([]byte(stackName)) - return fmt.Sprintf("arn:aws:cloudformation:mock:%012d:stack/%s/%x-%x-%x-%x-%x", - binary.BigEndian.Uint32(nh[16:20]), stackName, nh[0:4], nh[4:6], nh[6:8], nh[8:10], nh[10:16]) -} - -func buildAWSSession(region string) (cloudformationAPI, diag.Diagnostics) { - var diags = buildAWSSessionPreCheck(region) - if diags != nil { - return nil, diags - } - return &mockCloudformation{}, diags -} - -type mockCloudformation struct{} - -func (m *mockCloudformation) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) { - stackId := awsMockStackID(*input.StackName) - - if mockDbAWSGetStack(*input.StackName) != nil { - return nil, fmt.Errorf("Stack with name `%s` already exists", *input.StackName) - } - if mockDbAWSGetStack(stackId) != nil { - return nil, fmt.Errorf("Stack with StackId `%s` (from name `%s`) already exists", stackId, *input.StackName) - } - - outputs := make([]*cloudformation.Output, 0) - for _, key := range []string{ - "ReplicationEndpointCT0", "ReplicationEndpointCT1", - "iSCSIEndpointCT0", "iSCSIEndpointCT1", - "GUIEndpoint", "ManagementEndpoint", "ResumeLambda", - } { - outputs = append(outputs, &cloudformation.Output{ - OutputKey: aws.String(key), - OutputValue: aws.String(fmt.Sprintf("%s mocked value", key)), - }) - } - - stack := cloudformation.Stack{ - Capabilities: input.Capabilities, - DisableRollback: input.DisableRollback, - Parameters: input.Parameters, - RoleARN: input.RoleARN, - StackName: input.StackName, - StackId: &stackId, - StackStatus: aws.String("CREATE_COMPLETE"), - Outputs: outputs, - Tags: input.Tags, - } - - mockDbAWSSetStack(stackId, stack) - mockDbAWSSetStack(*input.StackName, stack) - return &cloudformation.CreateStackOutput{StackId: &stackId}, nil -} - -func (m *mockCloudformation) DescribeStacks(input *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) { - stack := mockDbAWSGetStack(*input.StackName) - if stack == nil { - return nil, fmt.Errorf("Stack with name or Id `%s` does not exist", *input.StackName) - } - return &cloudformation.DescribeStacksOutput{Stacks: []*cloudformation.Stack{stack}}, nil -} - -func (m *mockCloudformation) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) { - stack := mockDbAWSGetStack(*input.StackName) - if stack == nil { - return nil, fmt.Errorf("Stack with name or Id `%s` does not exist", *input.StackName) - } - mockDbAWSDelStack(*stack.StackId) - mockDbAWSDelStack(*stack.StackName) - - stack.StackStatus = aws.String("DELETE_COMPLETE") - mockDbAWSSetStack(*stack.StackId, *stack) - mockDbAWSSetStack(*stack.StackName, *stack) - - return &cloudformation.DeleteStackOutput{}, nil -} - -func (m *mockCloudformation) WaitUntilStackCreateCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput, opts ...request.WaiterOption) error { - return nil -} - -func (m *mockCloudformation) WaitUntilStackDeleteCompleteWithContext(ctx aws.Context, input *cloudformation.DescribeStacksInput, opts ...request.WaiterOption) error { - return nil -} diff --git a/cbs/mock_azure.go b/cbs/mock_azure.go deleted file mode 100644 index 79788ca..0000000 --- a/cbs/mock_azure.go +++ /dev/null @@ -1,109 +0,0 @@ -// +build mock - -/* - - Copyright 2021, Pure Storage Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - This file contains a mock implementation of the Azure cloud service - calls. - -*/ - -package cbs - -import ( - "context" - "fmt" - "net/http" - "regexp" - - "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" - "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/managedapplications" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/to" - "github.com/hashicorp/terraform-plugin-sdk/v2/diag" -) - -func buildAzureClient(config azureUserConfig) (AzureClientAPI, diag.Diagnostics) { - return &mockAzureClient{}, nil -} - -type mockAzureClient struct { - config azureUserConfig -} - -func (m *mockAzureClient) SubscriptionID() string { - return m.config.SubscriptionID - -} - -var mockGroupsListCompleteDisplayNameRE = regexp.MustCompile(`displayName eq '(\w+)'`) - -// Expect filter to be something like `displayName eq 'a_GroupName'` -func (m *mockAzureClient) groupsListComplete(ctx context.Context, filter string) (*[]graphrbac.ADGroup, error) { - filterMatches := mockGroupsListCompleteDisplayNameRE.FindStringSubmatch(filter) - - if len(filterMatches) != 2 { - return nil, fmt.Errorf("Mock didn't understand your groups list filter") - } - - return &[]graphrbac.ADGroup{ - {DisplayName: &filterMatches[1], ObjectID: to.StringPtr("mock-group-object-id")}, - }, nil -} - -func (m *mockAzureClient) appsCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters managedapplications.Application) error { - mockDbAzureAppsDel(resourceGroupName, applicationName) - - outputs := make(map[string]interface{}) - for _, value := range append(azureTFOutputs, "floatingManagementIP") { - outputs[value] = make(map[string]interface{}) - outputs[value].(map[string]interface{})["value"] = fmt.Sprintf("mock value for %s", value) - } - - appParams := parameters.ApplicationProperties.Parameters.(*map[string]interface{}) - (*appParams)["_artifactsLocationSasToken"] = map[string]string{"value": "SecureString"} - (*appParams)["licenseKey"].(map[string]interface{})["value"] = "SecureString" - (*appParams)["pureuserPublicKey"].(map[string]interface{})["value"] = "SecureString" - - parameters.ApplicationProperties.Outputs = outputs - parameters.Response = autorest.Response{ - Response: &http.Response{StatusCode: http.StatusOK, Request: &http.Request{}}, - } - parameters.Location = to.StringPtr("mock Location") - parameters.ID = to.StringPtr(fmt.Sprintf( - "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Solutions/applications/%s", - m.SubscriptionID(), resourceGroupName, applicationName)) - - mockDbAzureAppsSet(resourceGroupName, applicationName, parameters) - - return nil -} - -func (m *mockAzureClient) appsGet(ctx context.Context, resourceGroupName string, applicationName string) (managedapplications.Application, error) { - app := mockDbAzureAppsGet(resourceGroupName, applicationName) - if app == nil { - return managedapplications.Application{Response: autorest.Response{ - Response: &http.Response{StatusCode: http.StatusNotFound, Request: &http.Request{}}, - }}, fmt.Errorf("mock appsGet not found") - } - return *app, nil -} - -func (m *mockAzureClient) appsDelete(ctx context.Context, resourceGroupName string, applicationName string) error { - mockDbAzureAppsDel(resourceGroupName, applicationName) - return nil -} diff --git a/cbs/mock_db.go b/cbs/mock_db.go deleted file mode 100644 index 185f55d..0000000 --- a/cbs/mock_db.go +++ /dev/null @@ -1,184 +0,0 @@ -// +build mock - -/* - - Copyright 2021, Pure Storage Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - This file contains code to support on-disk persistence for mocked versions - of the cloud service calls. Persistence for mocks enables mocked tests - over multiple terraform command invocations, such as manual testing. - -*/ - -package cbs - -import ( - "bytes" - "database/sql" - "encoding/gob" - "fmt" - "os" - "path/filepath" - - "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/managedapplications" - "github.com/aws/aws-sdk-go/service/cloudformation" - _ "github.com/mattn/go-sqlite3" -) - -var mockDb *sql.DB -var mockDbAWSGetStackStmt, mockDbAWSDelStackStmt, mockDbAWSSetStackStmt *sql.Stmt -var mockDbAzureAppsGetStmt, mockDbAzureAppsDelStmt, mockDbAzureAppsSetStmt *sql.Stmt - -func init() { - - { - mockDbPath := os.Getenv("MOCK_DB_PATH") - err := os.MkdirAll(filepath.Dir(mockDbPath), 0755) - if err != nil { - panic(err) - } - db, err := sql.Open("sqlite3", mockDbPath) - if err != nil { - fmt.Printf("Could not open DB path:%#v err:%#v\n", mockDbPath, err) - panic(err) - } - mockDb = db - } - - execSQL(` - CREATE TABLE IF NOT EXISTS awsStacks ( - "idOrName" TEXT NOT NULL PRIMARY KEY, - "data" BLOB - );`) - execSQL(` - CREATE TABLE IF NOT EXISTS azureApps ( - "resourceGroupName" TEXT NOT NULL, - "applicationName" TEXT NOT NULL, - "data" BLOB, - PRIMARY KEY ("resourceGroupName", "applicationName") - );`) - - mockDbAWSSetStackStmt = dbPrepSql(mockDbAWSSetStackStmtSQL) - mockDbAWSGetStackStmt = dbPrepSql(mockDbAWSGetStackStmtSQL) - mockDbAWSDelStackStmt = dbPrepSql(mockDbAWSDelStackStmtSQL) - - mockDbAzureAppsSetStmt = dbPrepSql(mockDbAzureAppsSetStmtSQL) - mockDbAzureAppsGetStmt = dbPrepSql(mockDbAzureAppsGetStmtSQL) - mockDbAzureAppsDelStmt = dbPrepSql(mockDbAzureAppsDelStmtSQL) - - gob.Register(map[string]map[string]interface{}{}) - gob.Register(map[string]map[string]string{}) - gob.Register(map[string]string{}) - -} - -const mockDbAWSSetStackStmtSQL = `INSERT INTO awsStacks(idOrName, data) VALUES (?, ?);` - -func mockDbAWSSetStack(key string, value cloudformation.Stack) { - execStmt(mockDbAWSSetStackStmt, key, toBytes(value)) -} - -const mockDbAWSGetStackStmtSQL = `SELECT data FROM awsStacks WHERE idOrName = ?;` - -func mockDbAWSGetStack(key string) *cloudformation.Stack { - value := cloudformation.Stack{} - if fromBytesRow(&value, mockDbAWSGetStackStmt, key) != nil { - return nil - } - return &value -} - -const mockDbAWSDelStackStmtSQL = `DELETE FROM awsStacks WHERE idOrName = ?;` - -func mockDbAWSDelStack(key string) { - execStmt(mockDbAWSDelStackStmt, key) -} - -const mockDbAzureAppsSetStmtSQL = `INSERT INTO azureApps(resourceGroupName, applicationName, data) VALUES (?, ?, ?);` - -func mockDbAzureAppsSet(resourceGroupName string, applicationName string, value managedapplications.Application) { - execStmt(mockDbAzureAppsSetStmt, resourceGroupName, applicationName, toBytes(value)) -} - -const mockDbAzureAppsGetStmtSQL = `SELECT data FROM azureApps WHERE resourceGroupName = ? and applicationName = ?;` - -func mockDbAzureAppsGet(resourceGroupName string, applicationName string) *managedapplications.Application { - value := managedapplications.Application{} - if fromBytesRow(&value, mockDbAzureAppsGetStmt, resourceGroupName, applicationName) != nil { - return nil - } - return &value -} - -const mockDbAzureAppsDelStmtSQL = `DELETE FROM azureApps WHERE resourceGroupName = ? and applicationName = ?;` - -func mockDbAzureAppsDel(resourceGroupName string, applicationName string) { - execStmt(mockDbAzureAppsDelStmt, resourceGroupName, applicationName) -} - -func dbPrepSql(sql string) *sql.Stmt { - statement, err := mockDb.Prepare(sql) - if err != nil { - fmt.Printf("dbPrepSql `%s` %#v\n", sql, err) - panic(nil) - } - return statement -} - -func execStmt(stmt *sql.Stmt, queryParameters ...interface{}) { - _, err := stmt.Exec(queryParameters...) - if err != nil { - fmt.Printf("%#v\n", err) - panic(err) - } -} - -func execSQL(sql string) { - execStmt(dbPrepSql(sql)) -} - -func toBytes(value interface{}) []byte { - var blob bytes.Buffer - enc := gob.NewEncoder(&blob) - err := enc.Encode(value) - if err != nil { - fmt.Printf("%#v\n", err) - panic(err) - } - return blob.Bytes() -} - -func fromBytesRow(value interface{}, stmt *sql.Stmt, queryParameters ...interface{}) error { - row := stmt.QueryRow(queryParameters...) - var _bytes []uint8 - - err := row.Scan(&_bytes) - if err == sql.ErrNoRows { - return err - } - if err != nil { - fmt.Printf("%#v\n", err) - panic(err) - } - blob := bytes.NewBuffer(_bytes) - dec := gob.NewDecoder(blob) - err = dec.Decode(value) - if err != nil { - fmt.Printf("%#v\n", err) - panic(err) - } - return nil -} diff --git a/cbs/provider.go b/cbs/provider.go index 6e6c632..db8d67b 100644 --- a/cbs/provider.go +++ b/cbs/provider.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/cloud" ) const ( @@ -31,7 +32,6 @@ const ( ) const ( - azureEnvironment = "public" azureSubscriptionID = "ARM_SUBSCRIPTION_ID" azureClientID = "ARM_CLIENT_ID" azureTenantID = "ARM_TENANT_ID" @@ -108,19 +108,17 @@ func configureProvider(ctx context.Context, d *schema.ResourceData) (interface{} cbsService.awsRegionStr = awsRegion(d) if _, ok := d.GetOk("aws"); ok { - cftSvc, diags := buildAWSSession(cbsService.awsRegionStr) - if diags.HasError() { + if _, diags := cbsService.awsClientService(); diags.HasError() { return nil, diags } - cbsService.CloudFormation = cftSvc } cbsService.azureConfig = azureMakeConfig(d) if _, ok := d.GetOk("azure"); ok { - azureClient, diags := buildAzureClient(cbsService.azureConfig) - if diags.HasError() { - return nil, diags + azureClient, err := cloud.NewAzureClient(cbsService.azureConfig) + if err != nil { + return nil, diag.FromErr(err) } cbsService.AzureClient = azureClient } @@ -143,14 +141,11 @@ func awsRegion(d *schema.ResourceData) string { return "" } -type azureUserConfig struct { - SubscriptionID string - ClientID string - ClientSecret string - TenantID string -} - -func azureMakeConfig(d *schema.ResourceData) (config azureUserConfig) { +func azureMakeConfig(d *schema.ResourceData) (config cloud.AzureConfig) { + config.SubscriptionID = os.Getenv(azureSubscriptionID) + config.ClientID = os.Getenv(azureClientID) + config.ClientSecret = os.Getenv(azureClientSecret) + config.TenantID = os.Getenv(azureTenantID) if azureL, ok := d.Get("azure").([]interface{}); ok && len(azureL) > 0 && azureL[0] != nil { azureM := azureL[0].(map[string]interface{}) @@ -160,11 +155,5 @@ func azureMakeConfig(d *schema.ResourceData) (config azureUserConfig) { config.TenantID = azureM["tenant_id"].(string) } - config.SubscriptionID = os.Getenv(azureSubscriptionID) - config.ClientID = os.Getenv(azureClientID) - config.ClientSecret = os.Getenv(azureClientSecret) - config.TenantID = os.Getenv(azureTenantID) - return - } diff --git a/cbs/provider_test.go b/cbs/provider_test.go index 91f8393..429451a 100644 --- a/cbs/provider_test.go +++ b/cbs/provider_test.go @@ -19,13 +19,13 @@ package cbs import ( - "fmt" "os" "regexp" "testing" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/cloud" "github.com/stretchr/testify/require" ) @@ -108,41 +108,41 @@ func TestAccProvider_allConfig(t *testing.T) { } func testProviderEmptyConfig() string { - return fmt.Sprintf(` + return ` provider "cbs" {} - `) + testInvalidAWSArrayConfig() + ` + testInvalidAWSArrayConfig() } func testProviderEmptyAWSConfig() string { - return fmt.Sprintf(` + return ` provider "cbs" { aws {} } - `) + testInvalidAWSArrayConfig() + ` + testInvalidAWSArrayConfig() } func testProviderUnmatchedConfig() string { - return fmt.Sprintf(` + return ` provider "cbs" { azure {} } - `) + testInvalidAWSArrayConfig() + ` + testInvalidAWSArrayConfig() } func testProviderAllConfig() string { - return fmt.Sprintf(` + return ` provider "cbs" { aws {} azure {} } - `) + testInvalidAWSArrayConfig() + ` + testInvalidAWSArrayConfig() } // For the test to initialize the provider, the configuration must contain a resource. We add this // resource to the test configurations so that we can test the provider setup. The values don't matter // since we can verify what we need to in the provider before we check the resource values. func testInvalidAWSArrayConfig() string { - return fmt.Sprintf(` + return ` resource "cbs_array_aws" "test_array_aws" { array_name = "invalid-array" @@ -166,7 +166,7 @@ func testInvalidAWSArrayConfig() string { replication_security_group = "sg-foo" iscsi_security_group = "sg-foo" management_security_group = "sg-foo" - }`) + }` } func testAccUnsetAWSPreCheck(t *testing.T) { @@ -184,9 +184,9 @@ func TestAccProvider_azureCLIAuth(t *testing.T) { } // Support only Azure CLI authentication - _, diags := buildAzureClient(azureUserConfig{}) - if diags != nil && diags.HasError() { - t.Fatalf("err: %+v", diags) + _, err := cloud.NewAzureClient(cloud.AzureConfig{}) + if err != nil { + t.Fatalf("err: %+v", err) } } @@ -198,15 +198,16 @@ func TestAccProvider_azureServicePrincipalAuth(t *testing.T) { // Support only Service Principal authentication testAccAzureConfigPreCheck(t) - config := azureUserConfig{ + config := cloud.AzureConfig{ SubscriptionID: os.Getenv(azureSubscriptionID), ClientID: os.Getenv(azureClientID), ClientSecret: os.Getenv(azureClientSecret), TenantID: os.Getenv(azureTenantID), } - _, diags := buildAzureClient(config) - if diags != nil && diags.HasError() { - t.Fatalf("err: %+v", diags) + + _, err := cloud.NewAzureClient(config) + if err != nil { + t.Fatalf("err: %+v", err) } } diff --git a/cbs/resource_array_aws.go b/cbs/resource_array_aws.go index 5c1d0c6..7effe98 100644 --- a/cbs/resource_array_aws.go +++ b/cbs/resource_array_aws.go @@ -25,10 +25,12 @@ import ( "time" mapset "github.com/deckarep/golang-set" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/cloud" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/cloudformation" + "github.com/aws/aws-sdk-go/service/secretsmanager" + "github.com/aws/aws-sdk-go/service/sts" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -108,6 +110,22 @@ func resourceArrayAWS() *schema.Resource { Type: schema.TypeString, Required: true, }, + // These two parameters are only required for AWS deactivation, which has been temporarily disabled + // ================================================================================================ + // "pureuser_private_key_path": { + // Type: schema.TypeString, + // Optional: true, + // ExactlyOneOf: []string{"pureuser_private_key_path", "pureuser_private_key"}, + // ValidateFunc: validation.StringIsNotEmpty, + // }, + // "pureuser_private_key": { + // Type: schema.TypeString, + // Optional: true, + // Sensitive: true, + // ExactlyOneOf: []string{"pureuser_private_key_path", "pureuser_private_key"}, + // ValidateFunc: validation.StringIsNotEmpty, + // }, + // ================================================================================================ "system_subnet": { Type: schema.TypeString, Required: true, @@ -188,7 +206,7 @@ func resourceArrayAWS() *schema.Resource { } func resourceArrayAWSCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - cftSvc, diags := m.(*CbsService).CloudFormationService() + awsClient, diags := m.(*CbsService).awsClientService() if diags.HasError() { return diags } @@ -217,6 +235,19 @@ func resourceArrayAWSCreate(ctx context.Context, d *schema.ResourceData, m inter }) } + // Deactivation in AWS has been temporarily disabled + if false { + // Get Caller Identity on behalf of provider role + res, err := awsClient.GetCallerIdentity(&sts.GetCallerIdentityInput{}) + if err != nil { + return diag.FromErr(err) + } + params = append(params, &cloudformation.Parameter{ + ParameterKey: aws.String("AdminArn"), + ParameterValue: aws.String(*res.Arn), + }) + } + var tags []*cloudformation.Tag if v, ok := d.GetOk("tags"); ok { tags = expandTags(v.(map[string]interface{})) @@ -232,7 +263,7 @@ func resourceArrayAWSCreate(ctx context.Context, d *schema.ResourceData, m inter Parameters: params, } - output, err := cftSvc.CreateStack(input) + output, err := awsClient.CreateStack(input) if err != nil { return diag.FromErr(err) } @@ -243,18 +274,45 @@ func resourceArrayAWSCreate(ctx context.Context, d *schema.ResourceData, m inter StackName: aws.String(*output.StackId), } - if err := cftSvc.WaitUntilStackCreateCompleteWithContext(ctx, waiterInput, - request.WithWaiterDelay(request.ConstantWaiterDelay(30*time.Second)), - request.WithWaiterMaxAttempts(240), - ); err != nil { + if err := awsClient.WaitUntilStackCreateCompleteWithContext(ctx, waiterInput); err != nil { return diag.FromErr(err) } - return resourceArrayAWSRead(ctx, d, m) + diags = resourceArrayAWSRead(ctx, d, m) + if diags.HasError() { + return diags + } + + // Deactivation in AWS has been temporarily disabled + if false { + adminSecretsManagerArn, err := getSecretsManagerArn(awsClient, waiterInput) + if err != nil { + return diag.FromErr(err) + } + + // Bootstrap the array + credentials, err := generateSecretPayload(d) + if err != nil { + return diag.Errorf("failed to bootstrap the CloudFormation stack with Id %s. Please contact "+ + "Pure Storage support to deactivate the instance: %+v.", d.Id(), err) + } + + // Set secret payload to secrets manager + secretInput := &secretsmanager.PutSecretValueInput{ + SecretId: aws.String(string(adminSecretsManagerArn)), + SecretString: aws.String(string(credentials)), + } + if _, err := awsClient.PutSecretValue(secretInput); err != nil { + return diag.Errorf("failed to store credentials on the CloudFormation stack with Id %s. Please contact "+ + "Pure Storage support to deactivate the instance: %+v.", d.Id(), err) + } + } + + return nil } func resourceArrayAWSRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - cftSvc, diags := m.(*CbsService).CloudFormationService() + awsClient, diags := m.(*CbsService).awsClientService() if diags.HasError() { return diags } @@ -263,7 +321,7 @@ func resourceArrayAWSRead(ctx context.Context, d *schema.ResourceData, m interfa StackName: aws.String(d.Id()), } - res, err := cftSvc.DescribeStacks(input) + res, err := awsClient.DescribeStacks(input) if err != nil { return diag.FromErr(err) } @@ -323,28 +381,44 @@ func resourceArrayAWSUpdate(ctx context.Context, d *schema.ResourceData, m inter } func resourceArrayAWSDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - cftSvc, diags := m.(*CbsService).CloudFormationService() + awsClient, diags := m.(*CbsService).awsClientService() if diags.HasError() { return diags } - input := &cloudformation.DeleteStackInput{ - RoleARN: aws.String(d.Get("deployment_role_arn").(string)), + waiterInput := &cloudformation.DescribeStacksInput{ StackName: aws.String(d.Id()), } - if _, err := cftSvc.DeleteStack(input); err != nil { - return diag.FromErr(err) - } + // Deactivation in AWS has been temporarily disabled + if false { + adminSecretsManagerArn, err := getSecretsManagerArn(awsClient, waiterInput) + if err != nil { + return diag.FromErr(err) + } - waiterInput := &cloudformation.DescribeStacksInput{ - StackName: aws.String(d.Id()), + faClient, err := awsClient.NewFAClient(d.Get("management_endpoint").(string), adminSecretsManagerArn) + if err != nil { + return diag.Errorf("failed to create FA client on the CloudFormation stack with Id %s. Please contact "+ + "Pure Storage support to deactivate the instance: %+v.", d.Id(), err) + } + + if err := faClient.Deactivate(); err != nil { + return diag.Errorf("failed to deactivate the instance with Id %s. Please contact "+ + "Pure Storage support: %+v.", d.Id(), err) + } + } else { + input := &cloudformation.DeleteStackInput{ + RoleARN: aws.String(d.Get("deployment_role_arn").(string)), + StackName: aws.String(d.Id()), + } + + if _, err := awsClient.DeleteStack(input); err != nil { + return diag.FromErr(err) + } } - if err := cftSvc.WaitUntilStackDeleteCompleteWithContext(ctx, waiterInput, - request.WithWaiterDelay(request.ConstantWaiterDelay(30*time.Second)), - request.WithWaiterMaxAttempts(20), - ); err != nil { + if err := awsClient.WaitUntilStackDeleteCompleteWithContext(ctx, waiterInput); err != nil { return diag.FromErr(err) } @@ -369,3 +443,19 @@ func flattenTags(tags []*cloudformation.Tag) map[string]string { } return m } + +func getSecretsManagerArn(awsClient cloud.AWSClientAPI, waiterInput *cloudformation.DescribeStacksInput) (string, error) { + stacksOutput, err := awsClient.DescribeStacks(waiterInput) + if err != nil { + return "", err + } + outputs := stacksOutput.Stacks[0].Outputs + var adminSecretsManagerArn string + for _, output := range outputs { + if *output.OutputKey == "AdminSecretsManagerArn" { + adminSecretsManagerArn = *output.OutputValue + break + } + } + return adminSecretsManagerArn, nil +} diff --git a/cbs/resource_array_aws_test.go b/cbs/resource_array_aws_test.go index ba03025..7e108ee 100644 --- a/cbs/resource_array_aws_test.go +++ b/cbs/resource_array_aws_test.go @@ -36,11 +36,13 @@ import ( ) type cbsAwsParams struct { - DeploymentRoleArn string `json:"deployment_role_arn"` - LicenseKey string `json:"license_key"` - PureuserKeyPairName string `json:"pureuser_key_pair_name"` - Subnet string `json:"subnet"` - SecurityGroup string `json:"security_group"` + DeploymentRoleArn string `json:"deployment_role_arn"` + LicenseKey string `json:"license_key"` + PureuserKeyPairName string `json:"pureuser_key_pair_name"` + PureuserPrivateKeyPath string `json:"pureuser_private_key_path"` + PureuserPrivateKey string `json:"pureuser_private_key"` + Subnet string `json:"subnet"` + SecurityGroup string `json:"security_group"` } var awsParams cbsAwsParams @@ -50,8 +52,8 @@ var awsRegionConfigure sync.Once const testDefaultRegion = "us-west-2" const awsParamsPathVar = "TEST_ACC_AWS_PARAMS_PATH" -// 6.1.0 template -const deploymentTemplateURL = "https://s3.amazonaws.com/awsmp-fulfillment-cf-templates-prod/4ea2905b-7939-4ee0-a521-d5c2fcb41214.a344cba1-670c-43b9-816f-5ea5796b14ef.template" +// 6.1.7 +const deploymentTemplateURL = "https://s3.amazonaws.com/awsmp-fulfillment-cf-templates-prod/4ea2905b-7939-4ee0-a521-d5c2fcb41214.6b728728-d8fa-4eb7-b92d-22d9aee3684c.template" // Basic test of an AWS array. Spins up a new instance, makes sure it exists, and tests that // the parameter and output values are all correctly stored in the Terraform state. Then try @@ -74,6 +76,7 @@ func TestAccArrayAws_basic(t *testing.T) { Check: resource.ComposeTestCheckFunc( testAccArrayAwsExists(resourceName), testAccCheckAllAttrs(resourceName, arrayName, senderDomain), + //resource.TestCheckResourceAttr(resourceName, "pureuser_private_key_path", awsParams.PureuserPrivateKeyPath), ), }, { @@ -106,6 +109,7 @@ func TestAccArrayAws_tags(t *testing.T) { Check: resource.ComposeTestCheckFunc( testAccArrayAwsExists(resourceName), testAccCheckAllAttrs(resourceName, arrayName, senderDomain), + //resource.TestCheckResourceAttr(resourceName, "pureuser_private_key_path", awsParams.PureuserPrivateKeyPath), resource.TestCheckResourceAttr(resourceName, "tags.%", "2"), resource.TestCheckResourceAttr(resourceName, "tags.foo", "bar"), resource.TestCheckResourceAttr(resourceName, "tags.test", "value"), @@ -115,6 +119,32 @@ func TestAccArrayAws_tags(t *testing.T) { }) } +func TestAccArrayAws_pureuserPrivateKey(t *testing.T) { + t.Skip("Deactivation in AWS is disabled") + + arrayName := acctest.RandomWithPrefix("tf-test-array") + senderDomain := "example.com" + loadAccAwsParams(t) + resourceName := "cbs_array_aws.test_array_aws" + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccAWSPreCheck(t) }, + ProviderFactories: testAccProvidersFactory, + CheckDestroy: testAccCheckDestroy, + Steps: []resource.TestStep{ + { + Config: testAccPureuserPrivateKeyConfig(arrayName), + Check: resource.ComposeTestCheckFunc( + testAccArrayAwsExists(resourceName), + testAccCheckAllAttrs(resourceName, arrayName, senderDomain), + resource.TestCheckNoResourceAttr(resourceName, "pureuser_private_key_path"), + resource.TestCheckResourceAttrSet(resourceName, "pureuser_private_key"), + ), + }, + }, + }) +} + func testAccBasicConfig(name string, senderDomain string) string { return fmt.Sprintf(` resource "cbs_array_aws" "test_array_aws" { @@ -133,16 +163,16 @@ func testAccBasicConfig(name string, senderDomain string) string { pureuser_key_pair_name = "%[6]s" - system_subnet = "%[7]s" - replication_subnet = "%[7]s" - iscsi_subnet = "%[7]s" - management_subnet = "%[7]s" + system_subnet = "%[8]s" + replication_subnet = "%[8]s" + iscsi_subnet = "%[8]s" + management_subnet = "%[8]s" - replication_security_group = "%[8]s" - iscsi_security_group = "%[8]s" - management_security_group = "%[8]s" + replication_security_group = "%[9]s" + iscsi_security_group = "%[9]s" + management_security_group = "%[9]s" }`, name, senderDomain, deploymentTemplateURL, awsParams.DeploymentRoleArn, awsParams.LicenseKey, - awsParams.PureuserKeyPairName, awsParams.Subnet, awsParams.SecurityGroup) + awsParams.PureuserKeyPairName, awsParams.PureuserPrivateKeyPath, awsParams.Subnet, awsParams.SecurityGroup) } func testAccTagsConfig(name string) string { @@ -163,21 +193,51 @@ func testAccTagsConfig(name string) string { pureuser_key_pair_name = "%[5]s" - system_subnet = "%[6]s" - replication_subnet = "%[6]s" - iscsi_subnet = "%[6]s" - management_subnet = "%[6]s" + system_subnet = "%[7]s" + replication_subnet = "%[7]s" + iscsi_subnet = "%[7]s" + management_subnet = "%[7]s" - replication_security_group = "%[7]s" - iscsi_security_group = "%[7]s" - management_security_group = "%[7]s" + replication_security_group = "%[8]s" + iscsi_security_group = "%[8]s" + management_security_group = "%[8]s" tags = { foo = "bar" test = "value" } }`, name, deploymentTemplateURL, awsParams.DeploymentRoleArn, awsParams.LicenseKey, - awsParams.PureuserKeyPairName, awsParams.Subnet, awsParams.SecurityGroup) + awsParams.PureuserKeyPairName, awsParams.PureuserPrivateKeyPath, awsParams.Subnet, awsParams.SecurityGroup) +} + +func testAccPureuserPrivateKeyConfig(name string) string { + return fmt.Sprintf(` + resource "cbs_array_aws" "test_array_aws" { + + array_name = "%[1]s" + + log_sender_domain = "example.com" + + deployment_template_url = "%[2]s" + + deployment_role_arn = "%[3]s" + + alert_recipients = ["user@example.com"] + array_model = "V10AR1" + license_key = "%[4]s" + + pureuser_key_pair_name = "%[5]s" + + system_subnet = "%[7]s" + replication_subnet = "%[7]s" + iscsi_subnet = "%[7]s" + management_subnet = "%[7]s" + + replication_security_group = "%[8]s" + iscsi_security_group = "%[8]s" + management_security_group = "%[8]s" + }`, name, deploymentTemplateURL, awsParams.DeploymentRoleArn, awsParams.LicenseKey, + awsParams.PureuserKeyPairName, awsParams.PureuserPrivateKey, awsParams.Subnet, awsParams.SecurityGroup) } func testAccAWSPreCheck(t *testing.T) { @@ -241,7 +301,7 @@ func testAccCheckAllAttrs(resourceName string, arrayName string, senderDomain st } func testAccCheckDestroy(s *terraform.State) error { - cftSvc, diags := testAccProvider.Meta().(*CbsService).CloudFormationService() + cftSvc, diags := testAccProvider.Meta().(*CbsService).awsClientService() if diags.HasError() { return fmt.Errorf("err: %+v", diags) } @@ -272,7 +332,7 @@ func testAccCheckDestroy(s *terraform.State) error { func testAccArrayAwsExists(resourceName string) resource.TestCheckFunc { return func(s *terraform.State) error { - cftSvc, diags := testAccProvider.Meta().(*CbsService).CloudFormationService() + cftSvc, diags := testAccProvider.Meta().(*CbsService).awsClientService() if diags.HasError() { return fmt.Errorf("err: %+v", diags) } diff --git a/cbs/resource_array_azure.go b/cbs/resource_array_azure.go index 81873d7..1c9634f 100644 --- a/cbs/resource_array_azure.go +++ b/cbs/resource_array_azure.go @@ -23,10 +23,17 @@ import ( "fmt" "log" "net/http" + "os" "regexp" "strings" "time" + vaultSecret "github.com/Azure/azure-sdk-for-go/services/keyvault/v7.1/keyvault" + "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/auth" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/cbs/internal/cloud" + "github.dev.purestorage.com/FlashArray/terraform-provider-cbs/internal/tfazurerm" + "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/managedapplications" "github.com/Azure/go-autorest/autorest" @@ -40,12 +47,12 @@ import ( const kind = "MarketPlace" -// Plan block. We will expose plan as input param in future versions. +// Default managed application plan const ( - planName = "cbs_azure_6_1_7" - product = "pure_storage_cloud_block_store_deployment" - publisher = "purestoragemarketplaceadmin" - planVersion = "1.0.4" + defaultPlanName = "cbs_azure_6_1_8" + defaultPlanProduct = "pure_storage_cloud_block_store_deployment" + defaultPlanPublisher = "purestoragemarketplaceadmin" + defaultPlanVersion = "1.0.3" ) var templateTags = []string{ @@ -67,7 +74,6 @@ var azureParams = []interface{}{ "licenseKey", "location", "orgDomain", - "pureuserPublicKey", "sku", "managementSubnet", "systemSubnet", @@ -85,12 +91,8 @@ var azureParams = []interface{}{ } var renamedAzureParams = map[string]string{ - "orgDomain": "log_sender_domain", - "sku": "array_model", - "managementVnet": "virtual_network", - "systemVnet": "virtual_network", - "iSCSIVnet": "virtual_network", - "replicationVnet": "virtual_network", + "orgDomain": "log_sender_domain", + "sku": "array_model", } var azureTFOutputs = []string{ @@ -107,6 +109,11 @@ var azureTFOutputs = []string{ "iSCSIEndpointCT1", } +type azureParameterValue struct { + valType string + value interface{} +} + func resourceArrayAzure() *schema.Resource { return &schema.Resource{ CreateContext: resourceArrayAzureCreate, @@ -124,15 +131,6 @@ func resourceArrayAzure() *schema.Resource { "location": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringInSlice([]string{ - "australiaeast", - "centralus", - "eastus", - "eastus2", - "northeurope", - "westeurope", - "westus2", - }, false), }, // parameters @@ -160,9 +158,23 @@ func resourceArrayAzure() *schema.Resource { Required: true, }, - "pureuser_public_key": { - Type: schema.TypeString, - Optional: true, + "pureuser_private_key_path": { + Type: schema.TypeString, + Optional: true, + ExactlyOneOf: []string{"pureuser_private_key_path", "pureuser_private_key"}, + ValidateFunc: validation.StringIsNotEmpty, + }, + "pureuser_private_key": { + Type: schema.TypeString, + Optional: true, + Sensitive: true, + ExactlyOneOf: []string{"pureuser_private_key_path", "pureuser_private_key"}, + ValidateFunc: validation.StringIsNotEmpty, + }, + "key_vault_id": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validateKeyVaultId, }, "array_model": { @@ -190,25 +202,10 @@ func resourceArrayAzure() *schema.Resource { Type: schema.TypeString, Required: true, }, - "virtual_network": { - Type: schema.TypeString, - Required: true, - }, - "management_resource_group": { - Type: schema.TypeString, - Required: true, - }, - "system_resource_group": { - Type: schema.TypeString, - Required: true, - }, - "iscsi_resource_group": { - Type: schema.TypeString, - Required: true, - }, - "replication_resource_group": { - Type: schema.TypeString, - Required: true, + "virtual_network_id": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, }, "zone": { @@ -252,7 +249,8 @@ func resourceArrayAzure() *schema.Resource { Type: schema.TypeList, Required: true, Elem: &schema.Schema{ - Type: schema.TypeString, + Type: schema.TypeString, + ValidateFunc: validation.StringIsNotEmpty, }, }, }, @@ -262,6 +260,36 @@ func resourceArrayAzure() *schema.Resource { }, }, + "plan": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "product": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "publisher": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "version": { + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, + }, + }, + "tags": { Type: schema.TypeMap, Optional: true, @@ -325,8 +353,8 @@ func resourceArrayAzure() *schema.Resource { } } -func resourceArrayAzureCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - azureClient, diags := m.(*CbsService).AzureClientService() +func resourceArrayAzureCreate(ctx context.Context, d *schema.ResourceData, m interface{}) (returnedDiags diag.Diagnostics) { + azureClient, diags := m.(*CbsService).azureClientService() if diags.HasError() { return diags } @@ -336,7 +364,7 @@ func resourceArrayAzureCreate(ctx context.Context, d *schema.ResourceData, m int resourceGroupName := d.Get("resource_group_name").(string) if d.IsNewResource() { - existing, err := azureClient.appsGet(ctx, resourceGroupName, name) + existing, err := azureClient.AppsGet(ctx, resourceGroupName, name) if err != nil { if !responseWasNotFound(existing.Response) { return diag.Errorf("failed to check for present of existing Managed Application Name %q (Resource Group %q): %+v", name, resourceGroupName, err) @@ -357,20 +385,41 @@ func resourceArrayAzureCreate(ctx context.Context, d *schema.ResourceData, m int ManagedResourceGroupID: to.StringPtr(targetResourceGroupId), } - parameters.Plan = &managedapplications.Plan{ - Name: to.StringPtr(planName), - Product: to.StringPtr(product), - Publisher: to.StringPtr(publisher), - Version: to.StringPtr(planVersion), + if v, ok := d.GetOk("plan"); ok && len(v.([]interface{})) > 0 { + parameters.Plan = expandPlan(v.([]interface{})) + } else { + parameters.Plan = &managedapplications.Plan{ + Name: to.StringPtr(defaultPlanName), + Product: to.StringPtr(defaultPlanProduct), + Publisher: to.StringPtr(defaultPlanPublisher), + Version: to.StringPtr(defaultPlanVersion), + } } - params := make(map[string]interface{}) + vnetName, vnetRGName, err := tfazurerm.ParseNameRGFromID(d.Get("virtual_network_id").(string), "virtualNetworks") + if err != nil { + return diag.FromErr(err) + } + + parameters.Parameters = make(map[string]interface{}) + setAppParameter := func(key string, value interface{}) { + (parameters.Parameters.(map[string]interface{}))[key] = map[string]interface{}{"value": value} + } for _, value := range azureParams { valueStr := value.(string) - params[valueStr] = map[string]interface{}{"value": d.Get(templateToTFParam(valueStr, renamedAzureParams))} + if strings.HasSuffix(valueStr, "Vnet") { + setAppParameter(valueStr, vnetName) + } else if strings.HasSuffix(valueStr, "ResourceGroup") { + setAppParameter(valueStr, vnetRGName) + } else { + setAppParameter(valueStr, d.Get(templateToTFParam(valueStr, renamedAzureParams))) + } } approval := d.Get("jit_approval").([]interface{})[0].(map[string]interface{}) + if approval["approvers"].([]interface{})[0] == nil { + return diag.Errorf("JIT group list cannot be empty.") + } approver := approval["approvers"].([]interface{})[0].(map[string]interface{}) var approvers []managedapplications.JitApproverDefinition displayNameList := convertToStringSlice(approver["groups"].([]interface{})) @@ -399,10 +448,9 @@ func resourceArrayAzureCreate(ctx context.Context, d *schema.ResourceData, m int if v, ok := d.GetOk("alert_recipients"); ok { newRecips := convertToStringSlice(v.([]interface{})) - params["alertRecipients"] = map[string]interface{}{"value": strings.Join(newRecips, ",")} - + setAppParameter("alertRecipients", strings.Join(newRecips, ",")) } else { // Deployment template has validation check on 'alertRecipients'. If not set, it should be "" instead of null. - params["alertRecipients"] = map[string]interface{}{"value": ""} + setAppParameter("alertRecipients", "") } if v, ok := d.GetOk("tags"); ok { @@ -411,17 +459,42 @@ func resourceArrayAzureCreate(ctx context.Context, d *schema.ResourceData, m int for _, tag := range templateTags { tagsMap[tag] = tags } - params["tagsByResource"] = map[string]interface{}{"value": tagsMap} + setAppParameter("tagsByResource", tagsMap) } - parameters.Parameters = ¶ms + err = prevalidateKeyVaultId(ctx, d, azureClient) + if err != nil { + return diag.FromErr(err) + } + defer func() { + if returnedDiags.HasError() { + vaultId, secretName := vaultIdSecretName(d) + azureClient.SecretDelete(ctx, vaultId, secretName) + } + }() + + pvtKeyBytes, err := getSSHPrivateKeyBytes(d) + if err != nil { + return diag.FromErr(err) + } - err := azureClient.appsCreateOrUpdate(ctx, resourceGroupName, name, parameters) + sshPublicKey, err := auth.PrivateKeyDerivePublicKey(pvtKeyBytes) if err != nil { return diag.FromErr(err) } + setAppParameter("pureuserPublicKey", string(sshPublicKey)) - resp, err := azureClient.appsGet(ctx, resourceGroupName, name) + err = azureClient.AppsCreateOrUpdate(ctx, resourceGroupName, name, parameters) + defer func() { + if returnedDiags.HasError() { + azureClient.AppsDelete(ctx, resourceGroupName, name) + } + }() + if err != nil { + return diag.FromErr(err) + } + + resp, err := azureClient.AppsGet(ctx, resourceGroupName, name) if err != nil { return diag.Errorf("failed to retrieve Managed Application %q (Resource Group %q): %+v", name, resourceGroupName, err) } @@ -430,10 +503,20 @@ func resourceArrayAzureCreate(ctx context.Context, d *schema.ResourceData, m int } d.SetId(*resp.ID) - return resourceArrayAzureRead(ctx, d, m) + diags = resourceArrayAzureRead(ctx, d, m) + if diags.HasError() { + return diags + } + + err = generateAndSetSecret(ctx, d, azureClient) + if err != nil { + return diag.FromErr(err) + } + + return nil } func resourceArrayAzureRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - azureClient, diags := m.(*CbsService).AzureClientService() + azureClient, diags := m.(*CbsService).azureClientService() if diags.HasError() { return diags } @@ -448,7 +531,7 @@ func resourceArrayAzureRead(ctx context.Context, d *schema.ResourceData, m inter managedResourceGroup := toManagedResourceGroup(appName) resourceGroup := d.Get("resource_group_name").(string) - resp, err := azureClient.appsGet(ctx, resourceGroup, appName) + resp, err := azureClient.AppsGet(ctx, resourceGroup, appName) if err != nil { if responseWasNotFound(resp.Response) { log.Printf("[WARN] Managed Application %q does not exist - removing from state", d.Id()) @@ -464,27 +547,44 @@ func resourceArrayAzureRead(ctx context.Context, d *schema.ResourceData, m inter d.Set("location", resp.Location) if props := resp.ApplicationProperties; props != nil { - params := props.Parameters.(map[string]interface{}) + params := formatParameters(props.Parameters) azureParamSet := mapset.NewSetFromSlice(azureParams) + var vnetName, vnetRGName string for k, v := range params { - if v != nil { + // SecureString parameters will always have a null value, so ignore them + if v.valType != "SecureString" { if k == "AlertRecipients" { - recips := strings.Split(v.(map[string]interface{})["value"].(string), ",") + recips := strings.Split(v.value.(string), ",") d.Set("alert_recipients", recips) } if k == "tagsByResource" { - maps := v.(map[string]interface{})["value"].(map[string]interface{}) + maps := v.value.(map[string]interface{}) for _, tagValue := range maps { d.Set("tags", tagValue) break } } if azureParamSet.Contains(k) { - d.Set(templateToTFParam(k, renamedAzureParams), v.(map[string]interface{})["value"]) + if strings.HasSuffix(k, "Vnet") { + vnetName = v.value.(string) + } else if strings.HasSuffix(k, "ResourceGroup") { + vnetRGName = v.value.(string) + } else { + d.Set(templateToTFParam(k, renamedAzureParams), v.value) + } + } } } + // set virtual_network_id using VirtualNetwork Name and ResourceGroup name + if vnetName == "" || vnetRGName == "" { + return diag.Errorf("failed to read VirtualNetwork ID of Managed Application %q", appName) + } + vnetId := fmt.Sprintf("/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s", + azureClient.SubscriptionID(), vnetRGName, vnetName) + d.Set("virtual_network_id", vnetId) + if err = d.Set("jit_approval", flattenJitApproval(props.JitAccessPolicy)); err != nil { return diag.FromErr(err) } @@ -521,17 +621,36 @@ func resourceArrayAzureUpdate(ctx context.Context, d *schema.ResourceData, m int } func resourceArrayAzureDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - azureClient, diags := m.(*CbsService).AzureClientService() + azureClient, diags := m.(*CbsService).azureClientService() if diags.HasError() { return diags } + vaultId, secretName := vaultIdSecretName(d) + + faClient, err := azureClient.NewFAClient(d.Get("management_endpoint").(string), vaultId, secretName) + if err != nil { + return diag.Errorf("failed to create FA client with managed application ID: %s. "+ + "Please contact Pure Storage support to deactivate the instance: %+v.", d.Id(), err) + } + + if err := faClient.Deactivate(); err != nil { + return diag.Errorf("failed to deactivate the instance with Id %s. Please contact "+ + "Pure Storage support: %+v.", d.Id(), err) + } + + azureClient.DeactivateWait() + resourceGroup := d.Get("resource_group_name").(string) appName := d.Get("array_name").(string) - err := azureClient.appsDelete(ctx, resourceGroup, appName) + + err = azureClient.AppsDelete(ctx, resourceGroup, appName) if err != nil { return diag.FromErr(err) } + + azureClient.SecretDelete(ctx, vaultId, secretName) + return nil } @@ -539,7 +658,7 @@ func validateManagedApplicationName(v interface{}, k string) (warnings []string, value := v.(string) if !regexp.MustCompile(`^[-\da-zA-Z]{3,64}$`).MatchString(value) { - errors = append(errors, fmt.Errorf("%q must be between 3 and 64 characters in length and contains only letters, numbers or hyphens.", k)) + errors = append(errors, fmt.Errorf("%q must be between 3 and 64 characters in length and contains only letters, numbers or hyphens", k)) } return warnings, errors @@ -564,6 +683,16 @@ func validateResourceGroupName(v interface{}, k string) (warnings []string, erro return warnings, errors } +func validateKeyVaultId(v interface{}, k string) (warnings []string, errors []error) { + + _, _, err := tfazurerm.ParseNameRGFromID(v.(string), "vaults") + if err != nil { + errors = append(errors, err) + } + + return +} + func responseWasNotFound(resp autorest.Response) bool { if r := resp.Response; r != nil { if r.StatusCode == http.StatusNotFound { @@ -579,11 +708,11 @@ func toManagedResourceGroup(name string) string { return result } -func groupGetByDisplayName(ctx context.Context, client AzureClientAPI, displayName string) (*graphrbac.ADGroup, error) { +func groupGetByDisplayName(ctx context.Context, client cloud.AzureClientAPI, displayName string) (*graphrbac.ADGroup, error) { filter := fmt.Sprintf("displayName eq '%s'", displayName) - values, err := client.groupsListComplete(ctx, filter) + values, err := client.GroupsListComplete(ctx, filter) if err != nil { return nil, fmt.Errorf("listing Groups for filter %q: %+v", filter, err) } @@ -608,6 +737,17 @@ func groupGetByDisplayName(ctx context.Context, client AzureClientAPI, displayNa return &group, nil } +func expandPlan(input []interface{}) *managedapplications.Plan { + plan := input[0].(map[string]interface{}) + + return &managedapplications.Plan{ + Name: to.StringPtr(plan["name"].(string)), + Product: to.StringPtr(plan["product"].(string)), + Publisher: to.StringPtr(plan["publisher"].(string)), + Version: to.StringPtr(plan["version"].(string)), + } +} + func flattenJitApproval(policy *managedapplications.ApplicationJitAccessPolicy) []map[string]interface{} { results := make([]map[string]interface{}, 1) @@ -626,3 +766,84 @@ func flattenJitApproval(policy *managedapplications.ApplicationJitAccessPolicy) return results } + +var invalidSecretCharacters = regexp.MustCompile("[^a-zA-Z0-9-]+") + +func vaultIdSecretName(d *schema.ResourceData) (vaultId string, secretName string) { + secretName = fmt.Sprintf("cbs-%s-%s", d.Get("resource_group_name").(string), d.Get("array_name").(string)) + secretName = invalidSecretCharacters.ReplaceAllString(secretName, "") + vaultId = d.Get("key_vault_id").(string) + return +} + +// Here we just write/read from the secret, just to make sure that we have a properly configured key_vault_id +func prevalidateKeyVaultId(ctx context.Context, d *schema.ResourceData, azureClient cloud.AzureClientAPI) error { + vaultId, secretName := vaultIdSecretName(d) + const placeholderText = "PLACEHOLDER" + + existing, err := azureClient.SecretGet(ctx, vaultId, secretName, "") + if !(utils.ResponseWasNotFound(existing.Response) || (err != nil && *existing.Value == placeholderText)) { + if err != nil { + return fmt.Errorf("failed to check for existing secret: %+v Secret name: %s key_vault_id: %s", err, secretName, vaultId) + } else { + return fmt.Errorf("secret already exists, please check for existing deployment, or change resource group or name. Secret name: %s key_vault_id: %s", secretName, vaultId) + } + } + + setSecret, err := azureClient.SecretSet(ctx, vaultId, secretName, vaultSecret.SecretSetParameters{Value: to.StringPtr(placeholderText)}) + if utils.ResponseWasStatusCode(setSecret.Response, 409 /* Conflict: Deleted but not purged */) { + err = azureClient.SecretRecover(ctx, vaultId, secretName) + if err != nil { + return fmt.Errorf("failed to recover previously deleted secret: %+v Secret name: %s key_vault_id: %s", err, secretName, vaultId) + } + for { + setSecret, err = azureClient.SecretSet(ctx, vaultId, secretName, vaultSecret.SecretSetParameters{Value: to.StringPtr(placeholderText)}) + if !utils.ResponseWasStatusCode(setSecret.Response, 409) { + break + } + fmt.Fprintf(os.Stderr, "[WARN] An existing deleted secret exists, we are recovering it so that we may overwrite it: %+v\n", err) + time.Sleep(10 * time.Second) + } + } + if err != nil { + return fmt.Errorf("prevalidation failure: Please check value for: %+v Secret name: %s key_vault_id: %s", err, secretName, vaultId) + } + + secret, err := azureClient.SecretGet(ctx, vaultId, secretName, "") + if err != nil { + return fmt.Errorf("failed to get secret: %+v Secret name: %s key_vault_id: %s", err, secretName, vaultId) + } + if *secret.Value != placeholderText { + return fmt.Errorf("secret did not match secret that we set Secret name: %s key_vault_id: %s", secretName, vaultId) + } + return nil +} + +func generateAndSetSecret(ctx context.Context, d *schema.ResourceData, azureClient cloud.AzureClientAPI) error { + vaultId, secretName := vaultIdSecretName(d) + + restCredentials, err := generateSecretPayload(d) + if err != nil { + return err + } + + _, err = azureClient.SecretSet(ctx, vaultId, secretName, vaultSecret.SecretSetParameters{Value: to.StringPtr((string(restCredentials)))}) + if err != nil { + return err + } + return nil +} + +func formatParameters(val interface{}) map[string]azureParameterValue { + rawParams := val.(map[string]interface{}) + params := make(map[string]azureParameterValue) + for k, v := range rawParams { + if v != nil { + params[k] = azureParameterValue{ + valType: v.(map[string]interface{})["type"].(string), + value: v.(map[string]interface{})["value"], + } + } + } + return params +} diff --git a/cbs/resource_array_azure_test.go b/cbs/resource_array_azure_test.go index d89ebcd..10446a7 100644 --- a/cbs/resource_array_azure_test.go +++ b/cbs/resource_array_azure_test.go @@ -34,20 +34,17 @@ import ( ) type cbsAzureParams struct { - ResourceGroupName string `json:"resource_group_name"` - Location string `json:"location"` - LicenseKey string `json:"license_key"` - PureuserPublicKey string `json:"pureuser_public_key"` - ManagementSubnet string `json:"management_subnet"` - ISCSISubnet string `json:"iscsi_subnet"` - ReplicationSubnet string `json:"replication_subnet"` - SystemSubnet string `json:"system_subnet"` - VirtualNetwork string `json:"virtual_network"` - ManagementResourceGroup string `json:"management_resource_group"` - ISCSIResourceGroup string `json:"iscsi_resource_group"` - ReplicationResourceGroup string `json:"replication_resource_group"` - SystemResourceGroup string `json:"system_resource_group"` - JitGroup string `json:"jit_group"` + ResourceGroupName string `json:"resource_group_name"` + Location string `json:"location"` + LicenseKey string `json:"license_key"` + PureuserPrivateKeyPath string `json:"pureuser_private_key_path"` + KeyvaultId string `json:"keyvault_id"` + ManagementSubnet string `json:"management_subnet"` + ISCSISubnet string `json:"iscsi_subnet"` + ReplicationSubnet string `json:"replication_subnet"` + SystemSubnet string `json:"system_subnet"` + VirtualNetworkId string `json:"virtual_network_id"` + JitGroup string `json:"jit_group"` } const azureParamsPathVar = "TEST_ACC_AZURE_PARAMS_PATH" @@ -74,7 +71,6 @@ func TestAccArrayAzure_basic(t *testing.T) { testAccArrayAzureExists(resourceName), testAccCheckAzureAllAttrs(resourceName, arrayName, orgDomain), ), - ExpectNonEmptyPlan: true, }, { Config: testAccAzureBasicConfig(arrayName, orgDomain2), @@ -95,26 +91,24 @@ func testAccAzureBasicConfig(name string, orgDomain string) string { log_sender_domain = "%[2]s" resource_group_name = "%[3]s" license_key = "%[4]s" - pureuser_public_key = "%[5]s" + pureuser_private_key_path = "%[5]s" system_subnet = "%[6]s" replication_subnet = "%[7]s" iscsi_subnet = "%[8]s" management_subnet = "%[9]s" - management_resource_group = "%[10]s" - system_resource_group = "%[11]s" - iscsi_resource_group = "%[12]s" - replication_resource_group = "%[13]s" - virtual_network = "%[14]s" - location = "%[15]s" + virtual_network_id = "%[10]s" + location = "%[11]s" + key_vault_id = "%[12]s" + alert_recipients = ["user@example.com"] array_model = "V10MUR1" - zone = 1 + zone = 3 jit_approval { activation_maximum_duration = "PT2H" approvers { groups = [ - "%[16]s", + "%[13]s", ] } } @@ -123,10 +117,9 @@ func testAccAzureBasicConfig(name string, orgDomain string) string { foo = "bar" test = "value" } - }`, name, orgDomain, cbsAzureParam.ResourceGroupName, cbsAzureParam.LicenseKey, cbsAzureParam.PureuserPublicKey, cbsAzureParam.SystemSubnet, - cbsAzureParam.ReplicationSubnet, cbsAzureParam.ISCSISubnet, cbsAzureParam.ManagementSubnet, cbsAzureParam.ManagementResourceGroup, - cbsAzureParam.SystemResourceGroup, cbsAzureParam.ISCSIResourceGroup, cbsAzureParam.ReplicationResourceGroup, cbsAzureParam.VirtualNetwork, - cbsAzureParam.Location, cbsAzureParam.JitGroup) + }`, name, orgDomain, cbsAzureParam.ResourceGroupName, cbsAzureParam.LicenseKey, cbsAzureParam.PureuserPrivateKeyPath, cbsAzureParam.SystemSubnet, + cbsAzureParam.ReplicationSubnet, cbsAzureParam.ISCSISubnet, cbsAzureParam.ManagementSubnet, cbsAzureParam.VirtualNetworkId, + cbsAzureParam.Location, cbsAzureParam.KeyvaultId, cbsAzureParam.JitGroup) } // Lazy load the Azure param values from the json file specified at TEST_ACC_AZURE_PARAMS_PATH. @@ -147,7 +140,7 @@ func loadAccAzureParams(t *testing.T) { } func testAccCheckArrayAzureDestroy(s *terraform.State) error { - azureClient, diags := testAccProvider.Meta().(*CbsService).AzureClientService() + azureClient, diags := testAccProvider.Meta().(*CbsService).azureClientService() if diags.HasError() { return fmt.Errorf("err: %+v", diags) } @@ -160,7 +153,7 @@ func testAccCheckArrayAzureDestroy(s *terraform.State) error { appName := rs.Primary.Attributes["array_name"] resourceGroup := rs.Primary.Attributes["resource_group_name"] - resp, err := azureClient.appsGet(ctx, resourceGroup, appName) + resp, err := azureClient.AppsGet(ctx, resourceGroup, appName) if err != nil { if responseWasNotFound(resp.Response) { return nil @@ -181,7 +174,7 @@ func testAccArrayAzureExists(resourceName string) resource.TestCheckFunc { } ctx := context.Background() - azureClient, diags := testAccProvider.Meta().(*CbsService).AzureClientService() + azureClient, diags := testAccProvider.Meta().(*CbsService).azureClientService() if diags.HasError() { return fmt.Errorf("err: %+v", diags) } @@ -189,7 +182,7 @@ func testAccArrayAzureExists(resourceName string) resource.TestCheckFunc { appName := rs.Primary.Attributes["array_name"] resourceGroup := rs.Primary.Attributes["resource_group_name"] - if resp, err := azureClient.appsGet(ctx, resourceGroup, appName); err != nil { + if resp, err := azureClient.AppsGet(ctx, resourceGroup, appName); err != nil { if responseWasNotFound(resp.Response) { return fmt.Errorf("Managed Application %q (Resource Group %q) does not exist", appName, resourceGroup) } @@ -205,20 +198,18 @@ func testAccCheckAzureAllAttrs(resourceName string, arrayName string, orgDomain resource.TestCheckResourceAttr(resourceName, "array_name", arrayName), resource.TestCheckResourceAttr(resourceName, "location", cbsAzureParam.Location), resource.TestCheckResourceAttr(resourceName, "resource_group_name", cbsAzureParam.ResourceGroupName), - resource.TestCheckResourceAttr(resourceName, "zone", "1"), + resource.TestCheckResourceAttr(resourceName, "zone", "3"), resource.TestCheckResourceAttr(resourceName, "log_sender_domain", orgDomain), resource.TestCheckResourceAttr(resourceName, "alert_recipients.#", "1"), resource.TestCheckResourceAttr(resourceName, "alert_recipients.0", "user@example.com"), resource.TestCheckResourceAttr(resourceName, "array_model", "V10MUR1"), + resource.TestCheckResourceAttr(resourceName, "pureuser_private_key_path", cbsAzureParam.PureuserPrivateKeyPath), resource.TestCheckResourceAttr(resourceName, "system_subnet", cbsAzureParam.SystemSubnet), resource.TestCheckResourceAttr(resourceName, "replication_subnet", cbsAzureParam.ReplicationSubnet), resource.TestCheckResourceAttr(resourceName, "iscsi_subnet", cbsAzureParam.ISCSISubnet), resource.TestCheckResourceAttr(resourceName, "management_subnet", cbsAzureParam.ManagementSubnet), - resource.TestCheckResourceAttr(resourceName, "virtual_network", cbsAzureParam.VirtualNetwork), - resource.TestCheckResourceAttr(resourceName, "management_resource_group", cbsAzureParam.ManagementResourceGroup), - resource.TestCheckResourceAttr(resourceName, "system_resource_group", cbsAzureParam.SystemResourceGroup), - resource.TestCheckResourceAttr(resourceName, "iscsi_resource_group", cbsAzureParam.ISCSIResourceGroup), - resource.TestCheckResourceAttr(resourceName, "replication_resource_group", cbsAzureParam.ReplicationResourceGroup), + resource.TestCheckResourceAttr(resourceName, "virtual_network_id", cbsAzureParam.VirtualNetworkId), + resource.TestCheckResourceAttr(resourceName, "key_vault_id", cbsAzureParam.KeyvaultId), resource.TestCheckResourceAttr(resourceName, "jit_approval.#", "1"), resource.TestCheckResourceAttr(resourceName, "jit_approval.0.approvers.#", "1"), resource.TestCheckResourceAttr(resourceName, "jit_approval.0.activation_maximum_duration", "PT2H"), diff --git a/docs/resources/array_azure.md b/docs/resources/array_azure.md index 87b663f..b733c2f 100644 --- a/docs/resources/array_azure.md +++ b/docs/resources/array_azure.md @@ -10,21 +10,58 @@ description: |- Allows the deployment and management of a Cloud Block Store instance on Azure. The instance is deployed as an Azure Managed Application. -The instance is deployed at Purity version 6.1.7. +The instance is deployed at Purity version 6.1.8. Refer to the [deployment guide](https://support.purestorage.com/FlashArray/PurityFA/Cloud_Block_Store/Cloud_Block_Store_Deployment_and_Configuration_Guide_for_Azure) for information on how to configure the Azure environment for the CBS instance. -!>Currently, destroying the Terraform resource **will not** deactivate the CBS instance. Due to this, -we recommend that you deactivate the instance from inside the array itself. For information on how -to do this, refer to the [relevant section](https://support.purestorage.com/FlashArray/PurityFA/Cloud_Block_Store/Cloud_Block_Store_Deployment_and_Configuration_Guide_for_Azure#Removing_Cloud_Block_Store) of the guide. If the instance is destroyed by another -method than the one outlined in the guide, including `terraform destroy`, then you must contact -Pure Storage Support in order to deactivate the instance. +~>Along with the infrastructure components defined in the deployment guide, an [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) +is required to deploy Cloud Block Store in Azure using Terraform. An existing Key Vault may be used or a new +one can be created for the array. Multiple arrays may reuse the same Key Vault. Any Azure account +that wishes to use Terraform to perform management operations on the array must be granted `Get`, +`Set`, `Delete`, `List`, and `Recover` permissions on secrets within the Key Vault. All secrets created +or accessed by the CBS Terraform Provider will use a `cbs-` prefix. An example Key Vault creation using the +`azurerm_key_vault` resource from the [azurerm provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs) +is shown below. + +~>In order to set up long term management of new arrays, the provider must obtain access to the array +during deployment in order to obtain management credentials. In order to accomplish this, the provider +must be supplied a private SSH key, either a file path to the key with the `pureuser_private_key_path` +parameter or the key text itself with the `pureuser_private_key` parameter. The management credentials +are stored in the Azure Key Vault that is specified by the `key_vault_id` parameter (see the above +note for more information about the key vault). To retrieve the credentials, the provider requires +access to the management port of the array, and therefore the machine running Terraform *must* be +able to access the management subnet used for the array. ~>Updates are currently not supported for this resource. ## Example Usage ```hcl +// retrieves information about the configuration of the azurerm provider +// The client configuration used for the "cbs" provider must match the client configuration used +// for the "azurerm" provider, otherwise the "cbs" provider will not be able to access the key vault. +data "azurerm_client_config" "client_config" {} + +// Key Vault name must be globally unique +resource "random_id" "vault_id" { + byte_length = 8 +} + +resource "azurerm_key_vault" "cbs_key_vault" { + name = "cbs-${random_id.vault_id.hex}" + location = "location_xxxx" + resource_group_name = "resource_yyyy" + tenant_id = data.azurerm_client_config.client_config.tenant_id + + sku_name = "standard" + + access_policy { + tenant_id = data.azurerm_client_config.client_config.tenant_id + object_id = data.azurerm_client_config.client_config.object_id + secret_permissions = ["Get", "Set", "Delete", "List", "Recover"] + } +} + resource "cbs_array_azure" "azure_instance" { array_name = "terraform-example-instance" @@ -36,18 +73,18 @@ resource "cbs_array_azure" "azure_instance" { alert_recipients = ["admin1@example-company.org", "admin2@example-company.org"] array_model = "V10MUR1" zone = 1 - virtual_network = "VN-xxxxxxxxxxxxxx" + + key_vault_id = azurerm_key_vault.cbs_key_vault.id + + pureuser_private_key_path = "/path/to/private_key" + + virtual_network_id = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/mock_resource_group_name/providers/Microsoft.Network/virtualNetworks/xxxxxxxx", management_subnet = "SN-xxxxxxxxxxxxxx" system_subnet = "SN-xxxxxxxxxxxxxx" iscsi_subnet = "SN-xxxxxxxxxxxxxx" replication_subnet = "SN-xxxxxxxxxxxxxx" - management_resource_group = "management_resource_xxxx" - system_resource_group = "system_resource_xxxx" - iscsi_resource_group = "iscsi_resource_xxxx" - replication_resource_group = "replication_resource_xxxx" - jit_approval { approvers { groups = ["group_xxxx"] @@ -62,22 +99,21 @@ resource "cbs_array_azure" "azure_instance" { - `alert_recipients` (Optional) - List of email addresses to receive alerts. - `array_model` (Required) - CBS array size to launch. The possible values are `V10MUR1` or `V20MUR1`. - `array_name` (Required) - Name of the array, and the name of the managed application. -- `iscsi_resource_group` (Required) - The Resource Group containing the ISCSI Virtual Network. - `iscsi_subnet` (Required) - Subnet containing the iSCSI interfaces on the array. - `jit_approval` (Required) - A Just In Time remote access configuration block. See [below for nested schema](#nestedblock--jit_approval). +- `key_vault_id` (Required) - Key Vault where provider stores sensitive information. - `license_key` (Required) - Pure Storage-provided license key. - `location` (Required) - Azure location in which to deploy the array. - `log_sender_domain` (Required) - Domain name used to determine how CBS logs are parsed and treated by Pure Storage Support and Escalations. -- `management_resource_group` (Required) - Resource Group containing the Management Network Resources on the array. - `management_subnet` (Required) - Subnet containing the management interfaces on the array. -- `pureuser_public_key` (Optional) - Public ssh key to allow pureuser login. -- `replication_resource_group` (Required) - The Resource Group containing the Replication Virtual Network. +- `plan` (Optional) - A managed application plan configuration block. See [below for nested schema](#nestedblock--plan). +- `pureuser_private_key_path` (Optional) - File path of the private key to enable SSH access to the controllers. You must specify one `pureuser_private_key_path` or one `pureuser_private_key`. +- `pureuser_private_key` (Optional) - Text content of the private key to enable SSH access to the controllers. You must specify one `pureuser_private_key_path` or one `pureuser_private_key`. - `replication_subnet` (Required) - Subnet containing the replication interfaces on the array. - `resource_group_name` (Required) - Name of the resource group in which to deploy the managed application. -- `system_resource_group` (Required) - Resource group name for the virtual network containing the system interfaces. - `system_subnet` (Required) - Subnet for the system interface of the Array. - `tags` (Optional) - A list of tags to apply to all resources in the managed application. -- `virtual_network` (Required) - Virtual network that contains the network interfaces of the array. +- `virtual_network_id` (Required) - The ID of the virtual network that contains the network interfaces of the array. - `zone` (Required) - The Availability Zone within the deployment location. @@ -97,6 +133,15 @@ can approve JIT access requests as the maximum duration of JIT access requests. - `groups` (Required) - A list of Azure Active Directory groups that enable their users to approve JIT access requests. + + +### Nested Schema for `plan` + +- `name` (Required) - Specifies the name of the plan from the marketplace. +- `product` (Required) - Specifies the product of the plan from the marketplace. +- `publisher` (Required) - Specifies the publisher of the plan. +- `version` (Required) - Specifies the version of the plan from the marketplace. + ## Attribute Reference - `application_name` - The name of the managed application. diff --git a/examples/aws_array/terraform.tfvars b/examples/aws_array/terraform.tfvars index 811ae4e..09a7016 100644 --- a/examples/aws_array/terraform.tfvars +++ b/examples/aws_array/terraform.tfvars @@ -8,6 +8,7 @@ alert_recipients = ["admin1@example-company.org", "admin2@example-company purity_instance_type = "V10AR1" license_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" key_name = "cbs-key" +key_file_path = "path/to/cbs-key" rep_security_group = "sg-xxxx" iscsi_security_group = "sg-xxxx" mgmt_security_group = "sg-xxxx" diff --git a/examples/aws_array/variables.tf b/examples/aws_array/variables.tf index 3f25d96..a4b7c12 100644 --- a/examples/aws_array/variables.tf +++ b/examples/aws_array/variables.tf @@ -45,6 +45,10 @@ variable "key_name" { type = string } +variable "key_file_path" { + type = string +} + variable "rep_security_group" { type = string } diff --git a/examples/azure_array/main.tf b/examples/azure_array/main.tf index 2a4d3a1..0a47228 100644 --- a/examples/azure_array/main.tf +++ b/examples/azure_array/main.tf @@ -20,18 +20,16 @@ resource "cbs_array_azure" "azure_instance" { alert_recipients = var.alert_recipients array_model = var.array_model zone = var.zone - virtual_network = var.virtual_network + virtual_network_id = var.virtual_network_id + + key_vault_id = var.key_vault_id + pureuser_private_key_path = var.key_file_path management_subnet = var.management_subnet system_subnet = var.system_subnet iscsi_subnet = var.iscsi_subnet replication_subnet = var.replication_subnet - management_resource_group = var.management_resource_group - system_resource_group = var.system_resource_group - iscsi_resource_group = var.iscsi_resource_group - replication_resource_group = var.replication_resource_group - jit_approval { approvers { groups = var.groups diff --git a/examples/azure_array/terraform.tfvars b/examples/azure_array/terraform.tfvars index a54bef7..1d5ad33 100644 --- a/examples/azure_array/terraform.tfvars +++ b/examples/azure_array/terraform.tfvars @@ -7,13 +7,10 @@ log_sender_domain = "example-company.org" alert_recipients = ["admin1@example-company.org", "admin2@example-company.org"] array_model = "V10MUR1" zone = 1 -virtual_network = "VN-xxxxxxxxxxxxxx" +virtual_network_id = "/subscriptions/xxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxx/providers/Microsoft.Network/virtualNetworks/xxxxxxxxxxxxxx" +key_vault_id = "/subscriptions/xxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxx/providers/Microsoft.KeyVault/vaults/xxxxxxxxxxxxxx" management_subnet = "SN-xxxxxxxxxxxxxx" system_subnet = "SN-xxxxxxxxxxxxxx" iscsi_subnet = "SN-xxxxxxxxxxxxxx" replication_subnet = "SN-xxxxxxxxxxxxxx" -management_resource_group = "management_resource_xxxx" -system_resource_group = "system_resource_xxxx" -iscsi_resource_group = "iscsi_resource_xxxx" -replication_resource_group = "replication_resource_xxxx" groups = ["group_xxxx"] \ No newline at end of file diff --git a/examples/azure_array/variables.tf b/examples/azure_array/variables.tf index 972932f..c87c3a8 100644 --- a/examples/azure_array/variables.tf +++ b/examples/azure_array/variables.tf @@ -6,7 +6,7 @@ variable "resource_group_name" { type = string } -variable "virtual_network" { +variable "virtual_network_id" { type = string } @@ -46,26 +46,18 @@ variable "replication_subnet" { type = string } -variable "management_resource_group" { - type = string -} - -variable "system_resource_group" { - type = string +variable "zone" { + type = number } -variable "iscsi_resource_group" { +variable "array_name" { type = string } -variable "replication_resource_group" { +variable "key_vault_id" { type = string } -variable "zone" { - type = number -} - -variable "array_name" { +variable "key_file_path" { type = string } \ No newline at end of file diff --git a/go.mod b/go.mod index c532aa9..4c64664 100644 --- a/go.mod +++ b/go.mod @@ -3,41 +3,51 @@ module github.dev.purestorage.com/FlashArray/terraform-provider-cbs go 1.14 require ( - github.com/Azure/azure-sdk-for-go v54.2.0+incompatible - github.com/Azure/go-autorest/autorest v0.11.18 + github.com/Azure/azure-sdk-for-go v55.6.0+incompatible + github.com/Azure/go-autorest/autorest v0.11.19 + github.com/Azure/go-autorest/autorest/adal v0.9.14 // indirect github.com/Azure/go-autorest/autorest/to v0.4.0 github.com/agext/levenshtein v1.2.3 // indirect - github.com/aws/aws-sdk-go v1.38.39 + github.com/apparentlymart/go-cidr v1.1.0 // indirect + github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect + github.com/aws/aws-sdk-go v1.40.0 github.com/deckarep/golang-set v1.7.1 - github.com/fatih/color v1.10.0 // indirect + github.com/dgrijalva/jwt-go v3.2.0+incompatible + github.com/fatih/color v1.12.0 // indirect github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect - github.com/go-openapi/errors v0.19.8 - github.com/go-openapi/runtime v0.19.26 - github.com/go-openapi/strfmt v0.20.0 - github.com/go-openapi/swag v0.19.9 - github.com/go-openapi/validate v0.19.10 + github.com/go-openapi/analysis v0.20.1 // indirect + github.com/go-openapi/errors v0.20.0 + github.com/go-openapi/jsonreference v0.19.6 // indirect + github.com/go-openapi/runtime v0.19.29 + github.com/go-openapi/strfmt v0.20.1 + github.com/go-openapi/swag v0.19.15 + github.com/go-openapi/validate v0.20.2 + github.com/gofrs/uuid v4.0.0+incompatible // indirect github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-azure-helpers v0.16.0 - github.com/hashicorp/go-hclog v0.16.1 // indirect + github.com/hashicorp/go-azure-helpers v0.16.5 + github.com/hashicorp/go-hclog v0.16.2 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.4.1 // indirect + github.com/hashicorp/go-plugin v1.4.2 // indirect github.com/hashicorp/go-uuid v1.0.2 // indirect + github.com/hashicorp/go-version v1.3.0 github.com/hashicorp/hcl/v2 v2.10.0 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.6.1 - github.com/hashicorp/yamux v0.0.0-20210316155119-a95892c5f864 // indirect - github.com/iancoleman/strcase v0.1.3 + github.com/hashicorp/terraform-plugin-go v0.3.1 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 + github.com/hashicorp/yamux v0.0.0-20210707203944-259a57b3608c // indirect + github.com/iancoleman/strcase v0.2.0 + github.com/mailru/easyjson v0.7.7 // indirect + github.com/mattn/go-isatty v0.0.13 // indirect github.com/mattn/go-sqlite3 v1.14.7 - github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect - github.com/mitchellh/mapstructure v1.4.1 // indirect github.com/oklog/run v1.1.0 // indirect github.com/stretchr/testify v1.7.0 - github.com/zclconf/go-cty v1.8.3 // indirect - golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a // indirect - golang.org/x/net v0.0.0-20210510120150-4163338589ed // indirect - golang.org/x/sys v0.0.0-20210511113859-b0526f3d8744 // indirect + github.com/terraform-providers/terraform-provider-azurerm v1.44.0 + github.com/zclconf/go-cty v1.9.0 // indirect + go.mongodb.org/mongo-driver v1.6.0 // indirect + golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 + golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect + google.golang.org/api v0.34.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20210510173355-fb37daa5cd7a // indirect - google.golang.org/grpc v1.37.1 // indirect + google.golang.org/genproto v0.0.0-20210714021259-044028024a4f // indirect ) diff --git a/go.sum b/go.sum index 9a5f62a..d64011a 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,10 @@ cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6 cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.61.0 h1:NLQf5e1OMspfNT1RAHOB3ublr1TW3YTXO8OiWwVjK2U= cloud.google.com/go v0.61.0/go.mod h1:XukKJg4Y7QsUu0Hxg3qQKUWR4VuWivmyMK2+rUyxAqw= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0 h1:Dg9iHVQfrhq82rUNu9ZxUDrJLaxFUe/HlCVaLyRruq8= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -31,56 +33,91 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0 h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +contrib.go.opencensus.io/exporter/ocagent v0.5.0/go.mod h1:ImxhfLRpxoYiSq891pBrLVhN+qmP8BTVvdH2YLs7Gl0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/Azure/azure-sdk-for-go v21.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go v32.5.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go v35.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go v38.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v51.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v54.2.0+incompatible h1:LYKBbC9PubUJnrkLZttkPmtOPNEQDhtzTjw114FJKBQ= -github.com/Azure/azure-sdk-for-go v54.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go v55.6.0+incompatible h1:SDeTdsn7/wiCDVLiKR1VFDCPURKKEg59bP7ewi7kUJc= +github.com/Azure/azure-sdk-for-go v55.6.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/go-autorest v10.15.4+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= +github.com/Azure/go-autorest v13.0.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.11.18 h1:90Y4srNYrwOtAgVo3ndrQkTYn6kf1Eg/AjTFJ8Is2aM= +github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= +github.com/Azure/go-autorest/autorest v0.9.2/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= +github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0= github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= +github.com/Azure/go-autorest/autorest v0.11.19 h1:7/IqD2fEYVha1EPeaiytVKhzmPV223pfkRIQUGOK2IE= +github.com/Azure/go-autorest/autorest v0.11.19/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= +github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= +github.com/Azure/go-autorest/autorest/adal v0.6.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= +github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= +github.com/Azure/go-autorest/autorest/adal v0.8.1-0.20191028180845-3492b2aff503/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= -github.com/Azure/go-autorest/autorest/adal v0.9.13 h1:Mp5hbtOePIzM8pJVRa3YLrWWmZtoxRXqUEzCfJt3+/Q= github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= +github.com/Azure/go-autorest/autorest/adal v0.9.14 h1:G8hexQdV5D4khOXrWG2YuLCFKhWYmWD8bHYaXN5ophk= +github.com/Azure/go-autorest/autorest/adal v0.9.14/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= +github.com/Azure/go-autorest/autorest/azure/auth v0.3.0/go.mod h1:CI4BQYBct8NS7BXNBBX+RchsFsUu5+oz+OSyR/ZIi7U= +github.com/Azure/go-autorest/autorest/azure/cli v0.2.0/go.mod h1:WWTbGPvkAg3I4ms2j2s+Zr5xCGwGqTQh+6M2ZqOczkE= +github.com/Azure/go-autorest/autorest/azure/cli v0.3.0/go.mod h1:rNYMNAefZMRowqCV0cVhr/YDW5dD7afFq9nXAXL4ykE= github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 h1:dMOmEJfkLKW/7JsokJqkyoYSgmR08hi9KrhjZb+JALY= github.com/Azure/go-autorest/autorest/azure/cli v0.4.2/go.mod h1:7qkJkT+j6b+hIpzMOwPChJhTqS8VbsqqgULzMNRugoM= +github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= +github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= +github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk= github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= +github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA= github.com/Azure/go-autorest/autorest/to v0.4.0 h1:oXVqrxakqqV1UZdSazDOPOLvOIz+XA683u8EctwboHk= github.com/Azure/go-autorest/autorest/to v0.4.0/go.mod h1:fE8iZBn7LQR7zH/9XU2NcPR4o9jEImooCeWJcYV/zLE= +github.com/Azure/go-autorest/autorest/validation v0.2.0/go.mod h1:3EEqHnBxQGHXRYq3HT1WyXAvT7LLY3tl70hw6tQIbjI= github.com/Azure/go-autorest/autorest/validation v0.3.1 h1:AgyqjAd94fwNAoTjl/WQXg4VvFeRFpO+UhNyRXqF1ac= github.com/Azure/go-autorest/autorest/validation v0.3.1/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E= +github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+ZtXWSmf4Tg= github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= +github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= +github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= github.com/Microsoft/go-winio v0.4.16 h1:FtSW/jqD+l4ba5iPBj9CODVtgfYAD8w2wS923g/cFDk= github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= +github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 h1:YoJbenK9C67SkzkDfmQuVln04ygHj3vjZfd9FL+GmQQ= +github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo= github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= +github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod h1:WPjqKcmVOxf0XSf3YxCJs6N6AOSrOx3obionmG7T0y0= -github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs= -github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= +github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= +github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= github.com/andybalholm/crlf v0.0.0-20171020200849-670099aa064f/go.mod h1:k8feO4+kXDxro6ErPXBRTJ/ro2mf0SsFG8s7doP9kJE= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= -github.com/apparentlymart/go-cidr v1.0.1 h1:NmIwLZ/KdsjIUlhf+/Np40atNXm/+lZ5txfTJ/SpF+U= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/apparentlymart/go-cidr v1.0.1/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc= +github.com/apparentlymart/go-cidr v1.1.0 h1:2mAhrMoF+nhXqxTzSZMUzDHkLjmIHC+Zzn4tdgBZjnU= +github.com/apparentlymart/go-cidr v1.1.0/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc= github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 h1:MzVXffFUye+ZcSR6opIgz9Co7WcDx6ZcY+RjfFHoA0I= github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= @@ -89,23 +126,30 @@ github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/ github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= +github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= +github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM= +github.com/aws/aws-sdk-go v1.19.39/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.25.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.34.28/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48= -github.com/aws/aws-sdk-go v1.38.39 h1:n4jkKlE3DfZBN800njuHmOEQlDht4aO/kE2VNk0/6T4= -github.com/aws/aws-sdk-go v1.38.39/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= +github.com/aws/aws-sdk-go v1.40.0 h1:nTCSQAeahNt15SOYxuDwJ8XvMhOU3Uqe7eJUPv7+Vsk= +github.com/aws/aws-sdk-go v1.40.0/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas= github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bsm/go-vlq v0.0.0-20150828105119-ec6e8d4f5f4e/go.mod h1:N+BjUcTjSxc2mtRGSCPsat1kze3CUtvJN3/jTXlp29k= +github.com/btubbs/datetime v0.1.0/go.mod h1:n2BZ/2ltnRzNiz27aE3wUb2onNttQdC+WFxAoks5jJM= +github.com/census-instrumentation/opencensus-proto v0.2.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -114,12 +158,20 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/deckarep/golang-set v1.7.1 h1:SCQV0S6gTtp6itiFrTqI+pfmJ4LN85S1YzhDf9rTHJQ= github.com/deckarep/golang-set v1.7.1/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= +github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dimchansky/utfbom v1.0.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U= github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= @@ -131,29 +183,31 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg= -github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/fatih/color v1.12.0 h1:mRhaKNwANqRgUBGKmnI5ZxEk7QXmjQeCcuYFMX2bfcc= +github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible h1:7ZaBxOI7TMoYBfyA3cQHErNNyAWIKUMIwqxEtgHOs5c= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= -github.com/go-git/go-billy/v5 v5.0.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= -github.com/go-git/go-billy/v5 v5.1.0 h1:4pl5BV4o7ZG/lterP4S6WzJ6xr49Ba5ET9ygheTYahk= -github.com/go-git/go-billy/v5 v5.1.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= -github.com/go-git/go-git-fixtures/v4 v4.0.2-0.20200613231340-f56387b50c12 h1:PbKy9zOy4aAKrJ5pibIRpVO2BXnK1Tlcg+caKI7Ox5M= -github.com/go-git/go-git-fixtures/v4 v4.0.2-0.20200613231340-f56387b50c12/go.mod h1:m+ICp2rF3jDhFgEZ/8yziagdT1C+ZpZcrJjappBCDSw= -github.com/go-git/go-git/v5 v5.3.0 h1:8WKMtJR2j8RntEXR/uvTKagfEt4GYlwQ7mntE4+0GWc= -github.com/go-git/go-git/v5 v5.3.0/go.mod h1:xdX4bWJ48aOrdhnl2XqHYstHbbp6+LFS4r4X+lNVprw= +github.com/go-git/go-billy/v5 v5.2.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= +github.com/go-git/go-billy/v5 v5.3.1 h1:CPiOUAzKtMRvolEKw+bG1PLRpT7D3LIs3/3ey4Aiu34= +github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= +github.com/go-git/go-git-fixtures/v4 v4.2.1 h1:n9gGL1Ct/yIw+nfsfr8s4+sbhT+Ncu2SubfXjIWgci8= +github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6vMiRR/nnVTBtavnB0= +github.com/go-git/go-git/v5 v5.4.2 h1:BXyZu9t0VkbiHtqrsvdq39UDhGJTl1h55VW6CSC4aY4= +github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -163,45 +217,64 @@ github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpR github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= github.com/go-openapi/analysis v0.19.4/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= -github.com/go-openapi/analysis v0.19.10 h1:5BHISBAXOc/aJK25irLZnx2D3s6WyYaY9D4gmuz9fdE= github.com/go-openapi/analysis v0.19.10/go.mod h1:qmhS3VNFxBlquFJ0RGoDtylO9y4pgTAUNE9AEEMdlJQ= +github.com/go-openapi/analysis v0.19.16/go.mod h1:GLInF007N83Ad3m8a/CbQ5TPzdnGT7workfHwuVjNVk= +github.com/go-openapi/analysis v0.20.0/go.mod h1:BMchjvaHDykmRMsK40iPtvyOfFdMMxlOmQr9FBZk+Og= +github.com/go-openapi/analysis v0.20.1 h1:zdVbw8yoD4SWZeq+cWdGgquaB0W4VrsJvDJHJND/Ktc= +github.com/go-openapi/analysis v0.20.1/go.mod h1:BMchjvaHDykmRMsK40iPtvyOfFdMMxlOmQr9FBZk+Og= github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= github.com/go-openapi/errors v0.19.3/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= github.com/go-openapi/errors v0.19.6/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.19.8 h1:doM+tQdZbUm9gydV9yR+iQNmztbjj7I3sW4sIcAwIzc= +github.com/go-openapi/errors v0.19.7/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= +github.com/go-openapi/errors v0.19.9/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= +github.com/go-openapi/errors v0.20.0 h1:Sxpo9PjEHDzhs3FbnGNonvDgWcMW2U7wGTcDDSFSceM= +github.com/go-openapi/errors v0.20.0/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= +github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= +github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= +github.com/go-openapi/jsonreference v0.19.6 h1:UBIxjkht+AWIgYzCDSv2GN+E/togfwXUJFRTWhl2Jjs= +github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= github.com/go-openapi/loads v0.19.3/go.mod h1:YVfqhUCdahYwR3f3iiwQLhicVRvLlU/WO5WPaZvcvSI= -github.com/go-openapi/loads v0.19.5 h1:jZVYWawIQiA1NBnHla28ktg6hrcfTHsCE+3QLVRBIls= github.com/go-openapi/loads v0.19.5/go.mod h1:dswLCAdonkRufe/gSUC3gN8nTSaB9uaS2es0x5/IbjY= +github.com/go-openapi/loads v0.19.6/go.mod h1:brCsvE6j8mnbmGBh103PT/QLHfbyDxA4hsKvYBNEGVc= +github.com/go-openapi/loads v0.19.7/go.mod h1:brCsvE6j8mnbmGBh103PT/QLHfbyDxA4hsKvYBNEGVc= +github.com/go-openapi/loads v0.20.0/go.mod h1:2LhKquiE513rN5xC6Aan6lYOSddlL8Mp20AW9kpviM4= +github.com/go-openapi/loads v0.20.2 h1:z5p5Xf5wujMxS1y8aP+vxwW5qYT2zdJBbXKmQUG3lcc= +github.com/go-openapi/loads v0.20.2/go.mod h1:hTVUotJ+UonAMMZsvakEgmWKgtulweO9vYP2bQYKA/o= github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= github.com/go-openapi/runtime v0.19.15/go.mod h1:dhGWCTKRXlAfGnQG0ONViOZpjfg0m2gUt9nTQPQZuoo= -github.com/go-openapi/runtime v0.19.26 h1:K/6PoVNj5WJXUnMk+VEbELeXjtBkCS1UxTDa04tdXE0= -github.com/go-openapi/runtime v0.19.26/go.mod h1:BvrQtn6iVb2QmiVXRsFAm6ZCAZBpbVKFfN6QWCp582M= +github.com/go-openapi/runtime v0.19.16/go.mod h1:5P9104EJgYcizotuXhEuUrzVc+j1RiSjahULvYmlv98= +github.com/go-openapi/runtime v0.19.24/go.mod h1:Lm9YGCeecBnUUkFTxPC4s1+lwrkJ0pthx8YvyjCfkgk= +github.com/go-openapi/runtime v0.19.29 h1:5IIvCaIDbxetN674vX9eOxvoZ9mYGQ16fV1Q0VSG+NA= +github.com/go-openapi/runtime v0.19.29/go.mod h1:BvrQtn6iVb2QmiVXRsFAm6ZCAZBpbVKFfN6QWCp582M= github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= github.com/go-openapi/spec v0.19.6/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/spec v0.19.8 h1:qAdZLh1r6QF/hI/gTq+TJTvsQUodZsM7KLqkAJdiJNg= github.com/go-openapi/spec v0.19.8/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= +github.com/go-openapi/spec v0.19.15/go.mod h1:+81FIL1JwC5P3/Iuuozq3pPE9dXdIEGxFutcFKaVbmU= +github.com/go-openapi/spec v0.20.0/go.mod h1:+81FIL1JwC5P3/Iuuozq3pPE9dXdIEGxFutcFKaVbmU= +github.com/go-openapi/spec v0.20.1/go.mod h1:93x7oh+d+FQsmsieroS4cmR3u0p/ywH649a3qwC9OsQ= +github.com/go-openapi/spec v0.20.3 h1:uH9RQ6vdyPSs2pSy9fL8QPspDF2AMIMPtmK5coSSjtQ= +github.com/go-openapi/spec v0.20.3/go.mod h1:gG4F8wdEDN+YPBMVnzE85Rbhf+Th2DTvA9nFPQ5AYEg= github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= @@ -209,20 +282,30 @@ github.com/go-openapi/strfmt v0.19.2/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6 github.com/go-openapi/strfmt v0.19.3/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= github.com/go-openapi/strfmt v0.19.4/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= github.com/go-openapi/strfmt v0.19.5/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= -github.com/go-openapi/strfmt v0.20.0 h1:l2omNtmNbMc39IGptl9BuXBEKcZfS8zjrTsPKTiJiDM= +github.com/go-openapi/strfmt v0.19.11/go.mod h1:UukAYgTaQfqJuAFlNxxMWNvMYiwiXtLsF2VwmoFtbtc= github.com/go-openapi/strfmt v0.20.0/go.mod h1:UukAYgTaQfqJuAFlNxxMWNvMYiwiXtLsF2VwmoFtbtc= +github.com/go-openapi/strfmt v0.20.1 h1:1VgxvehFne1mbChGeCmZ5pc0LxUf6yaACVSIYAR91Xc= +github.com/go-openapi/strfmt v0.20.1/go.mod h1:43urheQI9dNtE5lTZQfuFJvjYJKPrxicATpEfZwHUNk= github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.7/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/swag v0.19.9 h1:1IxuqvBUU3S2Bi4YC7tlP9SJF1gVpCvqN0T2Qof4azE= github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= +github.com/go-openapi/swag v0.19.12/go.mod h1:eFdyEBkTdoAf/9RXBvj4cr1nH7GD8Kzo5HTt47gr72M= +github.com/go-openapi/swag v0.19.13/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/go-openapi/swag v0.19.15 h1:D2NRCBzS9/pEY3gP9Nl8aDqGUcPFrwG2p+CNFrLyrCM= +github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= github.com/go-openapi/validate v0.19.3/go.mod h1:90Vh6jjkTn+OT1Eefm0ZixWNFjhtOH7vS9k0lo6zwJo= -github.com/go-openapi/validate v0.19.10 h1:tG3SZ5DC5KF4cyt7nqLVcQXGj5A7mpaYkAcNPlDK+Yk= github.com/go-openapi/validate v0.19.10/go.mod h1:RKEZTUWDkxKQxN2jDT7ZnZi2bhZlbNMAuKvKB+IaGx8= +github.com/go-openapi/validate v0.19.12/go.mod h1:Rzou8hA/CBw8donlS6WNEUQupNvUZ0waH08tGe6kAQ4= +github.com/go-openapi/validate v0.19.15/go.mod h1:tbn/fdOwYHgrhPBzidZfJC2MIVvs9GA7monOmWBbeCI= +github.com/go-openapi/validate v0.20.1/go.mod h1:b60iJT+xNNLfaQJUqLI7946tYiFEOuE9E4k54HpKcJ0= +github.com/go-openapi/validate v0.20.2 h1:AhqDegYV3J3iQkMPJSXkvzymHKMTw0BST3RK3hTT4ts= +github.com/go-openapi/validate v0.20.2/go.mod h1:e7OJoKNgd0twXZwIn0A43tHbvIcr/rZIVCbJBpTUoY0= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= @@ -252,6 +335,8 @@ github.com/gobuffalo/packd v0.1.0/go.mod h1:M2Juc+hhDXf/PnmBANFCqx4DM3wRbgDvnVWe github.com/gobuffalo/packr/v2 v2.0.9/go.mod h1:emmyGweYTm6Kdper+iywB6YK5YzuKchGtJQZ0Odn4pQ= github.com/gobuffalo/packr/v2 v2.2.0/go.mod h1:CaAwI0GPIAv+5wKLtv8Afwl+Cm78K/I/VCm/3ptBN+0= github.com/gobuffalo/syncx v0.0.0-20190224160051-33c29581e754/go.mod h1:HhnNqWY95UYwwW3uSASeV7vtgYkT2t16hJgV3AEPUpw= +github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw= +github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -263,6 +348,7 @@ github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFU github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -277,6 +363,7 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -289,9 +376,11 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0 h1:pMen7vLs8nvgEYhywH3KDWJIJTeEr2ULsVWHWYHQyBs= @@ -311,32 +400,43 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-azure-helpers v0.16.0 h1:f8LqrmC7K545DSk9EvymtuiFZ8tlTC7+XkvmAZmUeiM= -github.com/hashicorp/go-azure-helpers v0.16.0/go.mod h1:kR7+sTDEb9TOp/O80ss1UEJg1t4/BHLD/U8wHLS4BGQ= +github.com/hashicorp/go-azure-helpers v0.4.1/go.mod h1:lu62V//auUow6k0IykxLK2DCNW8qTmpm8KqhYVWattA= +github.com/hashicorp/go-azure-helpers v0.7.0/go.mod h1:3xdjhbL7qs69rnwxA0UENOzkPJjtTFIRb5aRyrEpbCU= +github.com/hashicorp/go-azure-helpers v0.10.0/go.mod h1:YuAtHxm2v74s+IjQwUG88dHBJPd5jL+cXr5BGVzSKhE= +github.com/hashicorp/go-azure-helpers v0.16.5 h1:rhcpg2Nk1Li6173KTHNnj/i+MGXYNjvYKIdNlg6q3RU= +github.com/hashicorp/go-azure-helpers v0.16.5/go.mod h1:kR7+sTDEb9TOp/O80ss1UEJg1t4/BHLD/U8wHLS4BGQ= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= +github.com/hashicorp/go-getter v1.4.0/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY= github.com/hashicorp/go-getter v1.5.3 h1:NF5+zOlQegim+w/EUhSLh6QhXHmZMEeHLQzllkQ3ROU= github.com/hashicorp/go-getter v1.5.3/go.mod h1:BrrV/1clo8cCYu6mxvboYg+KutTiFnXjMEgDD8+i7ZI= github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= +github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.15.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.16.1 h1:IVQwpTGNRRIHafnTs2dQLIk4ENtneRIEEJWOVDqz99o= -github.com/hashicorp/go-hclog v0.16.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v0.16.2 h1:K4ev2ib4LdQETX5cSZBG0DVLk1jwGqSPXBjdah3veNs= +github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-multierror v0.0.0-20180717150148-3d5d8f294aa0/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= github.com/hashicorp/go-plugin v1.3.0/go.mod h1:F9eH4LrE/ZsRdbwhfjs9k9HoDUwAHnYtXdgmf1AVNs0= -github.com/hashicorp/go-plugin v1.4.0/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= -github.com/hashicorp/go-plugin v1.4.1 h1:6UltRQlLN9iZO513VveELp5xyaFxVD2+1OVylE+2E+w= github.com/hashicorp/go-plugin v1.4.1/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= +github.com/hashicorp/go-plugin v1.4.2 h1:yFvG3ufXXpqiMiZx9HLcaK3XbIqQ1WJFR/F1a2CuVw0= +github.com/hashicorp/go-plugin v1.4.2/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= @@ -344,31 +444,46 @@ github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw= github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/hcl/v2 v2.0.0/go.mod h1:oVVDG71tEinNGYCxinCYadcmKU9bglqW9pV3txagJ90= github.com/hashicorp/hcl/v2 v2.3.0/go.mod h1:d+FwDBbOLvpAM3Z6J7gPj/VoAGkNe/gm352ZhjJ/Zv8= github.com/hashicorp/hcl/v2 v2.10.0 h1:1S1UnuhDGlv3gRFV4+0EdwB+znNP5HmcGbIqwnSCByg= github.com/hashicorp/hcl/v2 v2.10.0/go.mod h1:FwWsfWEjyV/CMj8s/gqAuiviY72rJ1/oayI9WftqcKg= +github.com/hashicorp/hcl2 v0.0.0-20190821123243-0c888d1241f6/go.mod h1:Cxv+IJLuBiEhQ7pBYGEuORa0nr4U994pE8mYLuFd7v0= +github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/terraform-exec v0.13.3 h1:R6L2mNpDGSEqtLrSONN8Xth0xYwNrnEVzDz6LF/oJPk= -github.com/hashicorp/terraform-exec v0.13.3/go.mod h1:SSg6lbUsVB3DmFyCPjBPklqf6EYGX0TlQ6QTxOlikDU= -github.com/hashicorp/terraform-json v0.10.0 h1:9syPD/Y5t+3uFjG8AiWVPu1bklJD8QB8iTCaJASc8oQ= -github.com/hashicorp/terraform-json v0.10.0/go.mod h1:3defM4kkMfttwiE7VakJDwCd4R+umhSQnvJwORXbprE= -github.com/hashicorp/terraform-plugin-go v0.3.0 h1:AJqYzP52JFYl9NABRI7smXI1pNjgR5Q/y2WyVJ/BOZA= +github.com/hashicorp/terraform-config-inspect v0.0.0-20190821133035-82a99dc22ef4/go.mod h1:JDmizlhaP5P0rYTTZB0reDMefAiJyfWPEtugV4in1oI= +github.com/hashicorp/terraform-config-inspect v0.0.0-20191115094559-17f92b0546e8/go.mod h1:p+ivJws3dpqbp1iP84+npOyAmTTOLMgCzrXd3GSdn/A= +github.com/hashicorp/terraform-exec v0.14.0 h1:UQoUcxKTZZXhyyK68Cwn4mApT4mnFPmEXPiqaHL9r+w= +github.com/hashicorp/terraform-exec v0.14.0/go.mod h1:qrAASDq28KZiMPDnQ02sFS9udcqEkRly002EA2izXTA= +github.com/hashicorp/terraform-json v0.12.0 h1:8czPgEEWWPROStjkWPUnTQDXmpmZPlkQAwYYLETaTvw= +github.com/hashicorp/terraform-json v0.12.0/go.mod h1:pmbq9o4EuL43db5+0ogX10Yofv1nozM+wskr/bGFJpI= github.com/hashicorp/terraform-plugin-go v0.3.0/go.mod h1:dFHsQMaTLpON2gWhVWT96fvtlc/MF1vSy3OdMhWBzdM= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.6.1 h1:OZ+Q7irJBDhb71XzMSPGJvTIW101sOmbDg5i5qV1odY= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.6.1/go.mod h1:72j8cKfs9IirGhPMXJJWLTvRUK4zATtrCOvs2avDlo8= +github.com/hashicorp/terraform-plugin-go v0.3.1 h1:ML+THFcqpdR049gqrbEFDFo99va2Wqw9g4XDPy51euU= +github.com/hashicorp/terraform-plugin-go v0.3.1/go.mod h1:dFHsQMaTLpON2gWhVWT96fvtlc/MF1vSy3OdMhWBzdM= +github.com/hashicorp/terraform-plugin-sdk v1.1.0/go.mod h1:NuwtLpEpPsFaKJPJNGtMcn9vlhe6Ofe+Y6NqXhJgV2M= +github.com/hashicorp/terraform-plugin-sdk v1.6.0 h1:Um5hsAL7kKsfTHtan8lybY/d03F2bHu4fjRB1H6Ag4U= +github.com/hashicorp/terraform-plugin-sdk v1.6.0/go.mod h1:H5QLx/uhwfxBZ59Bc5SqT19M4i+fYt7LZjHTpbLZiAg= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 h1:SuI59MqNjYDrL7EfqHX9V6P/24isgqYx/FdglwVs9bg= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0/go.mod h1:grseeRo9g3yNkYW09iFlV8LG78jTa1ssBgouogQg/RU= +github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/hashicorp/yamux v0.0.0-20210316155119-a95892c5f864 h1:Y4V+SFe7d3iH+9pJCoeWIOS5/xBJIFsltS7E+KJSsJY= -github.com/hashicorp/yamux v0.0.0-20210316155119-a95892c5f864/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hashicorp/yamux v0.0.0-20210707203944-259a57b3608c h1:nqkErwUGfpZZMqj29WZ9U/wz2OpJVDuiokLhE/3Y7IQ= +github.com/hashicorp/yamux v0.0.0-20210707203944-259a57b3608c/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/iancoleman/strcase v0.1.3 h1:dJBk1m2/qjL1twPLf68JND55vvivMupZ4wIzE8CTdBw= -github.com/iancoleman/strcase v0.1.3/go.mod h1:SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE= +github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= +github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= @@ -376,6 +491,7 @@ github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE= github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= @@ -386,6 +502,8 @@ github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHW github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= @@ -412,28 +530,38 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.1 h1:mdxE1MF9o53iCb2Ghj1VfWvh7ZOwHpnVG/xwXrV90U8= github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= +github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2/go.mod h1:Ld9puTsIW75CHf65OeIOkyKbteujpZVXDpWK6YGZbxE= github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= +github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A= +github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= -github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.13 h1:qdl+GuBjcsKKDco5BsxPJlId98mSWNKqYA+Co0SC1yA= +github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-sqlite3 v1.14.7 h1:fxWBnXkxfM6sRiuH3bqJ4CfzZojMOLVc0UTsTglEghA= github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/cli v1.1.2/go.mod h1:6iaV0fGdElS6dPBx0EApTxHrcWvmJphyh2n8YBLPPZ4= +github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= @@ -452,6 +580,7 @@ github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTS github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.4.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= @@ -465,9 +594,15 @@ github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4 github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= +github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo= github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= @@ -478,20 +613,34 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DKN0g6uH7E= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= +github.com/satori/uuid v0.0.0-20160927100844-b061729afc07/go.mod h1:B8HLsPLik/YNn6KKWVMDJ8nzCL8RP5WyfsnmvnAEwIU= +github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= @@ -502,61 +651,91 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/terraform-providers/terraform-provider-azuread v0.6.1-0.20191007035844-361c0a206ad4/go.mod h1:nIkEKBYPFXH/yU7mY7lK5Om6Krga/aMdD/B/OEJpWzc= +github.com/terraform-providers/terraform-provider-azurerm v1.44.0 h1:9zehlvIyibEx0dtsZJdaeOZr4MkBhp0Ibhd4JssK3I4= +github.com/terraform-providers/terraform-provider-azurerm v1.44.0/go.mod h1:GncKl1cgz6jPcb9gvVP8agaE5YI1IGd04bwmKW1+13Q= github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= +github.com/tombuildsstuff/giovanni v0.7.1/go.mod h1:Xu/XU+DiRrKTDoCnJNGuh9ysD0eJyi/zU/naFh2aN9I= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= github.com/ulikunitz/xz v0.5.8 h1:ERv8V6GKqVi23rgu5cj9pVfVzJbOqAY2Ntl88O6c2nQ= github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= +github.com/vmihailenco/msgpack v4.0.1+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4= github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= github.com/xanzy/ssh-agent v0.3.0 h1:wUMzuKtKilRgBAD1sUb8gOwwRr2FGoBVumcjoOACClI= github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0= +github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= +github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= +github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= +github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= github.com/zclconf/go-cty v1.8.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= -github.com/zclconf/go-cty v1.8.2/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= -github.com/zclconf/go-cty v1.8.3 h1:48gwZXrdSADU2UW9eZKHprxAI7APZGW9XmExpJpSjT0= -github.com/zclconf/go-cty v1.8.3/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= +github.com/zclconf/go-cty v1.8.4/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= +github.com/zclconf/go-cty v1.9.0 h1:IgJxw5b4LPXCPeqFjjhLaNEA8NKXMyaEUdAd399acts= +github.com/zclconf/go-cty v1.9.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= +github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0= go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.3.0/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= go.mongodb.org/mongo-driver v1.3.4/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= -go.mongodb.org/mongo-driver v1.4.3 h1:moga+uhicpVshTyaqY9L23E6QqwcHRUv1sqyOsoyOO8= go.mongodb.org/mongo-driver v1.4.3/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= +go.mongodb.org/mongo-driver v1.4.4/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= +go.mongodb.org/mongo-driver v1.4.6/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= +go.mongodb.org/mongo-driver v1.5.1/go.mod h1:gRXCHX4Jo7J0IJ1oDQyUxF7jfy19UfxniMS4xxMmUqw= +go.mongodb.org/mongo-driver v1.6.0 h1:ccc26ylcoRWJQRbjU7GvqfxNzwKcoIcEL3BPuFR/pJ0= +go.mongodb.org/mongo-driver v1.6.0/go.mod h1:Q4oFMbo1+MSNqICAdYMlC/zSTrwCogR4R8NzkI+yfU8= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4 h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181112202954-3d3f9f413869/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190418165655-df01cb2cc480/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190506204251-e1dfcc566284/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a h1:kr2P4QFmQr29mSLA43kwrOcgcReGTfbE9N577tCTuBc= -golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 h1:/UOmuWzQfxxo9UtlXMwuQU8CMgg1eZXqTRwkSQJWKOI= +golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -579,8 +758,8 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 h1:2M3HP5CCK1Si9FQhwnzYhXdG6DXeebvUHFpre8QvbyI= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= @@ -588,26 +767,32 @@ golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190502183928-7f726cade0ab/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191009170851-d66e71096ffb/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -622,19 +807,24 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k= -golang.org/x/net v0.0.0-20210510120150-4163338589ed h1:p9UgmWI9wKpfYmgaV/IZKGdXc5qEK45tDwwwDyjS26I= -golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= +golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q= +golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 h1:ld7aEMNHoBnnDAX15v1T6z31v8HwR2A9FYOuAhWqkwc= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -644,9 +834,14 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -663,6 +858,7 @@ golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -682,15 +878,20 @@ golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210511113859-b0526f3d8744 h1:yhBbb4IRs2HS9PPlAg6DMC6mUOKexJBNsLf4Z+6En1Q= -golang.org/x/sys v0.0.0-20210511113859-b0526f3d8744/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -699,6 +900,7 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -708,6 +910,7 @@ golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -750,8 +953,12 @@ golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.1.0 h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.1.4 h1:cVngSRcfgyZCzys3KYOpCFa+4dqX/Oub9tAq00ttGVs= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -771,8 +978,10 @@ google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/ google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0 h1:BaiDisFir8O4IJxvAabCGGkQ6yCJegNQqSVoYUNAnbk= google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.34.0 h1:k40adF3uR+6x/+hO5Dh4ZFUqFp67vxvbpafFiJxl10A= +google.golang.org/api v0.34.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -805,13 +1014,19 @@ google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200711021454-869866162049/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210510173355-fb37daa5cd7a h1:tzkHckzMzgPr8SC4taTC3AldLr4+oJivSoq1xf/nhsc= -google.golang.org/genproto v0.0.0-20210510173355-fb37daa5cd7a/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210714021259-044028024a4f h1:UUQZ0BNnLgSI3v/uqq0hjdxwctexOPwnvKA5AA/Aze4= +google.golang.org/genproto v0.0.0-20210714021259-044028024a4f/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -823,10 +1038,13 @@ google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.37.1 h1:ARnQJNWxGyYJpdf/JXscNlQr/uv607ZPU9Z7ogHi+iI= -google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.39.0 h1:Klz8I9kdtkIN6EpHHUOMLCYhTn/2WAe5a0s1hcBkdTI= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -838,8 +1056,9 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -848,18 +1067,25 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -867,6 +1093,7 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +howett.net/plist v0.0.0-20181124034731-591f970eefbb/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/internal/mockdb/aws.go b/internal/mockdb/aws.go new file mode 100644 index 0000000..a2cbb40 --- /dev/null +++ b/internal/mockdb/aws.go @@ -0,0 +1,105 @@ +// +build mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + This file contains code to support on-disk persistence for mocked versions + of the cloud service calls. Persistence for mocks enables mocked tests + over multiple terraform command invocations, such as manual testing. + +*/ + +package mockdb + +import ( + "database/sql" + + "github.com/aws/aws-sdk-go/service/cloudformation" +) + +var awsGetStackStmt, awsDelStackStmt, awsSetStackStmt, awsGetHostStackStmt *sql.Stmt +var awsGetSecretStmt, awsSetSecretStmt *sql.Stmt + +func awsPrepare() { + awsSetStackStmt = dbPrepSql(awsSetStackStmtSQL) + awsGetStackStmt = dbPrepSql(awsGetStackStmtSQL) + awsDelStackStmt = dbPrepSql(awsDelStackStmtSQL) + awsGetHostStackStmt = dbPrepSql(awsGetHostStackStmtSQL) + + awsSetSecretStmt = dbPrepSql(awsSetSecretStmtSQL) + awsGetSecretStmt = dbPrepSql(awsGetSecretStmtSQL) +} + +var awsSetupStmts = []string{ + `CREATE TABLE IF NOT EXISTS awsStacks ( + "idOrName" TEXT NOT NULL PRIMARY KEY, + "ip" TEXT NOT NULL, + "data" BLOB + );`, + `CREATE TABLE IF NOT EXISTS awsSecrets ( + "secretId" TEXT NOT NULL PRIMARY KEY, + "data" BLOB + );`, +} + +const awsSetStackStmtSQL = `INSERT INTO awsStacks(idOrName, ip, data) VALUES (?, ?, ?);` + +func AWSSetStack(key string, ip string, value cloudformation.Stack) { + execStmt(awsSetStackStmt, key, ip, toBytes(value)) +} + +const awsGetStackStmtSQL = `SELECT data FROM awsStacks WHERE idOrName = ?;` + +func AWSGetStack(key string) *cloudformation.Stack { + value := cloudformation.Stack{} + if fromBytesRow(&value, awsGetStackStmt, key) != nil { + return nil + } + return &value +} + +const awsDelStackStmtSQL = `DELETE FROM awsStacks WHERE idOrName = ?;` + +func AWSDelStack(key string) { + execStmt(awsDelStackStmt, key) +} + +const awsGetHostStackStmtSQL = `SELECT data FROM awsStacks WHERE ip = ?;` + +func AWSGetHostStack(key string) *cloudformation.Stack { + value := cloudformation.Stack{} + if fromBytesRow(&value, awsGetHostStackStmt, key) != nil { + return nil + } + return &value +} + +const awsSetSecretStmtSQL = `INSERT INTO awsSecrets(secretId, data) VALUES (?, ?);` + +func AWSSetSecret(key string, value string) { + execStmt(awsSetSecretStmt, key, toBytes(value)) +} + +const awsGetSecretStmtSQL = `SELECT data FROM awsSecrets WHERE secretId = ?;` + +func AWSGetSecret(key string) *string { + var value string + if fromBytesRow(&value, awsGetSecretStmt, key) != nil { + return nil + } + return &value +} diff --git a/internal/mockdb/azure.go b/internal/mockdb/azure.go new file mode 100644 index 0000000..2a920ac --- /dev/null +++ b/internal/mockdb/azure.go @@ -0,0 +1,103 @@ +// +build mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + This file contains code to support on-disk persistence for mocked versions + of the cloud service calls. Persistence for mocks enables mocked tests + over multiple terraform command invocations, such as manual testing. + +*/ + +package mockdb + +import ( + "database/sql" + + "github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/managedapplications" +) + +var azureAppsGetStmt, azureAppsDelStmt, azureAppsSetStmt *sql.Stmt +var azureSecretGetStmt, azureSecretSetStmt, azureSecretDelStmt *sql.Stmt + +func azurePrepare() { + + azureAppsSetStmt = dbPrepSql(azureAppsSetStmtSQL) + azureAppsGetStmt = dbPrepSql(azureAppsGetStmtSQL) + azureAppsDelStmt = dbPrepSql(azureAppsDelStmtSQL) + + azureSecretSetStmt = dbPrepSql(azureSecretSetStmtSQL) + azureSecretGetStmt = dbPrepSql(azureSecretGetStmtSQL) + azureSecretDelStmt = dbPrepSql(azureSecretDelStmtSQL) +} + +var azureSetupStmts = []string{ + `CREATE TABLE IF NOT EXISTS azureApps ( + "resourceGroupName" TEXT NOT NULL, + "applicationName" TEXT NOT NULL, + "data" BLOB, + PRIMARY KEY ("resourceGroupName", "applicationName") + );`, + `CREATE TABLE IF NOT EXISTS azureSecrets ( + "key" TEXT NOT NULL PRIMARY KEY, + "data" BLOB + );`, +} + +const azureAppsSetStmtSQL = `INSERT INTO azureApps(resourceGroupName, applicationName, data) VALUES (?, ?, ?);` + +func AzureAppsSet(resourceGroupName string, applicationName string, value managedapplications.Application) { + execStmt(azureAppsSetStmt, resourceGroupName, applicationName, toBytes(value)) +} + +const azureAppsGetStmtSQL = `SELECT data FROM azureApps WHERE resourceGroupName = ? and applicationName = ?;` + +func AzureAppsGet(resourceGroupName string, applicationName string) *managedapplications.Application { + value := managedapplications.Application{} + if fromBytesRow(&value, azureAppsGetStmt, resourceGroupName, applicationName) != nil { + return nil + } + return &value +} + +const azureAppsDelStmtSQL = `DELETE FROM azureApps WHERE resourceGroupName = ? and applicationName = ?;` + +func AzureAppsDel(resourceGroupName string, applicationName string) { + execStmt(azureAppsDelStmt, resourceGroupName, applicationName) +} + +const azureSecretSetStmtSQL = `INSERT INTO azureSecrets(key, data) VALUES (?, ?);` + +func AzureSecretSet(vaultId string, secretID string, value string) { + execStmt(azureSecretSetStmt, vaultId+"-"+secretID, toBytes(value)) +} + +const azureSecretGetStmtSQL = `SELECT data FROM azureSecrets WHERE key = ?;` + +func AzureSecretGet(vaultId string, secretID string) *string { + var value string + if fromBytesRow(&value, azureSecretGetStmt, vaultId+"-"+secretID) != nil { + return nil + } + return &value +} + +const azureSecretDelStmtSQL = `DELETE FROM azureSecrets WHERE key = ?;` + +func AzureSecretDel(vaultId string, secretID string) { + execStmt(azureSecretDelStmt, vaultId+"-"+secretID) +} diff --git a/internal/mockdb/db.go b/internal/mockdb/db.go new file mode 100644 index 0000000..52778f6 --- /dev/null +++ b/internal/mockdb/db.go @@ -0,0 +1,125 @@ +// +build mock + +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + This file contains code to support on-disk persistence for mocked versions + of the cloud service calls. Persistence for mocks enables mocked tests + over multiple terraform command invocations, such as manual testing. + +*/ + +package mockdb + +import ( + "bytes" + "database/sql" + "encoding/gob" + "fmt" + "os" + "path/filepath" + + _ "github.com/mattn/go-sqlite3" +) + +var mockDb *sql.DB + +func init() { + + { + mockDbPath := os.Getenv("MOCK_DB_PATH") + err := os.MkdirAll(filepath.Dir(mockDbPath), 0755) + if err != nil { + panic(err) + } + db, err := sql.Open("sqlite3", mockDbPath) + if err != nil { + fmt.Printf("Could not open DB path:%#v err:%#v\n", mockDbPath, err) + panic(err) + } + mockDb = db + } + + for _, stmt := range awsSetupStmts { + execSQL(stmt) + } + for _, stmt := range azureSetupStmts { + execSQL(stmt) + } + + awsPrepare() + azurePrepare() + + gob.Register(map[string]map[string]interface{}{}) + gob.Register(map[string]map[string]string{}) + gob.Register(map[string]string{}) +} + +func dbPrepSql(sql string) *sql.Stmt { + statement, err := mockDb.Prepare(sql) + if err != nil { + fmt.Printf("dbPrepSql `%s` %#v\n", sql, err) + panic(nil) + } + return statement +} + +func execStmt(stmt *sql.Stmt, queryParameters ...interface{}) { + _, err := stmt.Exec(queryParameters...) + if err != nil { + fmt.Printf("%#v\n", err) + fmt.Printf("HINT: If mock SQL statements are failing and you aren't actively iterating on them, then it is likely that you just have an old schema, and need to run `make reset-mock-db`\n") + panic(err) + } +} + +func execSQL(sql string) { + execStmt(dbPrepSql(sql)) +} + +func toBytes(value interface{}) []byte { + var blob bytes.Buffer + enc := gob.NewEncoder(&blob) + err := enc.Encode(value) + if err != nil { + fmt.Printf("%#v\n", err) + panic(err) + } + return blob.Bytes() +} + +func fromBytesRow(value interface{}, stmt *sql.Stmt, queryParameters ...interface{}) error { + row := stmt.QueryRow(queryParameters...) + var _bytes []uint8 + + err := row.Scan(&_bytes) + if err == sql.ErrNoRows { + return err + } + if err != nil { + fmt.Printf("%#v\n", err) + panic(err) + } + blob := bytes.NewBuffer(_bytes) + dec := gob.NewDecoder(blob) + err = dec.Decode(value) + if err != nil { + fmt.Printf("%#v\n", err) + panic(err) + } + return nil +} diff --git a/internal/tfazurerm/parse.go b/internal/tfazurerm/parse.go new file mode 100644 index 0000000..11ec817 --- /dev/null +++ b/internal/tfazurerm/parse.go @@ -0,0 +1,33 @@ +package tfazurerm + +import "fmt" + +// Ported from VaultID: https://github.com/terraform-providers/terraform-provider-azurerm/blob/64ea516c0be29868a6c1ab14b6999c547b6184cb/azurerm/internal/services/keyvault/parse/vault.go#L41 +// and VirtualNetworkID: https://github.com/terraform-providers/terraform-provider-azurerm/blob/64ea516c0be29868a6c1ab14b6999c547b6184cb/azurerm/internal/services/network/parse/virtual_network.go + +// Parse Name and ResourceGroup name from an Azure Resource Manager ID +func ParseNameRGFromID(azureId string, resourceType string) (string, string, error) { + id, err := ParseAzureResourceID(azureId) + if err != nil { + return "", "", err + } + + if id.SubscriptionID == "" { + return "", "", fmt.Errorf("ID was missing the 'subscriptions' element") + } + + if id.ResourceGroup == "" { + return "", "", fmt.Errorf("ID was missing the 'resourceGroups' element") + } + + idName, err := id.PopSegment(resourceType) + if err != nil { + return "", "", err + } + + if err := id.ValidateNoEmptySegments(azureId); err != nil { + return "", "", err + } + + return idName, id.ResourceGroup, nil +} diff --git a/internal/tfazurerm/resourceid.go b/internal/tfazurerm/resourceid.go new file mode 100644 index 0000000..bf48397 --- /dev/null +++ b/internal/tfazurerm/resourceid.go @@ -0,0 +1,166 @@ +// Copied from here, could not import upstream has broken depenencies, TF doesn't really support direct import of their provider code +// https://github.com/terraform-providers/terraform-provider-azurerm/blob/d9d07cf83bec57ef936b36e10242a0ae34832076/azurerm/helpers/azure/resourceid.go + +package tfazurerm + +import ( + "fmt" + "net/url" + "strings" +) + +// ResourceID represents a parsed long-form Azure Resource Manager ID +// with the Subscription ID, Resource Group and the Provider as top- +// level fields, and other key-value pairs available via a map in the +// Path field. +type ResourceID struct { + SubscriptionID string + ResourceGroup string + Provider string + Path map[string]string +} + +// ParseAzureResourceID converts a long-form Azure Resource Manager ID +// into a ResourceID. We make assumptions about the structure of URLs, +// which is obviously not good, but the best thing available given the +// SDK. +func ParseAzureResourceID(id string) (*ResourceID, error) { + idURL, err := url.ParseRequestURI(id) + if err != nil { + return nil, fmt.Errorf("Cannot parse Azure ID: %s", err) + } + + path := idURL.Path + + path = strings.TrimPrefix(path, "/") + path = strings.TrimSuffix(path, "/") + + components := strings.Split(path, "/") + + // We should have an even number of key-value pairs. + if len(components)%2 != 0 { + return nil, fmt.Errorf("The number of path segments is not divisible by 2 in %q", path) + } + + var subscriptionID string + + // Put the constituent key-value pairs into a map + componentMap := make(map[string]string, len(components)/2) + for current := 0; current < len(components); current += 2 { + key := components[current] + value := components[current+1] + + // Check key/value for empty strings. + if key == "" || value == "" { + return nil, fmt.Errorf("Key/Value cannot be empty strings. Key: '%s', Value: '%s'", key, value) + } + + // Catch the subscriptionID before it can be overwritten by another "subscriptions" + // value in the ID which is the case for the Service Bus subscription resource + if key == "subscriptions" && subscriptionID == "" { + subscriptionID = value + } else { + componentMap[key] = value + } + } + + // Build up a TargetResourceID from the map + idObj := &ResourceID{} + idObj.Path = componentMap + + if subscriptionID != "" { + idObj.SubscriptionID = subscriptionID + } else { + return nil, fmt.Errorf("No subscription ID found in: %q", path) + } + + if resourceGroup, ok := componentMap["resourceGroups"]; ok { + idObj.ResourceGroup = resourceGroup + delete(componentMap, "resourceGroups") + } else if resourceGroup, ok := componentMap["resourcegroups"]; ok { + // Some Azure APIs are weird and provide things in lower case... + // However it's not clear whether the casing of other elements in the URI + // matter, so we explicitly look for that case here. + idObj.ResourceGroup = resourceGroup + delete(componentMap, "resourcegroups") + } + + // It is OK not to have a provider in the case of a resource group + if provider, ok := componentMap["providers"]; ok { + idObj.Provider = provider + delete(componentMap, "providers") + } + + return idObj, nil +} + +// ParseAzureResourceIDWithoutSubscription parses Azure Resource ID's that are not prefixed +// with a Subscription ID. Typically these are for administrative resources that are not bound +// to a particular subscription. Note that these IDs are also unlikely to have a resourceGroup +// element, so this is not populated automatically into the returned ResourceID, but can be +// popped in cases it does exist in the path. These IDs are expected to begin with +// '/providers/[provider name]/' +func ParseAzureResourceIDWithoutSubscription(id string) (*ResourceID, error) { + idURL, err := url.ParseRequestURI(id) + if err != nil { + return nil, fmt.Errorf("Cannot parse Azure ID: %s", err) + } + + path := idURL.Path + + path = strings.TrimPrefix(path, "/") + path = strings.TrimSuffix(path, "/") + + components := strings.Split(path, "/") + + // We should have an even number of key-value pairs. + if len(components)%2 != 0 { + return nil, fmt.Errorf("The number of path segments is not divisible by 2 in %q", path) + } + + componentMap := make(map[string]string, len(components)/2) + for current := 0; current < len(components); current += 2 { + key := components[current] + value := components[current+1] + + // Check key/value for empty strings. + if key == "" || value == "" { + return nil, fmt.Errorf("Key/Value cannot be empty strings. Key: '%s', Value: '%s'", key, value) + } + componentMap[key] = value + } + + // Build up a TargetResourceID from the map + idObj := &ResourceID{} + idObj.Path = componentMap + + // It is OK not to have a provider in the case of a resource group + if provider, ok := componentMap["providers"]; ok { + idObj.Provider = provider + delete(componentMap, "providers") + } + + return idObj, nil +} + +// PopSegment retrieves a segment from the Path and returns it +// if found it removes it from the Path then return the value +// if not found, this returns nil +func (id *ResourceID) PopSegment(name string) (string, error) { + val, ok := id.Path[name] + if !ok { + return "", fmt.Errorf("ID was missing the `%s` element", name) + } + + delete(id.Path, name) + return val, nil +} + +// ValidateNoEmptySegments validates ... +func (id *ResourceID) ValidateNoEmptySegments(sourceId string) error { + if len(id.Path) == 0 { + return nil + } + + return fmt.Errorf("ID contained more segments than required: %q, %v", sourceId, id.Path) +} diff --git a/testing/example_aws_config b/testing/example_aws_config index eb1287f..cc9ec2d 100644 --- a/testing/example_aws_config +++ b/testing/example_aws_config @@ -16,5 +16,5 @@ https://support.purestorage.com/FlashArray/PurityFA/Cloud_Block_Store/Cloud_Bloc "license_key":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx", "subnet":"subnet-xxxxxxxxxxxxxxxxx", "security_group":"sg-xxxxxxxxxxxxxxxxx", - "pureuser_key_pair_name":"cbs_key" + "pureuser_key_pair_name":"cbs_key", } \ No newline at end of file diff --git a/testing/example_azure_config b/testing/example_azure_config index 197e4da..e6dbd61 100644 --- a/testing/example_azure_config +++ b/testing/example_azure_config @@ -9,15 +9,12 @@ https://support.purestorage.com/FlashArray/PurityFA/Cloud_Block_Store/Cloud_Bloc "resource_group_name": "resource_xxxx", "location": "location_xxxx" "license_key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx", - "pureuser_public_key": "cbs_key", "management_subnet": "SN-xxxxxxxxxxxxxx", "iscsi_subnet": "SN-xxxxxxxxxxxxxx", "replication_subnet": "SN-xxxxxxxxxxxxxx", + "pureuser_private_key_path":"/path/to/cbs_key", "system_subnet": "SN-xxxxxxxxxxxxxx", - "virtual_network": "VN-xxxxxxxxxxxxxx", - "management_resource_group": "management_resource_xxxx", - "iscsi_resource_group": "iscsi_resource_xxxx", - "replication_resource_group": "replication_resource_xxxx", - "system_resource_group": "system_resource_xxxx", + "virtual_network_id": "/subscriptions/xxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxx/providers/Microsoft.Network/virtualNetworks/xxxxxxxxxxxxxx", + "key_vault_id": "/subscriptions/xxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxx/providers/Microsoft.KeyVault/vaults/xxxxxxxxxxxxxx", "jit_group": "group_xxxx" } \ No newline at end of file diff --git a/testing/mock-params-aws.json b/testing/mock-params-aws.json index ebeaad9..c635eff 100644 --- a/testing/mock-params-aws.json +++ b/testing/mock-params-aws.json @@ -2,6 +2,8 @@ "deployment_role_arn": "mock_deployment_role_arn", "license_key": "mock_license_key", "pureuser_key_pair_name": "mock_pureuser_key_pair_name", + "pureuser_private_key_path": "../testing/ssh-private-key.pem", + "pureuser_private_key":"mock_pureuser_private_key_text", "subnet": "mock_subnet", "security_group": "mock_security_group" } diff --git a/testing/mock-params-azure.json b/testing/mock-params-azure.json index b9ab4f6..0fbb0ba 100644 --- a/testing/mock-params-azure.json +++ b/testing/mock-params-azure.json @@ -2,15 +2,12 @@ "resource_group_name": "mock_resource_group_name", "location": "eastus2", "license_key": "mock_license_key", - "pureuser_public_key": "mock_pureuser_public_key", + "pureuser_private_key_path": "../testing/ssh-private-key.pem", "management_subnet": "mock_management_subnet", "iscsi_subnet": "mock_iscsi_subnet", "replication_subnet": "mock_replication_subnet", "system_subnet": "mock_system_subnet", - "virtual_network": "mock_virtual_network", - "management_resource_group": "mock_management_resource_group", - "iscsi_resource_group": "mock_iscsi_resource_group", - "replication_resource_group": "mock_replication_resource_group", - "system_resource_group": "mock_system_resource_group", + "virtual_network_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mock_resource_group_name/providers/Microsoft.Network/virtualNetworks/mock_vnet_name", + "keyvault_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mock_resource_group_name/providers/Microsoft.KeyVault/vaults/A00000000000000000000000", "jit_group":"jit_group" } diff --git a/testing/mock.env b/testing/mock.env index 7f5edc4..f78861e 100644 --- a/testing/mock.env +++ b/testing/mock.env @@ -2,7 +2,7 @@ MOCK_OUT_DIR="../.build/" MOCK_DB_PATH="../.build/test.db" TEST_ACC_AWS_PARAMS_PATH="../testing/mock-params-aws.json" TEST_ACC_AZURE_PARAMS_PATH="../testing/mock-params-azure.json" -ARM_SUBSCRIPTION_ID=mock_arm_subscription_id +ARM_SUBSCRIPTION_ID="00000000-0000-0000-0000-000000000000" ARM_CLIENT_ID=mock_arm_client_id ARM_TENANT_ID=mock_arm_tenant_id ARM_CLIENT_SECRET=mock_arm_client_secret diff --git a/testing/private-key.gpg b/testing/private-key.gpg new file mode 100644 index 0000000..24e1a33 --- /dev/null +++ b/testing/private-key.gpg @@ -0,0 +1,57 @@ +-----BEGIN PGP PRIVATE KEY BLOCK----- +Version: GnuPG v1 + +lQOYBGEBpdUBCADp1LSu2/BKeQH5SLrHSkuJyTch/6iPjGBaGhO9GMOhL9sr+GG7 +TlvZ2OC0TsPf39x4jsjEyH3/aDjLNHePHSJ/vTs+Q6qtNl5WGIACj7CYouR5qF5e +tDSE9aiP98vyrlaGq41S7m6SLAn81dObv1sjj7helFP7U+VTMKY0qQS+adPxWKjx +A+lF4wl9LcXnJhHXu86PGFFf/KkV2j3nwNYktgpAkfN5Bgxi+al58A4NzvoRy3CM +B78cvO8XOv03gUeXlFeLJTBplnOmdUTZuTqb+FBK9HEUNugSYSPGOgFV7xPqYWz/ +d4Q6yXkFwpjh9R2SQV5XHbwzaYI/ZEhhrXA1ABEBAAEAB/oCHhiCyuAatIzVhpiW +bHBRr55NswSCREmtFzZdjIddAtNvywCLkzKWvvWN/HaepObYuqZLzesCMJ3vDSsW +AzQIRxztu+wkRG1HR1KFc2qsfzElfuZX4jbli1n678oLiROkhZIykZEzxq1Selc/ +vlRjdo47YQl/qatWfQbMTEmMNeGzy9WI+Wpe+QTQT/Ea6C0Bgh0eEF1fkbAEYSCG +f9oWm3LVUJF9+AdY9gGNf6KJVxhDZTqSldjMkIdIwGeb9WFaSGHkVIE+BtVJH7Mz +lJbvBPdutGSW0jUmMxDXrLWaJq1CMi/5dP3UQ2uDcRvm+IUb9b/6X+yQf1KOenhW +btsTBADr+nVvOdYoHjRWyrDi8fn06YRS6Lqw2bh1r2aWAlOW82BHMiI86cmez6i1 +6SYOotzAGwl9UVEL3cxz24j+Jj3gNQG/urnuWNcT8vWKP2me6E9KB8M8rIuf26fN +KSqRALVF9HyO2OTfnVDQAkoWcWhIBqsknC9UdWzcSzv07K11UwQA/auaZt+HwWs8 +DchgPPUNGBs9d7Dw9OFAtn+felXX9y04rBTy7HX+ZPP/2ou/ai9dXqHJgylHduWC +xU2Dr/nCg8h7qB0GuYhpZw1wfeDs00wui3j4JCMseybjKQDkneZAUEen+bGxyq3B +OLWPp0jmhK2B+rNs0GA4Jlz2J4CQC1cD/3OBJ7QVOifajAkAG1efSvimQDl5nlo8 +M0/Q057aC4M7sGf5MSV/l5tqnr7dxINLl52eOK3vT0JmkQmmhUOZIJBR1C0+qyG+ +QFep9SnrtJdqUZG6jMhgJyeV4cqiZYoozxsKZfItVh9oSigXlYhgE3fP2UguTPVv +O7o+zGAlmqjqQJq0DUtleSBmb3IgdGVzdHOJATgEEwECACIFAmEBpdUCGwMGCwkI +BwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEHjCR0YgPY9OAPEIANH7in8YIdQtasnL +DynL0JecaivwGN6Xwt0W6c685JSlDeIuWzs0hVszlyjNCUM6KdcNkjJBdmk51MCJ +3EBwlpHVlpFkrqncooIHNclC0oNVAIe3WFVb0+9myANiWcDSAW2b83m5KhR65hCG +qfSprH4ohEWYzT+IzetsQpakwHxDyIm6TuSc809cRzPiKbiMWqvLsbgqa+RTKwhQ +B0h2ndI6cA5CEtOiJRAbQ2smOpnXth5rQxNrqEsoQDHEAV9z0zZWWiGTJ+O/qNaZ +/TQ754gemkLzI5W4XWlx0HnTjPgu0br1ljWM/pD+xtRboYp4IG/+Ij2j+6p3Ry0M +5ns7bFOdA5gEYQGl1QEIAL8k1BvvSycmb9ppgDJyhZ0dNBProjKqWvtf0+n57K9d +DrFfKw0T/PMveIsxJUuz0UWMSO4stRmpFBdS+x/S9pMQF7m6LLxM24rjsOs2eJrT +UE3mpx3MzNULtmAasRHfy3gVotOXtrcO+s3XAqXHew4v/YtPKkW3i0nZGtli0y1d +J6NWDAMkNYCwWgmih9zUpz0xyNr3+xPHnzrHhuX1rUhqOBljRbFYdtZpr+hTyYRn +kGetMu238qRIdLlW+JZlxNbqFQgXEz7eUjaTJnFw+gUVYBpGn4Apk7G5k8pA5uPF +HVGHzELd3kMVX5AUqJ5KqpsrpYGx9g65q29J3lxjSR0AEQEAAQAH+gKix6EF/P+S +dl7o7wljDmgi/7WZnYA83KnUQbgbh/HIIvx7rzyMLsQMvskOmbDQTz26CERujeXH +cN08efWPo3JWObmIMXc8SRfCeY1Y0DN0YApe+KV+zkFO2so6+/+e2i+y/q6TzEN8 +e6Vshl8SX+ZLb5/k7NSOyicvzQC77eUVemv4nqtRIBLSZgtwmeflAWKWS8p4N2oy +BV0/m0ylp+qD0XhSWYmpV11ZN9oqzsMWOT8jBDfYQGe+Y0NZrvwaoWb18ljK4YFJ +oyrFIPkZcthS0qAG0AKY+NneV36a4MVfBPdkd3baHEj8+4w0QsBE/JtQDv0py7qX +a06sa308ndkEANQUoVGlcFHZrw6Kl83cOPJUvweWci+UaNNVDdYIuzyUY2ysqgFW +ZFSf8QnAbGMOyqvGeSvxDMsMqsTPTEgdReTzDo3sKkiW7ROFEcM6qXt/43k4gcYX +R3L/Ib6uT/iEl6OI60m9Rx1kB0d+E7myfzbl9raLVuqFnXY1j8krEmrJBADmuj79 +8UVOPtexYB/xvF3gOKGrc68dCCJfnTfM+iJGKks1Cugv4uJH1UnIZHomrx6avL84 +z1rZaaTokghUDC1BzYXA08UM5GEBZJYRW1exAYAY67NrCG/YXmi1L6oCM1TA+o4+ +34ELe8QUwogQIA94cEGGKZ3a6rk8WgaEnNsBtQQAqLWDyi+jvU3GW3dj9DSnIj27 +aO1OdRGZlnC+KzC0F8Gb3h/qdCPAkiKLOYU35kwfgAjprGvZrMNQ+fW6Kz2IJn4m +ImqcUXhgSEyPGo3Il8CkcLuEbE6PXdEIN8HSY0+KzVlghtJDxbqEvYZ6RM0+6yeK +N0IhjEV1Mt1x7k9w04k/jIkBHwQYAQIACQUCYQGl1QIbDAAKCRB4wkdGID2PToVH +CAC7TN4JxdME8DclFaT038fsoXXiuB7F0rtyQK4ZkODReeTvkXhl2QTf7j5Ms5b+ +xgPRhGPSKpq0iTGzUcNZrpSwEqCaTk7SQiOKGwtqbIBdE1i1JsjpLdIGgG2ICtyU +//eyG+buaPpanuU0ZrkSSWi6CtEOsWGm+xCy7msTMVV94VDdptG3GiN1JHHttMwD +sAuC6OaZikZpOW6ZabdBQESWf458bb1Tfsg5y9ESAmPbdRPC7vG9gI7ARgDTwz6A +LeYkksxdvllBbQH7xocjBSFrT8CZLjR8WA3Km3fs11dUFLIQDhEUniSXVFcDQ+Sy +UeAlBxLI8Wv/YYvuEtB9llG3 +=4b2p +-----END PGP PRIVATE KEY BLOCK----- diff --git a/testing/ssh-private-key.pem b/testing/ssh-private-key.pem new file mode 100644 index 0000000..730106b --- /dev/null +++ b/testing/ssh-private-key.pem @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEAtxP/xU8rwhW9rRatrPmmCYhLElBBbSCqV2wDKojgHa6/ySRk +yrRzhSDk3LLuEdg0mVaoKWc8/K4fWP0OAxlvUhVHBRHWSul2Gc2D1BM/Vr3Lsi3p +QdkpcTexr2zoiiTgSyy2KvZQxn6VoUqf9wnYfKyxoBErl525kfoa+Tzr1wISyoJb +ru9C1EO7UA2ujf2Ds2iv3xW44NBPVkJChYTQ1ssIpEqteIQURvitLaG6by7+Ht5q +x5WRNFexMKjzRc/pNYUMH0p+nCcK29qMhLHVTphXplgHvvuq7i9D0EEt04fZoziT +LfLpRy4QcoAdaxJzsmOOwpY6EzBE5uSw66cGlwIDAQABAoIBAQCaBGsiNM6dQukF +GpUVdhim4FA3oejIw7hKP4YSXIAeuIqDzug0V8bvcpLW0HjT7k2hynNCEaYO9PVO +SeVl2hn6tge/Thg3gVxnrKuA2IhqktUwmssnKGhi5PXInRisTwWaeIzwa7PcqVV8 +EWmtzEyh5i6weIFx1bDuC7hxgTzu7VUyqfXmWqaT/GhNrmgVOUPpY+WhLNWpz29U +D7pIHvSSGXYjonNC0QaHsu2Ju1d5CKFuzdYLEEnssKCTKEBEBsubVBV0T9E2P5fI +OdH5gRAfH47gEST2RoUyRrfCXEo0papC6NopNJaocC70Hrnv/CALRI7fb0HMoaYY +TEMLq3hhAoGBAN8F86W8vU3mIE/II5FIta2BaNNuNWAYgGcK8ve+CAai3A3D+vqe +ofQgA7n/9BPgFdndxG2huF4ELbX6trI4tEzSCNKA5VJl9zKx/crZqAnnjxYfll/l +IZRyP0dfN4LhQtXQ0IwxB3XWhYWeHfAhDSoJ/aQA5wfXrl411CmbTV/ZAoGBANIm +A3eC/xcoPTwtxtrPIcaGp+Ba1mDntr/todtCP7DkcPPGuXCAsduKV9Xza5TDrX2h +P2jNPeU0hEurb1FPfetLjjM1kE0fYoefcww5Fqh05v+J26mLN221TONCzNt7fKx9 +Q0taywqz2fCZPU8zNBnFM7H16SzYyRs8FzCkwwPvAoGBAISeamsk18EJ1i77CUNs +ZDR/npETmQPCriAYH7D4PJeNoqNA5e7AA/hCTVT+geqLtxKt0A+NOjAV9gSfyKIk +G/sObpaWdUdRQPTRaOSGF2mEW87BC8+MVjKK2Vwcn8rhHrg8irbCtPf6j72L76uK +S+SyujQbIUbFl3eINNhk9FbJAoGAH2Ehv2TGJnURv7yuJtorFvPgeXXW8R1ognw/ +YPghfo5990jDQ/NTm46q0v3IIKyfaVT8nO+YwHL5FjuBIckW6l2b3DWxWHLJSasb +iMW1hm3+WEYDkOuC2VTrKDw/Tr6/vRnvRH9INk7oyi53oy3oJ7j0oSwxJ0svrGtq +ow7XN+0CgYEAnHuBqqaVNTGbVrxF71bk99FdiMe5PZ2bQOtQUQswlsflmQzesRY3 +PD7oxKlqhCYCyjDctUpZsCK02NPMtiHOk1fxtU7nKi1yiJFRbHFXp2X0ucq3xtKv +R95QQozRL4ZSk/4P1PTLBtpRBPsfqNTihZWOoHcMEENXm9i6qr5lpdw= +-----END RSA PRIVATE KEY----- diff --git a/testing/test_version_config.json b/testing/test_version_config.json new file mode 100644 index 0000000..3f59697 --- /dev/null +++ b/testing/test_version_config.json @@ -0,0 +1,40 @@ +{ + "purity_versions": { + "6.1.6": { + "aws": { + "template_url": "aws_url_6.1.6" + }, + "azure": { + "plan_name": "azure_plan_6.1.6", + "plan_product": "azure_product_6.1.6", + "plan_publisher": "azure_publisher_6.1.6", + "plan_version": "1.0.0" + }, + "min_provider_version": "0.4.0", + "max_provider_version": "0.6.0" + }, + "6.1.7": { + "aws": { + "template_url": "aws_url_6.1.7" + }, + "azure": { + "plan_name": "azure_plan_6.1.7", + "plan_product": "azure_product_6.1.7", + "plan_publisher": "azure_publisher_6.1.7", + "plan_version": "1.0.9" + }, + "min_provider_version": "0.6.0" + }, + "6.1.8": { + "aws": { + "template_url": "aws_url_6.1.8" + }, + "azure": { + "plan_name": "azure_plan_6.1.8", + "plan_product": "azure_product_6.1.8", + "plan_publisher": "azure_publisher_6.1.8", + "plan_version": "1.0.5" + } + } + } +} \ No newline at end of file diff --git a/version/version.go b/version/version.go new file mode 100644 index 0000000..29eeccd --- /dev/null +++ b/version/version.go @@ -0,0 +1,22 @@ +/* + + Copyright 2021, Pure Storage Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +package version + +// The release version of the provider. TODO PURE-229783 automate setting this to the release version on release +var ProviderVersion = "dev"