From 961fe57c69dd49154c6a04ab760a2d9af75eb42d Mon Sep 17 00:00:00 2001 From: hashicorp-cloud Date: Fri, 7 Jan 2022 20:37:06 +0000 Subject: [PATCH] Update cloud-vault-service SDK --- .../get_utilization_parameters.go | 238 ++++++++++++ .../get_utilization_responses.go | 118 ++++++ .../client/vault_service/list_parameters.go | 29 ++ ...ance_replication_secondaries_parameters.go | 342 ++++++++++++++++++ ...mance_replication_secondaries_responses.go | 118 ++++++ .../vault_service/vault_service_client.go | 72 ++++ ...orp_cloud_vault20201125_audit_log_state.go | 8 +- .../hashicorp_cloud_vault20201125_cluster.go | 28 ++ ...corp_cloud_vault20201125_cluster_config.go | 25 ++ ...25_cluster_performance_replication_info.go | 97 +++++ ...uster_performance_replication_info_mode.go | 71 ++++ ...icorp_cloud_vault20201125_cluster_state.go | 8 +- ..._vault20201125_get_utilization_response.go | 146 ++++++++ ...20201125_get_utilization_response_value.go | 97 +++++ ...125_get_utilization_response_value_unit.go | 66 ++++ ...icorp_cloud_vault20201125_input_cluster.go | 26 ++ ...loud_vault20201125_input_cluster_config.go | 25 ++ ...rmance_replication_secondaries_response.go | 106 ++++++ ...loud_vault20201125_list_request_filters.go | 43 +++ ...corp_cloud_vault20201125_snapshot_state.go | 6 +- ...icorp_cloud_vault20201125_snapshot_type.go | 6 +- .../hashicorp_cloud_vault20201125_tier.go | 13 +- .../client/cloud_vault_service_client.go | 2 +- .../client/vault_service/create_parameters.go | 2 +- .../client/vault_service/create_responses.go | 2 +- .../create_snapshot_parameters.go | 2 +- .../create_snapshot_responses.go | 2 +- .../client/vault_service/delete_parameters.go | 0 .../client/vault_service/delete_responses.go | 2 +- .../delete_snapshot_parameters.go | 0 .../delete_snapshot_responses.go | 2 +- .../disable_c_o_r_s_parameters.go | 0 .../disable_c_o_r_s_responses.go | 2 +- .../fetch_audit_log_parameters.go | 2 +- .../fetch_audit_log_responses.go | 2 +- .../get_admin_token_parameters.go | 0 .../get_admin_token_responses.go | 2 +- .../get_audit_log_status_parameters.go | 0 .../get_audit_log_status_responses.go | 2 +- .../get_c_o_r_s_config_parameters.go | 0 .../get_c_o_r_s_config_responses.go | 2 +- .../client/vault_service/get_parameters.go | 0 .../client/vault_service/get_responses.go | 2 +- .../vault_service/get_snapshot_parameters.go | 0 .../vault_service/get_snapshot_responses.go | 2 +- .../client/vault_service/list_parameters.go | 0 .../client/vault_service/list_responses.go | 2 +- .../list_snapshots_parameters.go | 0 .../vault_service/list_snapshots_responses.go | 2 +- .../restore_snapshot_parameters.go | 2 +- .../restore_snapshot_responses.go | 2 +- .../client/vault_service/seal_parameters.go | 2 +- .../client/vault_service/seal_responses.go | 2 +- .../client/vault_service/unseal_parameters.go | 2 +- .../client/vault_service/unseal_responses.go | 2 +- .../update_c_o_r_s_config_parameters.go | 2 +- .../update_c_o_r_s_config_responses.go | 2 +- .../update_public_ips_parameters.go | 2 +- .../update_public_ips_responses.go | 2 +- .../update_snapshot_parameters.go | 2 +- .../update_snapshot_responses.go | 2 +- .../vault_service/vault_service_client.go | 0 ...hicorp_cloud_vault20200420_audit_config.go | 0 ...hashicorp_cloud_vault20200420_audit_log.go | 0 ...orp_cloud_vault20200420_audit_log_state.go | 0 ...corp_cloud_vault20200420_c_o_r_s_config.go | 0 ...orp_cloud_vault20200420_capacity_config.go | 0 .../hashicorp_cloud_vault20200420_cluster.go | 0 ...corp_cloud_vault20200420_cluster_config.go | 0 ...p_cloud_vault20200420_cluster_dns_names.go | 0 ...icorp_cloud_vault20200420_cluster_state.go | 0 ...corp_cloud_vault20200420_create_request.go | 0 ...orp_cloud_vault20200420_create_response.go | 0 ...d_vault20200420_create_snapshot_request.go | 0 ..._vault20200420_create_snapshot_response.go | 0 ...orp_cloud_vault20200420_delete_response.go | 0 ..._vault20200420_delete_snapshot_response.go | 0 ..._vault20200420_disable_c_o_r_s_response.go | 0 ...d_vault20200420_fetch_audit_log_request.go | 0 ..._vault20200420_fetch_audit_log_response.go | 0 ..._vault20200420_get_admin_token_response.go | 0 ...t20200420_get_audit_log_status_response.go | 0 ...ult20200420_get_c_o_r_s_config_response.go | 0 ...hicorp_cloud_vault20200420_get_response.go | 0 ...oud_vault20200420_get_snapshot_response.go | 0 ...icorp_cloud_vault20200420_list_response.go | 0 ...d_vault20200420_list_snapshots_response.go | 0 ..._cloud_vault20200420_maintenance_config.go | 0 ...corp_cloud_vault20200420_network_config.go | 0 ..._vault20200420_restore_snapshot_request.go | 0 ...vault20200420_restore_snapshot_response.go | 0 ...hicorp_cloud_vault20200420_seal_request.go | 0 ...icorp_cloud_vault20200420_seal_response.go | 0 .../hashicorp_cloud_vault20200420_snapshot.go | 0 ...orp_cloud_vault20200420_snapshot_config.go | 0 ...corp_cloud_vault20200420_snapshot_state.go | 0 ...icorp_cloud_vault20200420_snapshot_type.go | 0 ...corp_cloud_vault20200420_unseal_request.go | 0 ...orp_cloud_vault20200420_unseal_response.go | 0 ...t20200420_update_c_o_r_s_config_request.go | 0 ...20200420_update_c_o_r_s_config_response.go | 0 ...vault20200420_update_public_ips_request.go | 0 ...ault20200420_update_public_ips_response.go | 0 ...d_vault20200420_update_snapshot_request.go | 0 ..._vault20200420_update_snapshot_response.go | 0 ...hicorp_cloud_vault20200420_vault_access.go | 0 ...hicorp_cloud_vault20200420_vault_config.go | 0 107 files changed, 1701 insertions(+), 45 deletions(-) create mode 100644 clients/cloud-vault-service/preview/2020-11-25/client/vault_service/get_utilization_parameters.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/client/vault_service/get_utilization_responses.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_performance_replication_secondaries_parameters.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_performance_replication_secondaries_responses.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_performance_replication_info.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_performance_replication_info_mode.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response_value.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response_value_unit.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_list_performance_replication_secondaries_response.go create mode 100644 clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_list_request_filters.go rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/cloud_vault_service_client.go (96%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/create_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/create_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/create_snapshot_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/create_snapshot_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/delete_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/delete_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/delete_snapshot_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/delete_snapshot_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/disable_c_o_r_s_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/disable_c_o_r_s_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/fetch_audit_log_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/fetch_audit_log_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_admin_token_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_admin_token_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_audit_log_status_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_audit_log_status_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_c_o_r_s_config_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_c_o_r_s_config_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_snapshot_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/get_snapshot_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/list_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/list_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/list_snapshots_parameters.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/list_snapshots_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/restore_snapshot_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/restore_snapshot_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/seal_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/seal_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/unseal_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/unseal_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/update_c_o_r_s_config_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/update_c_o_r_s_config_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/update_public_ips_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/update_public_ips_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/update_snapshot_parameters.go (98%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/update_snapshot_responses.go (97%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/client/vault_service/vault_service_client.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_audit_config.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log_state.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_c_o_r_s_config.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_capacity_config.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_cluster.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_config.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_dns_names.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_state.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_create_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_create_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_delete_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_delete_snapshot_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_disable_c_o_r_s_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_get_admin_token_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_get_audit_log_status_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_get_c_o_r_s_config_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_get_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_get_snapshot_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_list_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_list_snapshots_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_maintenance_config.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_network_config.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_seal_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_seal_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_config.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_state.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_type.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_request.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_response.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_vault_access.go (100%) rename clients/cloud-vault-service/{preview => stable}/2020-04-20/models/hashicorp_cloud_vault20200420_vault_config.go (100%) diff --git a/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/get_utilization_parameters.go b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/get_utilization_parameters.go new file mode 100644 index 00000000..dc6367c6 --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/get_utilization_parameters.go @@ -0,0 +1,238 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package vault_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewGetUtilizationParams creates a new GetUtilizationParams object +// with the default values initialized. +func NewGetUtilizationParams() *GetUtilizationParams { + var () + return &GetUtilizationParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewGetUtilizationParamsWithTimeout creates a new GetUtilizationParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewGetUtilizationParamsWithTimeout(timeout time.Duration) *GetUtilizationParams { + var () + return &GetUtilizationParams{ + + timeout: timeout, + } +} + +// NewGetUtilizationParamsWithContext creates a new GetUtilizationParams object +// with the default values initialized, and the ability to set a context for a request +func NewGetUtilizationParamsWithContext(ctx context.Context) *GetUtilizationParams { + var () + return &GetUtilizationParams{ + + Context: ctx, + } +} + +// NewGetUtilizationParamsWithHTTPClient creates a new GetUtilizationParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewGetUtilizationParamsWithHTTPClient(client *http.Client) *GetUtilizationParams { + var () + return &GetUtilizationParams{ + HTTPClient: client, + } +} + +/*GetUtilizationParams contains all the parameters to send to the API endpoint +for the get utilization operation typically these are written to a http.Request +*/ +type GetUtilizationParams struct { + + /*ClusterID*/ + ClusterID string + /*LocationOrganizationID + organization_id is the id of the organization. + + */ + LocationOrganizationID string + /*LocationProjectID + project_id is the projects id. + + */ + LocationProjectID string + /*LocationRegionProvider + provider is the named cloud provider ("aws", "gcp", "azure"). + + */ + LocationRegionProvider *string + /*LocationRegionRegion + region is the cloud region ("us-west1", "us-east1"). + + */ + LocationRegionRegion *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the get utilization params +func (o *GetUtilizationParams) WithTimeout(timeout time.Duration) *GetUtilizationParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get utilization params +func (o *GetUtilizationParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get utilization params +func (o *GetUtilizationParams) WithContext(ctx context.Context) *GetUtilizationParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get utilization params +func (o *GetUtilizationParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get utilization params +func (o *GetUtilizationParams) WithHTTPClient(client *http.Client) *GetUtilizationParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get utilization params +func (o *GetUtilizationParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithClusterID adds the clusterID to the get utilization params +func (o *GetUtilizationParams) WithClusterID(clusterID string) *GetUtilizationParams { + o.SetClusterID(clusterID) + return o +} + +// SetClusterID adds the clusterId to the get utilization params +func (o *GetUtilizationParams) SetClusterID(clusterID string) { + o.ClusterID = clusterID +} + +// WithLocationOrganizationID adds the locationOrganizationID to the get utilization params +func (o *GetUtilizationParams) WithLocationOrganizationID(locationOrganizationID string) *GetUtilizationParams { + o.SetLocationOrganizationID(locationOrganizationID) + return o +} + +// SetLocationOrganizationID adds the locationOrganizationId to the get utilization params +func (o *GetUtilizationParams) SetLocationOrganizationID(locationOrganizationID string) { + o.LocationOrganizationID = locationOrganizationID +} + +// WithLocationProjectID adds the locationProjectID to the get utilization params +func (o *GetUtilizationParams) WithLocationProjectID(locationProjectID string) *GetUtilizationParams { + o.SetLocationProjectID(locationProjectID) + return o +} + +// SetLocationProjectID adds the locationProjectId to the get utilization params +func (o *GetUtilizationParams) SetLocationProjectID(locationProjectID string) { + o.LocationProjectID = locationProjectID +} + +// WithLocationRegionProvider adds the locationRegionProvider to the get utilization params +func (o *GetUtilizationParams) WithLocationRegionProvider(locationRegionProvider *string) *GetUtilizationParams { + o.SetLocationRegionProvider(locationRegionProvider) + return o +} + +// SetLocationRegionProvider adds the locationRegionProvider to the get utilization params +func (o *GetUtilizationParams) SetLocationRegionProvider(locationRegionProvider *string) { + o.LocationRegionProvider = locationRegionProvider +} + +// WithLocationRegionRegion adds the locationRegionRegion to the get utilization params +func (o *GetUtilizationParams) WithLocationRegionRegion(locationRegionRegion *string) *GetUtilizationParams { + o.SetLocationRegionRegion(locationRegionRegion) + return o +} + +// SetLocationRegionRegion adds the locationRegionRegion to the get utilization params +func (o *GetUtilizationParams) SetLocationRegionRegion(locationRegionRegion *string) { + o.LocationRegionRegion = locationRegionRegion +} + +// WriteToRequest writes these params to a swagger request +func (o *GetUtilizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param cluster_id + if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { + return err + } + + // path param location.organization_id + if err := r.SetPathParam("location.organization_id", o.LocationOrganizationID); err != nil { + return err + } + + // path param location.project_id + if err := r.SetPathParam("location.project_id", o.LocationProjectID); err != nil { + return err + } + + if o.LocationRegionProvider != nil { + + // query param location.region.provider + var qrLocationRegionProvider string + if o.LocationRegionProvider != nil { + qrLocationRegionProvider = *o.LocationRegionProvider + } + qLocationRegionProvider := qrLocationRegionProvider + if qLocationRegionProvider != "" { + if err := r.SetQueryParam("location.region.provider", qLocationRegionProvider); err != nil { + return err + } + } + + } + + if o.LocationRegionRegion != nil { + + // query param location.region.region + var qrLocationRegionRegion string + if o.LocationRegionRegion != nil { + qrLocationRegionRegion = *o.LocationRegionRegion + } + qLocationRegionRegion := qrLocationRegionRegion + if qLocationRegionRegion != "" { + if err := r.SetQueryParam("location.region.region", qLocationRegionRegion); err != nil { + return err + } + } + + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/get_utilization_responses.go b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/get_utilization_responses.go new file mode 100644 index 00000000..9cddf95c --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/get_utilization_responses.go @@ -0,0 +1,118 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package vault_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-11-25/models" +) + +// GetUtilizationReader is a Reader for the GetUtilization structure. +type GetUtilizationReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetUtilizationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetUtilizationOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewGetUtilizationDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewGetUtilizationOK creates a GetUtilizationOK with default headers values +func NewGetUtilizationOK() *GetUtilizationOK { + return &GetUtilizationOK{} +} + +/*GetUtilizationOK handles this case with default header values. + +A successful response. +*/ +type GetUtilizationOK struct { + Payload *models.HashicorpCloudVault20201125GetUtilizationResponse +} + +func (o *GetUtilizationOK) Error() string { + return fmt.Sprintf("[GET /vault/2020-11-25/organizations/{location.organization_id}/projects/{location.project_id}/clusters/{cluster_id}/utilization][%d] getUtilizationOK %+v", 200, o.Payload) +} + +func (o *GetUtilizationOK) GetPayload() *models.HashicorpCloudVault20201125GetUtilizationResponse { + return o.Payload +} + +func (o *GetUtilizationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.HashicorpCloudVault20201125GetUtilizationResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetUtilizationDefault creates a GetUtilizationDefault with default headers values +func NewGetUtilizationDefault(code int) *GetUtilizationDefault { + return &GetUtilizationDefault{ + _statusCode: code, + } +} + +/*GetUtilizationDefault handles this case with default header values. + +An unexpected error response. +*/ +type GetUtilizationDefault struct { + _statusCode int + + Payload *cloud.GrpcGatewayRuntimeError +} + +// Code gets the status code for the get utilization default response +func (o *GetUtilizationDefault) Code() int { + return o._statusCode +} + +func (o *GetUtilizationDefault) Error() string { + return fmt.Sprintf("[GET /vault/2020-11-25/organizations/{location.organization_id}/projects/{location.project_id}/clusters/{cluster_id}/utilization][%d] GetUtilization default %+v", o._statusCode, o.Payload) +} + +func (o *GetUtilizationDefault) GetPayload() *cloud.GrpcGatewayRuntimeError { + return o.Payload +} + +func (o *GetUtilizationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(cloud.GrpcGatewayRuntimeError) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_parameters.go b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_parameters.go index 90c2f185..3509b5bc 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_parameters.go +++ b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_parameters.go @@ -61,6 +61,8 @@ for the list operation typically these are written to a http.Request */ type ListParams struct { + /*FiltersPrimariesOnly*/ + FiltersPrimariesOnly *bool /*LocationOrganizationID organization_id is the id of the organization. @@ -142,6 +144,17 @@ func (o *ListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithFiltersPrimariesOnly adds the filtersPrimariesOnly to the list params +func (o *ListParams) WithFiltersPrimariesOnly(filtersPrimariesOnly *bool) *ListParams { + o.SetFiltersPrimariesOnly(filtersPrimariesOnly) + return o +} + +// SetFiltersPrimariesOnly adds the filtersPrimariesOnly to the list params +func (o *ListParams) SetFiltersPrimariesOnly(filtersPrimariesOnly *bool) { + o.FiltersPrimariesOnly = filtersPrimariesOnly +} + // WithLocationOrganizationID adds the locationOrganizationID to the list params func (o *ListParams) WithLocationOrganizationID(locationOrganizationID string) *ListParams { o.SetLocationOrganizationID(locationOrganizationID) @@ -227,6 +240,22 @@ func (o *ListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry } var res []error + if o.FiltersPrimariesOnly != nil { + + // query param filters.primaries_only + var qrFiltersPrimariesOnly bool + if o.FiltersPrimariesOnly != nil { + qrFiltersPrimariesOnly = *o.FiltersPrimariesOnly + } + qFiltersPrimariesOnly := swag.FormatBool(qrFiltersPrimariesOnly) + if qFiltersPrimariesOnly != "" { + if err := r.SetQueryParam("filters.primaries_only", qFiltersPrimariesOnly); err != nil { + return err + } + } + + } + // path param location.organization_id if err := r.SetPathParam("location.organization_id", o.LocationOrganizationID); err != nil { return err diff --git a/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_performance_replication_secondaries_parameters.go b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_performance_replication_secondaries_parameters.go new file mode 100644 index 00000000..185ed492 --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_performance_replication_secondaries_parameters.go @@ -0,0 +1,342 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package vault_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewListPerformanceReplicationSecondariesParams creates a new ListPerformanceReplicationSecondariesParams object +// with the default values initialized. +func NewListPerformanceReplicationSecondariesParams() *ListPerformanceReplicationSecondariesParams { + var () + return &ListPerformanceReplicationSecondariesParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewListPerformanceReplicationSecondariesParamsWithTimeout creates a new ListPerformanceReplicationSecondariesParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewListPerformanceReplicationSecondariesParamsWithTimeout(timeout time.Duration) *ListPerformanceReplicationSecondariesParams { + var () + return &ListPerformanceReplicationSecondariesParams{ + + timeout: timeout, + } +} + +// NewListPerformanceReplicationSecondariesParamsWithContext creates a new ListPerformanceReplicationSecondariesParams object +// with the default values initialized, and the ability to set a context for a request +func NewListPerformanceReplicationSecondariesParamsWithContext(ctx context.Context) *ListPerformanceReplicationSecondariesParams { + var () + return &ListPerformanceReplicationSecondariesParams{ + + Context: ctx, + } +} + +// NewListPerformanceReplicationSecondariesParamsWithHTTPClient creates a new ListPerformanceReplicationSecondariesParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewListPerformanceReplicationSecondariesParamsWithHTTPClient(client *http.Client) *ListPerformanceReplicationSecondariesParams { + var () + return &ListPerformanceReplicationSecondariesParams{ + HTTPClient: client, + } +} + +/*ListPerformanceReplicationSecondariesParams contains all the parameters to send to the API endpoint +for the list performance replication secondaries operation typically these are written to a http.Request +*/ +type ListPerformanceReplicationSecondariesParams struct { + + /*ClusterID*/ + ClusterID string + /*LocationOrganizationID + organization_id is the id of the organization. + + */ + LocationOrganizationID string + /*LocationProjectID + project_id is the projects id. + + */ + LocationProjectID string + /*LocationRegionProvider + provider is the named cloud provider ("aws", "gcp", "azure"). + + */ + LocationRegionProvider *string + /*LocationRegionRegion + region is the cloud region ("us-west1", "us-east1"). + + */ + LocationRegionRegion *string + /*PaginationNextPageToken + Specifies a page token to use to retrieve the next page. Set this to the + `next_page_token` returned by previous list requests to get the next page of + results. If set, `previous_page_token` must not be set. + + */ + PaginationNextPageToken *string + /*PaginationPageSize + The max number of results per page that should be returned. If the number + of available results is larger than `page_size`, a `next_page_token` is + returned which can be used to get the next page of results in subsequent + requests. A value of zero will cause `page_size` to be defaulted. + + */ + PaginationPageSize *int64 + /*PaginationPreviousPageToken + Specifies a page token to use to retrieve the previous page. Set this to + the `previous_page_token` returned by previous list requests to get the + previous page of results. If set, `next_page_token` must not be set. + + */ + PaginationPreviousPageToken *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithTimeout(timeout time.Duration) *ListPerformanceReplicationSecondariesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithContext(ctx context.Context) *ListPerformanceReplicationSecondariesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithHTTPClient(client *http.Client) *ListPerformanceReplicationSecondariesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithClusterID adds the clusterID to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithClusterID(clusterID string) *ListPerformanceReplicationSecondariesParams { + o.SetClusterID(clusterID) + return o +} + +// SetClusterID adds the clusterId to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetClusterID(clusterID string) { + o.ClusterID = clusterID +} + +// WithLocationOrganizationID adds the locationOrganizationID to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithLocationOrganizationID(locationOrganizationID string) *ListPerformanceReplicationSecondariesParams { + o.SetLocationOrganizationID(locationOrganizationID) + return o +} + +// SetLocationOrganizationID adds the locationOrganizationId to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetLocationOrganizationID(locationOrganizationID string) { + o.LocationOrganizationID = locationOrganizationID +} + +// WithLocationProjectID adds the locationProjectID to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithLocationProjectID(locationProjectID string) *ListPerformanceReplicationSecondariesParams { + o.SetLocationProjectID(locationProjectID) + return o +} + +// SetLocationProjectID adds the locationProjectId to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetLocationProjectID(locationProjectID string) { + o.LocationProjectID = locationProjectID +} + +// WithLocationRegionProvider adds the locationRegionProvider to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithLocationRegionProvider(locationRegionProvider *string) *ListPerformanceReplicationSecondariesParams { + o.SetLocationRegionProvider(locationRegionProvider) + return o +} + +// SetLocationRegionProvider adds the locationRegionProvider to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetLocationRegionProvider(locationRegionProvider *string) { + o.LocationRegionProvider = locationRegionProvider +} + +// WithLocationRegionRegion adds the locationRegionRegion to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithLocationRegionRegion(locationRegionRegion *string) *ListPerformanceReplicationSecondariesParams { + o.SetLocationRegionRegion(locationRegionRegion) + return o +} + +// SetLocationRegionRegion adds the locationRegionRegion to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetLocationRegionRegion(locationRegionRegion *string) { + o.LocationRegionRegion = locationRegionRegion +} + +// WithPaginationNextPageToken adds the paginationNextPageToken to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithPaginationNextPageToken(paginationNextPageToken *string) *ListPerformanceReplicationSecondariesParams { + o.SetPaginationNextPageToken(paginationNextPageToken) + return o +} + +// SetPaginationNextPageToken adds the paginationNextPageToken to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetPaginationNextPageToken(paginationNextPageToken *string) { + o.PaginationNextPageToken = paginationNextPageToken +} + +// WithPaginationPageSize adds the paginationPageSize to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithPaginationPageSize(paginationPageSize *int64) *ListPerformanceReplicationSecondariesParams { + o.SetPaginationPageSize(paginationPageSize) + return o +} + +// SetPaginationPageSize adds the paginationPageSize to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetPaginationPageSize(paginationPageSize *int64) { + o.PaginationPageSize = paginationPageSize +} + +// WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) WithPaginationPreviousPageToken(paginationPreviousPageToken *string) *ListPerformanceReplicationSecondariesParams { + o.SetPaginationPreviousPageToken(paginationPreviousPageToken) + return o +} + +// SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list performance replication secondaries params +func (o *ListPerformanceReplicationSecondariesParams) SetPaginationPreviousPageToken(paginationPreviousPageToken *string) { + o.PaginationPreviousPageToken = paginationPreviousPageToken +} + +// WriteToRequest writes these params to a swagger request +func (o *ListPerformanceReplicationSecondariesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param cluster_id + if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { + return err + } + + // path param location.organization_id + if err := r.SetPathParam("location.organization_id", o.LocationOrganizationID); err != nil { + return err + } + + // path param location.project_id + if err := r.SetPathParam("location.project_id", o.LocationProjectID); err != nil { + return err + } + + if o.LocationRegionProvider != nil { + + // query param location.region.provider + var qrLocationRegionProvider string + if o.LocationRegionProvider != nil { + qrLocationRegionProvider = *o.LocationRegionProvider + } + qLocationRegionProvider := qrLocationRegionProvider + if qLocationRegionProvider != "" { + if err := r.SetQueryParam("location.region.provider", qLocationRegionProvider); err != nil { + return err + } + } + + } + + if o.LocationRegionRegion != nil { + + // query param location.region.region + var qrLocationRegionRegion string + if o.LocationRegionRegion != nil { + qrLocationRegionRegion = *o.LocationRegionRegion + } + qLocationRegionRegion := qrLocationRegionRegion + if qLocationRegionRegion != "" { + if err := r.SetQueryParam("location.region.region", qLocationRegionRegion); err != nil { + return err + } + } + + } + + if o.PaginationNextPageToken != nil { + + // query param pagination.next_page_token + var qrPaginationNextPageToken string + if o.PaginationNextPageToken != nil { + qrPaginationNextPageToken = *o.PaginationNextPageToken + } + qPaginationNextPageToken := qrPaginationNextPageToken + if qPaginationNextPageToken != "" { + if err := r.SetQueryParam("pagination.next_page_token", qPaginationNextPageToken); err != nil { + return err + } + } + + } + + if o.PaginationPageSize != nil { + + // query param pagination.page_size + var qrPaginationPageSize int64 + if o.PaginationPageSize != nil { + qrPaginationPageSize = *o.PaginationPageSize + } + qPaginationPageSize := swag.FormatInt64(qrPaginationPageSize) + if qPaginationPageSize != "" { + if err := r.SetQueryParam("pagination.page_size", qPaginationPageSize); err != nil { + return err + } + } + + } + + if o.PaginationPreviousPageToken != nil { + + // query param pagination.previous_page_token + var qrPaginationPreviousPageToken string + if o.PaginationPreviousPageToken != nil { + qrPaginationPreviousPageToken = *o.PaginationPreviousPageToken + } + qPaginationPreviousPageToken := qrPaginationPreviousPageToken + if qPaginationPreviousPageToken != "" { + if err := r.SetQueryParam("pagination.previous_page_token", qPaginationPreviousPageToken); err != nil { + return err + } + } + + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_performance_replication_secondaries_responses.go b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_performance_replication_secondaries_responses.go new file mode 100644 index 00000000..4e5f7980 --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/list_performance_replication_secondaries_responses.go @@ -0,0 +1,118 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package vault_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-11-25/models" +) + +// ListPerformanceReplicationSecondariesReader is a Reader for the ListPerformanceReplicationSecondaries structure. +type ListPerformanceReplicationSecondariesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ListPerformanceReplicationSecondariesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewListPerformanceReplicationSecondariesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewListPerformanceReplicationSecondariesDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewListPerformanceReplicationSecondariesOK creates a ListPerformanceReplicationSecondariesOK with default headers values +func NewListPerformanceReplicationSecondariesOK() *ListPerformanceReplicationSecondariesOK { + return &ListPerformanceReplicationSecondariesOK{} +} + +/*ListPerformanceReplicationSecondariesOK handles this case with default header values. + +A successful response. +*/ +type ListPerformanceReplicationSecondariesOK struct { + Payload *models.HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse +} + +func (o *ListPerformanceReplicationSecondariesOK) Error() string { + return fmt.Sprintf("[GET /vault/2020-11-25/organizations/{location.organization_id}/projects/{location.project_id}/clusters/{cluster_id}/list-performance-replication-secondaries][%d] listPerformanceReplicationSecondariesOK %+v", 200, o.Payload) +} + +func (o *ListPerformanceReplicationSecondariesOK) GetPayload() *models.HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse { + return o.Payload +} + +func (o *ListPerformanceReplicationSecondariesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewListPerformanceReplicationSecondariesDefault creates a ListPerformanceReplicationSecondariesDefault with default headers values +func NewListPerformanceReplicationSecondariesDefault(code int) *ListPerformanceReplicationSecondariesDefault { + return &ListPerformanceReplicationSecondariesDefault{ + _statusCode: code, + } +} + +/*ListPerformanceReplicationSecondariesDefault handles this case with default header values. + +An unexpected error response. +*/ +type ListPerformanceReplicationSecondariesDefault struct { + _statusCode int + + Payload *cloud.GrpcGatewayRuntimeError +} + +// Code gets the status code for the list performance replication secondaries default response +func (o *ListPerformanceReplicationSecondariesDefault) Code() int { + return o._statusCode +} + +func (o *ListPerformanceReplicationSecondariesDefault) Error() string { + return fmt.Sprintf("[GET /vault/2020-11-25/organizations/{location.organization_id}/projects/{location.project_id}/clusters/{cluster_id}/list-performance-replication-secondaries][%d] ListPerformanceReplicationSecondaries default %+v", o._statusCode, o.Payload) +} + +func (o *ListPerformanceReplicationSecondariesDefault) GetPayload() *cloud.GrpcGatewayRuntimeError { + return o.Payload +} + +func (o *ListPerformanceReplicationSecondariesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(cloud.GrpcGatewayRuntimeError) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/vault_service_client.go b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/vault_service_client.go index 0d03685f..89e5c014 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/vault_service_client.go +++ b/clients/cloud-vault-service/preview/2020-11-25/client/vault_service/vault_service_client.go @@ -49,8 +49,12 @@ type ClientService interface { GetSnapshot(params *GetSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*GetSnapshotOK, error) + GetUtilization(params *GetUtilizationParams, authInfo runtime.ClientAuthInfoWriter) (*GetUtilizationOK, error) + List(params *ListParams, authInfo runtime.ClientAuthInfoWriter) (*ListOK, error) + ListPerformanceReplicationSecondaries(params *ListPerformanceReplicationSecondariesParams, authInfo runtime.ClientAuthInfoWriter) (*ListPerformanceReplicationSecondariesOK, error) + ListSnapshots(params *ListSnapshotsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSnapshotsOK, error) RestoreSnapshot(params *RestoreSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*RestoreSnapshotOK, error) @@ -480,6 +484,40 @@ func (a *Client) GetSnapshot(params *GetSnapshotParams, authInfo runtime.ClientA return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* + GetUtilization get utilization API +*/ +func (a *Client) GetUtilization(params *GetUtilizationParams, authInfo runtime.ClientAuthInfoWriter) (*GetUtilizationOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetUtilizationParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "GetUtilization", + Method: "GET", + PathPattern: "/vault/2020-11-25/organizations/{location.organization_id}/projects/{location.project_id}/clusters/{cluster_id}/utilization", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetUtilizationReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*GetUtilizationOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*GetUtilizationDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* List list API */ @@ -514,6 +552,40 @@ func (a *Client) List(params *ListParams, authInfo runtime.ClientAuthInfoWriter) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* + ListPerformanceReplicationSecondaries list performance replication secondaries API +*/ +func (a *Client) ListPerformanceReplicationSecondaries(params *ListPerformanceReplicationSecondariesParams, authInfo runtime.ClientAuthInfoWriter) (*ListPerformanceReplicationSecondariesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewListPerformanceReplicationSecondariesParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "ListPerformanceReplicationSecondaries", + Method: "GET", + PathPattern: "/vault/2020-11-25/organizations/{location.organization_id}/projects/{location.project_id}/clusters/{cluster_id}/list-performance-replication-secondaries", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ListPerformanceReplicationSecondariesReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*ListPerformanceReplicationSecondariesOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*ListPerformanceReplicationSecondariesDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* ListSnapshots list snapshots API */ diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_audit_log_state.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_audit_log_state.go index ff8d998e..f53a03ea 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_audit_log_state.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_audit_log_state.go @@ -15,7 +15,7 @@ import ( // HashicorpCloudVault20201125AuditLogState State is the state of download. // -// - UNSET: UNSET is a sentinel zero value so that an uninitialized value can be +// - AUDIT_LOG_STATE_INVALID: AUDIT_LOG_STATE_INVALID is a sentinel zero value so that an uninitialized value can be // detected. // - PENDING: PENDING is the initial state before the workflow starts. // - CREATING: CREATING is the state used when the download is being prepared. @@ -29,8 +29,8 @@ type HashicorpCloudVault20201125AuditLogState string const ( - // HashicorpCloudVault20201125AuditLogStateUNSET captures enum value "UNSET" - HashicorpCloudVault20201125AuditLogStateUNSET HashicorpCloudVault20201125AuditLogState = "UNSET" + // HashicorpCloudVault20201125AuditLogStateAUDITLOGSTATEINVALID captures enum value "AUDIT_LOG_STATE_INVALID" + HashicorpCloudVault20201125AuditLogStateAUDITLOGSTATEINVALID HashicorpCloudVault20201125AuditLogState = "AUDIT_LOG_STATE_INVALID" // HashicorpCloudVault20201125AuditLogStatePENDING captures enum value "PENDING" HashicorpCloudVault20201125AuditLogStatePENDING HashicorpCloudVault20201125AuditLogState = "PENDING" @@ -53,7 +53,7 @@ var hashicorpCloudVault20201125AuditLogStateEnum []interface{} func init() { var res []HashicorpCloudVault20201125AuditLogState - if err := json.Unmarshal([]byte(`["UNSET","PENDING","CREATING","READY","FAILED","EXPIRED"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["AUDIT_LOG_STATE_INVALID","PENDING","CREATING","READY","FAILED","EXPIRED"]`), &res); err != nil { panic(err) } for _, v := range res { diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster.go index af84102e..a123721b 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster.go @@ -37,6 +37,12 @@ type HashicorpCloudVault20201125Cluster struct { // location is the location of the cluster. Location *cloud.HashicorpCloudLocationLocation `json:"location,omitempty"` + // performance_replication_info contains the performance replication information. + PerformanceReplicationInfo *HashicorpCloudVault20201125ClusterPerformanceReplicationInfo `json:"performance_replication_info,omitempty"` + + // resource_id is UUID of the Vault cluster. + ResourceID string `json:"resource_id,omitempty"` + // state is the current state of the cluster. State HashicorpCloudVault20201125ClusterState `json:"state,omitempty"` } @@ -61,6 +67,10 @@ func (m *HashicorpCloudVault20201125Cluster) Validate(formats strfmt.Registry) e res = append(res, err) } + if err := m.validatePerformanceReplicationInfo(formats); err != nil { + res = append(res, err) + } + if err := m.validateState(formats); err != nil { res = append(res, err) } @@ -138,6 +148,24 @@ func (m *HashicorpCloudVault20201125Cluster) validateLocation(formats strfmt.Reg return nil } +func (m *HashicorpCloudVault20201125Cluster) validatePerformanceReplicationInfo(formats strfmt.Registry) error { + + if swag.IsZero(m.PerformanceReplicationInfo) { // not required + return nil + } + + if m.PerformanceReplicationInfo != nil { + if err := m.PerformanceReplicationInfo.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("performance_replication_info") + } + return err + } + } + + return nil +} + func (m *HashicorpCloudVault20201125Cluster) validateState(formats strfmt.Registry) error { if swag.IsZero(m.State) { // not required diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_config.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_config.go index 3569b9b8..f02b105b 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_config.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_config.go @@ -19,6 +19,9 @@ type HashicorpCloudVault20201125ClusterConfig struct { // audit config AuditConfig *HashicorpCloudVault20201125AuditConfig `json:"audit_config,omitempty"` + // audit log export config + AuditLogExportConfig *HashicorpCloudVault20201125ObservabilityConfig `json:"audit_log_export_config,omitempty"` + // capacity config CapacityConfig *HashicorpCloudVault20201125CapacityConfig `json:"capacity_config,omitempty"` @@ -52,6 +55,10 @@ func (m *HashicorpCloudVault20201125ClusterConfig) Validate(formats strfmt.Regis res = append(res, err) } + if err := m.validateAuditLogExportConfig(formats); err != nil { + res = append(res, err) + } + if err := m.validateCapacityConfig(formats); err != nil { res = append(res, err) } @@ -104,6 +111,24 @@ func (m *HashicorpCloudVault20201125ClusterConfig) validateAuditConfig(formats s return nil } +func (m *HashicorpCloudVault20201125ClusterConfig) validateAuditLogExportConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.AuditLogExportConfig) { // not required + return nil + } + + if m.AuditLogExportConfig != nil { + if err := m.AuditLogExportConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("audit_log_export_config") + } + return err + } + } + + return nil +} + func (m *HashicorpCloudVault20201125ClusterConfig) validateCapacityConfig(formats strfmt.Registry) error { if swag.IsZero(m.CapacityConfig) { // not required diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_performance_replication_info.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_performance_replication_info.go new file mode 100644 index 00000000..8f2ee57a --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_performance_replication_info.go @@ -0,0 +1,97 @@ +// 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/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" +) + +// HashicorpCloudVault20201125ClusterPerformanceReplicationInfo PerformanceReplicationInfo holds Performance Replication information +// +// swagger:model hashicorp.cloud.vault_20201125.Cluster.PerformanceReplicationInfo +type HashicorpCloudVault20201125ClusterPerformanceReplicationInfo struct { + + // Mode holds the replication mode type. + Mode HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode `json:"mode,omitempty"` + + // primary_cluster_link holds the link information of the + // primary cluster to which the current cluster is replicated to. This field + // only applies when the cluster is a Secondary under Cluster Performance Replication. + PrimaryClusterLink *cloud.HashicorpCloudLocationLink `json:"primary_cluster_link,omitempty"` +} + +// Validate validates this hashicorp cloud vault 20201125 cluster performance replication info +func (m *HashicorpCloudVault20201125ClusterPerformanceReplicationInfo) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateMode(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePrimaryClusterLink(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *HashicorpCloudVault20201125ClusterPerformanceReplicationInfo) validateMode(formats strfmt.Registry) error { + + if swag.IsZero(m.Mode) { // not required + return nil + } + + if err := m.Mode.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("mode") + } + return err + } + + return nil +} + +func (m *HashicorpCloudVault20201125ClusterPerformanceReplicationInfo) validatePrimaryClusterLink(formats strfmt.Registry) error { + + if swag.IsZero(m.PrimaryClusterLink) { // not required + return nil + } + + if m.PrimaryClusterLink != nil { + if err := m.PrimaryClusterLink.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("primary_cluster_link") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *HashicorpCloudVault20201125ClusterPerformanceReplicationInfo) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *HashicorpCloudVault20201125ClusterPerformanceReplicationInfo) UnmarshalBinary(b []byte) error { + var res HashicorpCloudVault20201125ClusterPerformanceReplicationInfo + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_performance_replication_info_mode.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_performance_replication_info_mode.go new file mode 100644 index 00000000..08f44bfb --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_performance_replication_info_mode.go @@ -0,0 +1,71 @@ +// 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 ( + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/validate" +) + +// HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode Mode represents the role type for the Performance Replicated cluster. +// +// - CLUSTER_PERFORMANCE_REPLICATION_INFO_MODE_INVALID: CLUSTER_PERFORMANCE_REPLICATION_INFO_MODE_INVALID is a sentinel zero value so that an uninitialized value can be +// detected. +// - PRIMARY: PRIMARY mode type. +// - SECONDARY: SECONDARY mode type. +// +// swagger:model hashicorp.cloud.vault_20201125.Cluster.PerformanceReplicationInfo.Mode +type HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode string + +const ( + + // HashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeCLUSTERPERFORMANCEREPLICATIONINFOMODEINVALID captures enum value "CLUSTER_PERFORMANCE_REPLICATION_INFO_MODE_INVALID" + HashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeCLUSTERPERFORMANCEREPLICATIONINFOMODEINVALID HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode = "CLUSTER_PERFORMANCE_REPLICATION_INFO_MODE_INVALID" + + // HashicorpCloudVault20201125ClusterPerformanceReplicationInfoModePRIMARY captures enum value "PRIMARY" + HashicorpCloudVault20201125ClusterPerformanceReplicationInfoModePRIMARY HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode = "PRIMARY" + + // HashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeSECONDARY captures enum value "SECONDARY" + HashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeSECONDARY HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode = "SECONDARY" +) + +// for schema +var hashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeEnum []interface{} + +func init() { + var res []HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode + if err := json.Unmarshal([]byte(`["CLUSTER_PERFORMANCE_REPLICATION_INFO_MODE_INVALID","PRIMARY","SECONDARY"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + hashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeEnum = append(hashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeEnum, v) + } +} + +func (m HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode) validateHashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeEnum(path, location string, value HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode) error { + if err := validate.EnumCase(path, location, value, hashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeEnum, true); err != nil { + return err + } + return nil +} + +// Validate validates this hashicorp cloud vault 20201125 cluster performance replication info mode +func (m HashicorpCloudVault20201125ClusterPerformanceReplicationInfoMode) Validate(formats strfmt.Registry) error { + var res []error + + // value enum + if err := m.validateHashicorpCloudVault20201125ClusterPerformanceReplicationInfoModeEnum("", "body", m); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_state.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_state.go index c74d2d12..976a2fc9 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_state.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_cluster_state.go @@ -17,7 +17,7 @@ import ( // represents the abstract Vault cluster itself, not necessarily whether // Vault cluster is currently available or not. // -// - UNSET: UNSET is a sentinel zero value so that an uninitialized value can be +// - CLUSTER_STATE_INVALID: CLUSTER_STATE_INVALID is a sentinel zero value so that an uninitialized value can be // detected. // - PENDING: PENDING is the state the cluster is in while it is waiting to be created. // - CREATING: CREATING is the state the cluster is in while it is being provisioned for @@ -40,8 +40,8 @@ type HashicorpCloudVault20201125ClusterState string const ( - // HashicorpCloudVault20201125ClusterStateUNSET captures enum value "UNSET" - HashicorpCloudVault20201125ClusterStateUNSET HashicorpCloudVault20201125ClusterState = "UNSET" + // HashicorpCloudVault20201125ClusterStateCLUSTERSTATEINVALID captures enum value "CLUSTER_STATE_INVALID" + HashicorpCloudVault20201125ClusterStateCLUSTERSTATEINVALID HashicorpCloudVault20201125ClusterState = "CLUSTER_STATE_INVALID" // HashicorpCloudVault20201125ClusterStatePENDING captures enum value "PENDING" HashicorpCloudVault20201125ClusterStatePENDING HashicorpCloudVault20201125ClusterState = "PENDING" @@ -82,7 +82,7 @@ var hashicorpCloudVault20201125ClusterStateEnum []interface{} func init() { var res []HashicorpCloudVault20201125ClusterState - if err := json.Unmarshal([]byte(`["UNSET","PENDING","CREATING","RUNNING","FAILED","UPDATING","RESTORING","DELETING","DELETED","SEALING","SEALED","UNSEALING"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["CLUSTER_STATE_INVALID","PENDING","CREATING","RUNNING","FAILED","UPDATING","RESTORING","DELETING","DELETED","SEALING","SEALED","UNSEALING"]`), &res); err != nil { panic(err) } for _, v := range res { diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response.go new file mode 100644 index 00000000..0bd6f06a --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response.go @@ -0,0 +1,146 @@ +// 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/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// HashicorpCloudVault20201125GetUtilizationResponse hashicorp cloud vault 20201125 get utilization response +// +// swagger:model hashicorp.cloud.vault_20201125.GetUtilizationResponse +type HashicorpCloudVault20201125GetUtilizationResponse struct { + + // clients + Clients *HashicorpCloudVault20201125GetUtilizationResponseValue `json:"clients,omitempty"` + + // disk usage bytes + DiskUsageBytes *HashicorpCloudVault20201125GetUtilizationResponseValue `json:"disk_usage_bytes,omitempty"` + + // distinct entities + DistinctEntities *HashicorpCloudVault20201125GetUtilizationResponseValue `json:"distinct_entities,omitempty"` + + // non entity tokens + NonEntityTokens *HashicorpCloudVault20201125GetUtilizationResponseValue `json:"non_entity_tokens,omitempty"` +} + +// Validate validates this hashicorp cloud vault 20201125 get utilization response +func (m *HashicorpCloudVault20201125GetUtilizationResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateClients(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDiskUsageBytes(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDistinctEntities(formats); err != nil { + res = append(res, err) + } + + if err := m.validateNonEntityTokens(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *HashicorpCloudVault20201125GetUtilizationResponse) validateClients(formats strfmt.Registry) error { + + if swag.IsZero(m.Clients) { // not required + return nil + } + + if m.Clients != nil { + if err := m.Clients.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("clients") + } + return err + } + } + + return nil +} + +func (m *HashicorpCloudVault20201125GetUtilizationResponse) validateDiskUsageBytes(formats strfmt.Registry) error { + + if swag.IsZero(m.DiskUsageBytes) { // not required + return nil + } + + if m.DiskUsageBytes != nil { + if err := m.DiskUsageBytes.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("disk_usage_bytes") + } + return err + } + } + + return nil +} + +func (m *HashicorpCloudVault20201125GetUtilizationResponse) validateDistinctEntities(formats strfmt.Registry) error { + + if swag.IsZero(m.DistinctEntities) { // not required + return nil + } + + if m.DistinctEntities != nil { + if err := m.DistinctEntities.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("distinct_entities") + } + return err + } + } + + return nil +} + +func (m *HashicorpCloudVault20201125GetUtilizationResponse) validateNonEntityTokens(formats strfmt.Registry) error { + + if swag.IsZero(m.NonEntityTokens) { // not required + return nil + } + + if m.NonEntityTokens != nil { + if err := m.NonEntityTokens.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("non_entity_tokens") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *HashicorpCloudVault20201125GetUtilizationResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *HashicorpCloudVault20201125GetUtilizationResponse) UnmarshalBinary(b []byte) error { + var res HashicorpCloudVault20201125GetUtilizationResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response_value.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response_value.go new file mode 100644 index 00000000..9a357853 --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response_value.go @@ -0,0 +1,97 @@ +// 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/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// HashicorpCloudVault20201125GetUtilizationResponseValue hashicorp cloud vault 20201125 get utilization response value +// +// swagger:model hashicorp.cloud.vault_20201125.GetUtilizationResponse.Value +type HashicorpCloudVault20201125GetUtilizationResponseValue struct { + + // max value + MaxValue float32 `json:"max_value,omitempty"` + + // unit + Unit HashicorpCloudVault20201125GetUtilizationResponseValueUnit `json:"unit,omitempty"` + + // updated at + // Format: date-time + UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` + + // value + Value float32 `json:"value,omitempty"` +} + +// Validate validates this hashicorp cloud vault 20201125 get utilization response value +func (m *HashicorpCloudVault20201125GetUtilizationResponseValue) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateUnit(formats); err != nil { + res = append(res, err) + } + + if err := m.validateUpdatedAt(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *HashicorpCloudVault20201125GetUtilizationResponseValue) validateUnit(formats strfmt.Registry) error { + + if swag.IsZero(m.Unit) { // not required + return nil + } + + if err := m.Unit.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("unit") + } + return err + } + + return nil +} + +func (m *HashicorpCloudVault20201125GetUtilizationResponseValue) validateUpdatedAt(formats strfmt.Registry) error { + + if swag.IsZero(m.UpdatedAt) { // not required + return nil + } + + if err := validate.FormatOf("updated_at", "body", "date-time", m.UpdatedAt.String(), formats); err != nil { + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *HashicorpCloudVault20201125GetUtilizationResponseValue) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *HashicorpCloudVault20201125GetUtilizationResponseValue) UnmarshalBinary(b []byte) error { + var res HashicorpCloudVault20201125GetUtilizationResponseValue + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response_value_unit.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response_value_unit.go new file mode 100644 index 00000000..4ccf3588 --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_get_utilization_response_value_unit.go @@ -0,0 +1,66 @@ +// 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 ( + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/validate" +) + +// HashicorpCloudVault20201125GetUtilizationResponseValueUnit hashicorp cloud vault 20201125 get utilization response value unit +// +// swagger:model hashicorp.cloud.vault_20201125.GetUtilizationResponse.Value.Unit +type HashicorpCloudVault20201125GetUtilizationResponseValueUnit string + +const ( + + // HashicorpCloudVault20201125GetUtilizationResponseValueUnitGETUTILIZATIONRESPONSEVALUEUNITINVALID captures enum value "GET_UTILIZATION_RESPONSE_VALUE_UNIT_INVALID" + HashicorpCloudVault20201125GetUtilizationResponseValueUnitGETUTILIZATIONRESPONSEVALUEUNITINVALID HashicorpCloudVault20201125GetUtilizationResponseValueUnit = "GET_UTILIZATION_RESPONSE_VALUE_UNIT_INVALID" + + // HashicorpCloudVault20201125GetUtilizationResponseValueUnitBYTES captures enum value "BYTES" + HashicorpCloudVault20201125GetUtilizationResponseValueUnitBYTES HashicorpCloudVault20201125GetUtilizationResponseValueUnit = "BYTES" + + // HashicorpCloudVault20201125GetUtilizationResponseValueUnitCOUNT captures enum value "COUNT" + HashicorpCloudVault20201125GetUtilizationResponseValueUnitCOUNT HashicorpCloudVault20201125GetUtilizationResponseValueUnit = "COUNT" +) + +// for schema +var hashicorpCloudVault20201125GetUtilizationResponseValueUnitEnum []interface{} + +func init() { + var res []HashicorpCloudVault20201125GetUtilizationResponseValueUnit + if err := json.Unmarshal([]byte(`["GET_UTILIZATION_RESPONSE_VALUE_UNIT_INVALID","BYTES","COUNT"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + hashicorpCloudVault20201125GetUtilizationResponseValueUnitEnum = append(hashicorpCloudVault20201125GetUtilizationResponseValueUnitEnum, v) + } +} + +func (m HashicorpCloudVault20201125GetUtilizationResponseValueUnit) validateHashicorpCloudVault20201125GetUtilizationResponseValueUnitEnum(path, location string, value HashicorpCloudVault20201125GetUtilizationResponseValueUnit) error { + if err := validate.EnumCase(path, location, value, hashicorpCloudVault20201125GetUtilizationResponseValueUnitEnum, true); err != nil { + return err + } + return nil +} + +// Validate validates this hashicorp cloud vault 20201125 get utilization response value unit +func (m HashicorpCloudVault20201125GetUtilizationResponseValueUnit) Validate(formats strfmt.Registry) error { + var res []error + + // value enum + if err := m.validateHashicorpCloudVault20201125GetUtilizationResponseValueUnitEnum("", "body", m); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_input_cluster.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_input_cluster.go index ce66417c..9fe6fada 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_input_cluster.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_input_cluster.go @@ -25,6 +25,10 @@ type HashicorpCloudVault20201125InputCluster struct { // location is the location of the cluster. Location *cloud.HashicorpCloudLocationLocation `json:"location,omitempty"` + + // performance_replication_primary_cluster holds the link information of the + // primary cluster under performance replication. + PerformanceReplicationPrimaryCluster *cloud.HashicorpCloudLocationLink `json:"performance_replication_primary_cluster,omitempty"` } // Validate validates this hashicorp cloud vault 20201125 input cluster @@ -39,6 +43,10 @@ func (m *HashicorpCloudVault20201125InputCluster) Validate(formats strfmt.Regist res = append(res, err) } + if err := m.validatePerformanceReplicationPrimaryCluster(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -81,6 +89,24 @@ func (m *HashicorpCloudVault20201125InputCluster) validateLocation(formats strfm return nil } +func (m *HashicorpCloudVault20201125InputCluster) validatePerformanceReplicationPrimaryCluster(formats strfmt.Registry) error { + + if swag.IsZero(m.PerformanceReplicationPrimaryCluster) { // not required + return nil + } + + if m.PerformanceReplicationPrimaryCluster != nil { + if err := m.PerformanceReplicationPrimaryCluster.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("performance_replication_primary_cluster") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *HashicorpCloudVault20201125InputCluster) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_input_cluster_config.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_input_cluster_config.go index 85b72ee2..849b03c4 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_input_cluster_config.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_input_cluster_config.go @@ -16,6 +16,9 @@ import ( // swagger:model hashicorp.cloud.vault_20201125.InputClusterConfig type HashicorpCloudVault20201125InputClusterConfig struct { + // audit_log_export_config is the configuration settings for exporting Vault's log information + AuditLogExportConfig *HashicorpCloudVault20201125ObservabilityConfig `json:"audit_log_export_config,omitempty"` + // metrics_config is the configuration settings for exporting Vault's observability information MetricsConfig *HashicorpCloudVault20201125ObservabilityConfig `json:"metrics_config,omitempty"` @@ -33,6 +36,10 @@ type HashicorpCloudVault20201125InputClusterConfig struct { func (m *HashicorpCloudVault20201125InputClusterConfig) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateAuditLogExportConfig(formats); err != nil { + res = append(res, err) + } + if err := m.validateMetricsConfig(formats); err != nil { res = append(res, err) } @@ -55,6 +62,24 @@ func (m *HashicorpCloudVault20201125InputClusterConfig) Validate(formats strfmt. return nil } +func (m *HashicorpCloudVault20201125InputClusterConfig) validateAuditLogExportConfig(formats strfmt.Registry) error { + + if swag.IsZero(m.AuditLogExportConfig) { // not required + return nil + } + + if m.AuditLogExportConfig != nil { + if err := m.AuditLogExportConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("audit_log_export_config") + } + return err + } + } + + return nil +} + func (m *HashicorpCloudVault20201125InputClusterConfig) validateMetricsConfig(formats strfmt.Registry) error { if swag.IsZero(m.MetricsConfig) { // not required diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_list_performance_replication_secondaries_response.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_list_performance_replication_secondaries_response.go new file mode 100644 index 00000000..6ec224c8 --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_list_performance_replication_secondaries_response.go @@ -0,0 +1,106 @@ +// 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" + cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" +) + +// HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse hashicorp cloud vault 20201125 list performance replication secondaries response +// +// swagger:model hashicorp.cloud.vault_20201125.ListPerformanceReplicationSecondariesResponse +type HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse struct { + + // pagination + Pagination *cloud.HashicorpCloudCommonPaginationResponse `json:"pagination,omitempty"` + + // secondaries + Secondaries []*HashicorpCloudVault20201125Cluster `json:"secondaries"` +} + +// Validate validates this hashicorp cloud vault 20201125 list performance replication secondaries response +func (m *HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validatePagination(formats); err != nil { + res = append(res, err) + } + + if err := m.validateSecondaries(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse) validatePagination(formats strfmt.Registry) error { + + if swag.IsZero(m.Pagination) { // not required + return nil + } + + if m.Pagination != nil { + if err := m.Pagination.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("pagination") + } + return err + } + } + + return nil +} + +func (m *HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse) validateSecondaries(formats strfmt.Registry) error { + + if swag.IsZero(m.Secondaries) { // not required + return nil + } + + for i := 0; i < len(m.Secondaries); i++ { + if swag.IsZero(m.Secondaries[i]) { // not required + continue + } + + if m.Secondaries[i] != nil { + if err := m.Secondaries[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secondaries" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse) UnmarshalBinary(b []byte) error { + var res HashicorpCloudVault20201125ListPerformanceReplicationSecondariesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_list_request_filters.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_list_request_filters.go new file mode 100644 index 00000000..edc71e53 --- /dev/null +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_list_request_filters.go @@ -0,0 +1,43 @@ +// 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" +) + +// HashicorpCloudVault20201125ListRequestFilters hashicorp cloud vault 20201125 list request filters +// +// swagger:model hashicorp.cloud.vault_20201125.ListRequestFilters +type HashicorpCloudVault20201125ListRequestFilters struct { + + // primaries only + PrimariesOnly bool `json:"primaries_only,omitempty"` +} + +// Validate validates this hashicorp cloud vault 20201125 list request filters +func (m *HashicorpCloudVault20201125ListRequestFilters) Validate(formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *HashicorpCloudVault20201125ListRequestFilters) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *HashicorpCloudVault20201125ListRequestFilters) UnmarshalBinary(b []byte) error { + var res HashicorpCloudVault20201125ListRequestFilters + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_snapshot_state.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_snapshot_state.go index 3e18c855..ff5cffb3 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_snapshot_state.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_snapshot_state.go @@ -20,8 +20,8 @@ type HashicorpCloudVault20201125SnapshotState string const ( - // HashicorpCloudVault20201125SnapshotStateUNSET captures enum value "UNSET" - HashicorpCloudVault20201125SnapshotStateUNSET HashicorpCloudVault20201125SnapshotState = "UNSET" + // HashicorpCloudVault20201125SnapshotStateSNAPSHOTSTATEINVALID captures enum value "SNAPSHOT_STATE_INVALID" + HashicorpCloudVault20201125SnapshotStateSNAPSHOTSTATEINVALID HashicorpCloudVault20201125SnapshotState = "SNAPSHOT_STATE_INVALID" // HashicorpCloudVault20201125SnapshotStatePENDING captures enum value "PENDING" HashicorpCloudVault20201125SnapshotStatePENDING HashicorpCloudVault20201125SnapshotState = "PENDING" @@ -44,7 +44,7 @@ var hashicorpCloudVault20201125SnapshotStateEnum []interface{} func init() { var res []HashicorpCloudVault20201125SnapshotState - if err := json.Unmarshal([]byte(`["UNSET","PENDING","CREATING","STORED","FAILED","DELETING"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["SNAPSHOT_STATE_INVALID","PENDING","CREATING","STORED","FAILED","DELETING"]`), &res); err != nil { panic(err) } for _, v := range res { diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_snapshot_type.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_snapshot_type.go index 825ecb2a..3f6934a2 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_snapshot_type.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_snapshot_type.go @@ -20,8 +20,8 @@ type HashicorpCloudVault20201125SnapshotType string const ( - // HashicorpCloudVault20201125SnapshotTypeTYPEUNSET captures enum value "TYPE_UNSET" - HashicorpCloudVault20201125SnapshotTypeTYPEUNSET HashicorpCloudVault20201125SnapshotType = "TYPE_UNSET" + // HashicorpCloudVault20201125SnapshotTypeSNAPSHOTTYPEINVALID captures enum value "SNAPSHOT_TYPE_INVALID" + HashicorpCloudVault20201125SnapshotTypeSNAPSHOTTYPEINVALID HashicorpCloudVault20201125SnapshotType = "SNAPSHOT_TYPE_INVALID" // HashicorpCloudVault20201125SnapshotTypeAUTOMATIC captures enum value "AUTOMATIC" HashicorpCloudVault20201125SnapshotTypeAUTOMATIC HashicorpCloudVault20201125SnapshotType = "AUTOMATIC" @@ -41,7 +41,7 @@ var hashicorpCloudVault20201125SnapshotTypeEnum []interface{} func init() { var res []HashicorpCloudVault20201125SnapshotType - if err := json.Unmarshal([]byte(`["TYPE_UNSET","AUTOMATIC","SCHEDULED","MANUAL","BEFORE_UPGRADE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["SNAPSHOT_TYPE_INVALID","AUTOMATIC","SCHEDULED","MANUAL","BEFORE_UPGRADE"]`), &res); err != nil { panic(err) } for _, v := range res { diff --git a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_tier.go b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_tier.go index 86cf7bf3..deb0277c 100644 --- a/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_tier.go +++ b/clients/cloud-vault-service/preview/2020-11-25/models/hashicorp_cloud_vault20201125_tier.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/validate" ) -// HashicorpCloudVault20201125Tier hashicorp cloud vault 20201125 tier +// HashicorpCloudVault20201125Tier - DEV: NOTE: enum 0 values should be invalid. Use this field with care in GORM queries. // // swagger:model hashicorp.cloud.vault_20201125.Tier type HashicorpCloudVault20201125Tier string @@ -34,6 +34,15 @@ const ( // HashicorpCloudVault20201125TierSTARTERSMALL captures enum value "STARTER_SMALL" HashicorpCloudVault20201125TierSTARTERSMALL HashicorpCloudVault20201125Tier = "STARTER_SMALL" + + // HashicorpCloudVault20201125TierPLUSSMALL captures enum value "PLUS_SMALL" + HashicorpCloudVault20201125TierPLUSSMALL HashicorpCloudVault20201125Tier = "PLUS_SMALL" + + // HashicorpCloudVault20201125TierPLUSMEDIUM captures enum value "PLUS_MEDIUM" + HashicorpCloudVault20201125TierPLUSMEDIUM HashicorpCloudVault20201125Tier = "PLUS_MEDIUM" + + // HashicorpCloudVault20201125TierPLUSLARGE captures enum value "PLUS_LARGE" + HashicorpCloudVault20201125TierPLUSLARGE HashicorpCloudVault20201125Tier = "PLUS_LARGE" ) // for schema @@ -41,7 +50,7 @@ var hashicorpCloudVault20201125TierEnum []interface{} func init() { var res []HashicorpCloudVault20201125Tier - if err := json.Unmarshal([]byte(`["DEV","STANDARD_SMALL","STANDARD_MEDIUM","STANDARD_LARGE","STARTER_SMALL"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["DEV","STANDARD_SMALL","STANDARD_MEDIUM","STANDARD_LARGE","STARTER_SMALL","PLUS_SMALL","PLUS_MEDIUM","PLUS_LARGE"]`), &res); err != nil { panic(err) } for _, v := range res { diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/cloud_vault_service_client.go b/clients/cloud-vault-service/stable/2020-04-20/client/cloud_vault_service_client.go similarity index 96% rename from clients/cloud-vault-service/preview/2020-04-20/client/cloud_vault_service_client.go rename to clients/cloud-vault-service/stable/2020-04-20/client/cloud_vault_service_client.go index 0071797a..0ead3cfb 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/cloud_vault_service_client.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/cloud_vault_service_client.go @@ -10,7 +10,7 @@ import ( httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/client/vault_service" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/client/vault_service" ) // Default cloud vault service HTTP client. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_parameters.go index 58bcc3ae..6440b014 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewCreateParams creates a new CreateParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_responses.go index cf1615bc..f67f7d4a 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // CreateReader is a Reader for the Create structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_snapshot_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_snapshot_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_snapshot_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_snapshot_parameters.go index 950ce161..04caae4e 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_snapshot_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_snapshot_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewCreateSnapshotParams creates a new CreateSnapshotParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_snapshot_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_snapshot_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_snapshot_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_snapshot_responses.go index 8ea81a84..c48cd87a 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/create_snapshot_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/create_snapshot_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // CreateSnapshotReader is a Reader for the CreateSnapshot structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_responses.go index 97aa0a45..c245130c 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // DeleteReader is a Reader for the Delete structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_snapshot_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_snapshot_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_snapshot_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_snapshot_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_snapshot_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_snapshot_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_snapshot_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_snapshot_responses.go index 9b32617e..a1674c35 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/delete_snapshot_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/delete_snapshot_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // DeleteSnapshotReader is a Reader for the DeleteSnapshot structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/disable_c_o_r_s_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/disable_c_o_r_s_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/disable_c_o_r_s_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/disable_c_o_r_s_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/disable_c_o_r_s_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/disable_c_o_r_s_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/disable_c_o_r_s_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/disable_c_o_r_s_responses.go index 038cf215..b51bf4d1 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/disable_c_o_r_s_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/disable_c_o_r_s_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // DisableCORSReader is a Reader for the DisableCORS structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/fetch_audit_log_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/fetch_audit_log_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/fetch_audit_log_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/fetch_audit_log_parameters.go index 91fce421..0fdfa095 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/fetch_audit_log_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/fetch_audit_log_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewFetchAuditLogParams creates a new FetchAuditLogParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/fetch_audit_log_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/fetch_audit_log_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/fetch_audit_log_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/fetch_audit_log_responses.go index 247ab1f3..265bfb06 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/fetch_audit_log_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/fetch_audit_log_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // FetchAuditLogReader is a Reader for the FetchAuditLog structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_admin_token_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_admin_token_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_admin_token_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_admin_token_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_admin_token_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_admin_token_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_admin_token_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_admin_token_responses.go index 1220741e..6e69cf4a 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_admin_token_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_admin_token_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // GetAdminTokenReader is a Reader for the GetAdminToken structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_audit_log_status_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_audit_log_status_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_audit_log_status_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_audit_log_status_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_audit_log_status_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_audit_log_status_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_audit_log_status_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_audit_log_status_responses.go index a25c694a..f8715b8c 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_audit_log_status_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_audit_log_status_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // GetAuditLogStatusReader is a Reader for the GetAuditLogStatus structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_c_o_r_s_config_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_c_o_r_s_config_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_c_o_r_s_config_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_c_o_r_s_config_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_c_o_r_s_config_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_c_o_r_s_config_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_c_o_r_s_config_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_c_o_r_s_config_responses.go index 5592a1a0..217c9554 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_c_o_r_s_config_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_c_o_r_s_config_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // GetCORSConfigReader is a Reader for the GetCORSConfig structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_responses.go index fbe3af47..d4399111 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // GetReader is a Reader for the Get structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_snapshot_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_snapshot_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_snapshot_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_snapshot_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_snapshot_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_snapshot_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_snapshot_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_snapshot_responses.go index b44908af..7158415f 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/get_snapshot_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/get_snapshot_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // GetSnapshotReader is a Reader for the GetSnapshot structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_responses.go index d9666fda..56396331 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // ListReader is a Reader for the List structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_snapshots_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_snapshots_parameters.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_snapshots_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_snapshots_parameters.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_snapshots_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_snapshots_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_snapshots_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_snapshots_responses.go index 3f626eff..c42a9a74 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/list_snapshots_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/list_snapshots_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // ListSnapshotsReader is a Reader for the ListSnapshots structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/restore_snapshot_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/restore_snapshot_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/restore_snapshot_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/restore_snapshot_parameters.go index a11982a7..d1a322db 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/restore_snapshot_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/restore_snapshot_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewRestoreSnapshotParams creates a new RestoreSnapshotParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/restore_snapshot_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/restore_snapshot_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/restore_snapshot_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/restore_snapshot_responses.go index 6ba1bde2..4de8152c 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/restore_snapshot_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/restore_snapshot_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // RestoreSnapshotReader is a Reader for the RestoreSnapshot structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/seal_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/seal_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/seal_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/seal_parameters.go index 69b0027d..7c5e36b6 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/seal_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/seal_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewSealParams creates a new SealParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/seal_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/seal_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/seal_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/seal_responses.go index dac39e19..9fbfa44b 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/seal_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/seal_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // SealReader is a Reader for the Seal structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/unseal_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/unseal_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/unseal_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/unseal_parameters.go index 463876d2..840c55e8 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/unseal_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/unseal_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewUnsealParams creates a new UnsealParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/unseal_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/unseal_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/unseal_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/unseal_responses.go index 24feca13..32d5d64e 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/unseal_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/unseal_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // UnsealReader is a Reader for the Unseal structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_c_o_r_s_config_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_c_o_r_s_config_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_c_o_r_s_config_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_c_o_r_s_config_parameters.go index f78ae3ec..d7122ccb 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_c_o_r_s_config_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_c_o_r_s_config_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewUpdateCORSConfigParams creates a new UpdateCORSConfigParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_c_o_r_s_config_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_c_o_r_s_config_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_c_o_r_s_config_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_c_o_r_s_config_responses.go index 6644addf..91ba65c4 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_c_o_r_s_config_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_c_o_r_s_config_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // UpdateCORSConfigReader is a Reader for the UpdateCORSConfig structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_public_ips_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_public_ips_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_public_ips_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_public_ips_parameters.go index ff9dbbb5..98273ee1 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_public_ips_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_public_ips_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewUpdatePublicIpsParams creates a new UpdatePublicIpsParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_public_ips_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_public_ips_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_public_ips_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_public_ips_responses.go index f67bf835..3233fbb9 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_public_ips_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_public_ips_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // UpdatePublicIpsReader is a Reader for the UpdatePublicIps structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_snapshot_parameters.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_snapshot_parameters.go similarity index 98% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_snapshot_parameters.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_snapshot_parameters.go index cd811552..163114e7 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_snapshot_parameters.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_snapshot_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // NewUpdateSnapshotParams creates a new UpdateSnapshotParams object diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_snapshot_responses.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_snapshot_responses.go similarity index 97% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_snapshot_responses.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_snapshot_responses.go index ff035223..07fae86e 100644 --- a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/update_snapshot_responses.go +++ b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/update_snapshot_responses.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/strfmt" cloud "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" - "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/preview/2020-04-20/models" + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-service/stable/2020-04-20/models" ) // UpdateSnapshotReader is a Reader for the UpdateSnapshot structure. diff --git a/clients/cloud-vault-service/preview/2020-04-20/client/vault_service/vault_service_client.go b/clients/cloud-vault-service/stable/2020-04-20/client/vault_service/vault_service_client.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/client/vault_service/vault_service_client.go rename to clients/cloud-vault-service/stable/2020-04-20/client/vault_service/vault_service_client.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_audit_config.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_audit_config.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_audit_config.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_audit_config.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log_state.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log_state.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log_state.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_audit_log_state.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_c_o_r_s_config.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_c_o_r_s_config.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_c_o_r_s_config.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_c_o_r_s_config.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_capacity_config.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_capacity_config.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_capacity_config.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_capacity_config.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_cluster.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_cluster.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_cluster.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_cluster.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_config.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_config.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_config.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_config.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_dns_names.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_dns_names.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_dns_names.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_dns_names.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_state.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_state.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_state.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_cluster_state.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_create_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_create_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_create_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_create_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_create_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_create_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_create_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_create_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_create_snapshot_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_delete_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_delete_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_delete_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_delete_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_delete_snapshot_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_delete_snapshot_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_delete_snapshot_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_delete_snapshot_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_disable_c_o_r_s_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_disable_c_o_r_s_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_disable_c_o_r_s_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_disable_c_o_r_s_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_fetch_audit_log_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_admin_token_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_admin_token_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_admin_token_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_admin_token_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_audit_log_status_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_audit_log_status_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_audit_log_status_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_audit_log_status_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_c_o_r_s_config_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_c_o_r_s_config_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_c_o_r_s_config_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_c_o_r_s_config_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_snapshot_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_snapshot_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_get_snapshot_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_get_snapshot_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_list_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_list_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_list_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_list_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_list_snapshots_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_list_snapshots_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_list_snapshots_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_list_snapshots_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_maintenance_config.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_maintenance_config.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_maintenance_config.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_maintenance_config.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_network_config.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_network_config.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_network_config.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_network_config.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_restore_snapshot_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_seal_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_seal_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_seal_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_seal_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_seal_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_seal_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_seal_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_seal_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_config.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_config.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_config.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_config.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_state.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_state.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_state.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_state.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_type.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_type.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_type.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_snapshot_type.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_unseal_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_c_o_r_s_config_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_public_ips_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_request.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_request.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_request.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_request.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_response.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_response.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_response.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_update_snapshot_response.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_vault_access.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_vault_access.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_vault_access.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_vault_access.go diff --git a/clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_vault_config.go b/clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_vault_config.go similarity index 100% rename from clients/cloud-vault-service/preview/2020-04-20/models/hashicorp_cloud_vault20200420_vault_config.go rename to clients/cloud-vault-service/stable/2020-04-20/models/hashicorp_cloud_vault20200420_vault_config.go