From 61a66fbe2a7df4b95560b85dcfc10046827c6201 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 02:45:58 +0000 Subject: [PATCH] feat: Automated regeneration of SQLAdmin client --- .../google_api/sql_admin/v1/api/databases.ex | 2 +- .../google_api/sql_admin/v1/api/instances.ex | 350 ++++++++++++++++- .../google_api/sql_admin/v1/api/operations.ex | 62 +++ .../google_api/sql_admin/v1/api/projects.ex | 304 +++++++++++++++ .../lib/google_api/sql_admin/v1/metadata.ex | 2 +- .../v1/model/acquire_ssrs_lease_context.ex | 55 +++ .../v1/model/advanced_machine_features.ex | 46 +++ .../v1/model/backup_configuration.ex | 2 +- .../v1/model/backup_reencryption_config.ex | 49 +++ .../sql_admin/v1/model/clone_context.ex | 5 +- .../sql_admin/v1/model/connect_settings.ex | 6 + .../sql_admin/v1/model/data_cache_config.ex | 46 +++ .../sql_admin/v1/model/database_instance.ex | 19 +- .../sql_admin/v1/model/demote_context.ex | 49 +++ .../google_api/sql_admin/v1/model/empty.ex | 41 ++ .../export_context_bak_export_options.ex | 9 + .../export_context_sql_export_options.ex | 8 +- .../import_context_bak_import_options.ex | 16 + .../instances_acquire_ssrs_lease_request.ex | 47 +++ .../v1/model/instances_demote_request.ex | 46 +++ .../v1/model/instances_reencrypt_request.ex | 47 +++ .../sql_admin/v1/model/ip_configuration.ex | 10 +- .../sql_admin/v1/model/ip_mapping.ex | 2 +- .../sql_admin/v1/model/location_preference.ex | 2 +- .../sql_admin/v1/model/operation.ex | 7 + .../sql_admin/v1/model/operation_metadata.ex | 64 ++++ .../v1/model/password_validation_policy.ex | 3 + .../v1/model/perform_disk_shrink_context.ex | 46 +++ .../sql_admin/v1/model/psc_config.ex | 49 +++ .../v1/model/replica_configuration.ex | 3 + .../google_api/sql_admin/v1/model/settings.ex | 147 ++++---- ...l_instances_acquire_ssrs_lease_response.ex | 46 +++ ...stances_get_disk_shrink_config_response.ex | 52 +++ ...ances_get_latest_recovery_time_response.ex | 49 +++ ...l_instances_release_ssrs_lease_response.ex | 46 +++ ...ql_instances_reset_replica_size_request.ex | 41 ++ ...l_instances_start_external_sync_request.ex | 5 +- ...s_verify_external_sync_settings_request.ex | 3 + .../sql_admin/v1/model/users_list_response.ex | 2 +- .../sql_admin/v1beta4/api/databases.ex | 2 +- .../sql_admin/v1beta4/api/instances.ex | 352 +++++++++++++++++- .../sql_admin/v1beta4/api/operations.ex | 62 +++ .../sql_admin/v1beta4/api/projects.ex | 312 ++++++++++++++++ .../google_api/sql_admin/v1beta4/metadata.ex | 2 +- .../model/acquire_ssrs_lease_context.ex | 55 +++ .../model/advanced_machine_features.ex | 46 +++ .../v1beta4/model/backup_configuration.ex | 2 +- .../model/backup_reencryption_config.ex | 49 +++ .../sql_admin/v1beta4/model/clone_context.ex | 5 +- .../v1beta4/model/connect_settings.ex | 6 + .../v1beta4/model/data_cache_config.ex | 46 +++ .../v1beta4/model/database_instance.ex | 19 +- .../sql_admin/v1beta4/model/demote_context.ex | 49 +++ .../sql_admin/v1beta4/model/empty.ex | 41 ++ .../export_context_bak_export_options.ex | 9 + .../export_context_sql_export_options.ex | 8 +- .../import_context_bak_import_options.ex | 16 + .../instances_acquire_ssrs_lease_request.ex | 47 +++ .../v1beta4/model/instances_demote_request.ex | 46 +++ .../model/instances_reencrypt_request.ex | 47 +++ .../v1beta4/model/ip_configuration.ex | 10 +- .../sql_admin/v1beta4/model/ip_mapping.ex | 2 +- .../v1beta4/model/location_preference.ex | 2 +- .../sql_admin/v1beta4/model/operation.ex | 7 + .../v1beta4/model/operation_metadata.ex | 64 ++++ .../model/password_validation_policy.ex | 3 + .../model/perform_disk_shrink_context.ex | 46 +++ .../sql_admin/v1beta4/model/psc_config.ex | 49 +++ .../v1beta4/model/replica_configuration.ex | 3 + .../sql_admin/v1beta4/model/settings.ex | 147 ++++---- ...l_instances_acquire_ssrs_lease_response.ex | 46 +++ ...stances_get_disk_shrink_config_response.ex | 57 +++ ...ances_get_latest_recovery_time_response.ex | 54 +++ ...l_instances_release_ssrs_lease_response.ex | 46 +++ ...ql_instances_reset_replica_size_request.ex | 41 ++ ...l_instances_start_external_sync_request.ex | 5 +- ...s_verify_external_sync_settings_request.ex | 3 + .../v1beta4/model/users_list_response.ex | 2 +- 78 files changed, 3433 insertions(+), 163 deletions(-) create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/acquire_ssrs_lease_context.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/advanced_machine_features.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_reencryption_config.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/data_cache_config.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_context.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/empty.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_acquire_ssrs_lease_request.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_demote_request.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_reencrypt_request.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/operation_metadata.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/perform_disk_shrink_context.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/psc_config.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_acquire_ssrs_lease_response.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_get_disk_shrink_config_response.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_get_latest_recovery_time_response.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_release_ssrs_lease_response.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_reset_replica_size_request.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/acquire_ssrs_lease_context.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/advanced_machine_features.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_reencryption_config.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/data_cache_config.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/demote_context.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/empty.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_acquire_ssrs_lease_request.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_demote_request.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_reencrypt_request.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation_metadata.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/perform_disk_shrink_context.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/psc_config.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_acquire_ssrs_lease_response.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_get_disk_shrink_config_response.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_get_latest_recovery_time_response.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_release_ssrs_lease_response.ex create mode 100644 clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_reset_replica_size_request.ex diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/api/databases.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/api/databases.ex index f23128d022..11f520d181 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/api/databases.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/api/databases.ex @@ -182,7 +182,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Databases do end @doc """ - Inserts a resource containing information about a database inside a Cloud SQL instance. + Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation. ## Parameters diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/api/instances.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/api/instances.ex index b6332531db..999ef16263 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/api/instances.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/api/instances.ex @@ -25,6 +25,84 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Acquire a lease for the setup of SQL Server Reporting Services (SSRS). + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Required. Project ID of the project that contains the instance (Example: project-id). + * `instance` (*type:* `String.t`) - Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id). + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1.Model.InstancesAcquireSsrsLeaseRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.SqlInstancesAcquireSsrsLeaseResponse{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_acquire_ssrs_lease( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.SqlInstancesAcquireSsrsLeaseResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_acquire_ssrs_lease( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/projects/{project}/instances/{instance}/acquireSsrsLease", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.SqlInstancesAcquireSsrsLeaseResponse{}] + ) + end + @doc """ Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. @@ -225,6 +303,70 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) end + @doc """ + Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Required. ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Required. Cloud SQL instance name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1.Model.InstancesDemoteRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_demote(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_demote(connection, project, instance, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/projects/{project}/instances/{instance}/demote", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) + end + @doc """ Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. @@ -843,6 +985,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:failover` (*type:* `boolean()`) - Set to true if the promote operation should attempt to re-add the original primary as a replica when it comes back online. Otherwise, if this value is false or not set, the original primary will be a standalone instance. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -879,7 +1022,8 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :failover => :query } request = @@ -897,6 +1041,146 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) end + @doc """ + Reencrypt CMEK instance with latest key version. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1.Model.InstancesReencryptRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_reencrypt(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_reencrypt(connection, project, instance, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/projects/{project}/instances/{instance}/reencrypt", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) + end + + @doc """ + Release a lease for the setup of SQL Server Reporting Services (SSRS). + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Required. The project ID that contains the instance. + * `instance` (*type:* `String.t`) - Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.SqlInstancesReleaseSsrsLeaseResponse{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_release_ssrs_lease( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.SqlInstancesReleaseSsrsLeaseResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_release_ssrs_lease( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/projects/{project}/instances/{instance}/releaseSsrsLease", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.SqlInstancesReleaseSsrsLeaseResponse{}] + ) + end + @doc """ Deletes all client certificates and generates a new server SSL certificate for the instance. @@ -1327,6 +1611,70 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) end + @doc """ + Switches over from the primary instance to the replica instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - ID of the project that contains the replica. + * `instance` (*type:* `String.t`) - Cloud SQL read replica instance name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:dbTimeout` (*type:* `String.t`) - Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_switchover(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_switchover(connection, project, instance, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :dbTimeout => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/projects/{project}/instances/{instance}/switchover", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) + end + @doc """ Truncate MySQL general and slow query log tables MySQL only. diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/api/operations.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/api/operations.ex index 517ef2afd2..c8e022924a 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/api/operations.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/api/operations.ex @@ -25,6 +25,68 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Operations do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Cancels an instance operation that has been performed on an instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Project ID of the project that contains the instance. + * `operation` (*type:* `String.t`) - Instance operation ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec sql_operations_cancel(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_operations_cancel(connection, project, operation, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/projects/{project}/operations/{operation}/cancel", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "operation" => URI.encode(operation, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Empty{}]) + end + @doc """ Retrieves an instance operation that has been performed on an instance. diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/api/projects.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/api/projects.ex index 7ea93494d8..8f4f4b512f 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/api/projects.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/api/projects.ex @@ -25,6 +25,234 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Projects do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Get Disk Shrink Config for a given instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Project ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetDiskShrinkConfigResponse{}}` on success + * `{:error, info}` on failure + """ + @spec sql_projects_instances_get_disk_shrink_config( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetDiskShrinkConfigResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_projects_instances_get_disk_shrink_config( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/projects/{project}/instances/{instance}/getDiskShrinkConfig", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetDiskShrinkConfigResponse{}] + ) + end + + @doc """ + Get Latest Recovery Time for a given instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Project ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetLatestRecoveryTimeResponse{}}` on success + * `{:error, info}` on failure + """ + @spec sql_projects_instances_get_latest_recovery_time( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetLatestRecoveryTimeResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_projects_instances_get_latest_recovery_time( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/projects/{project}/instances/{instance}/getLatestRecoveryTime", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetLatestRecoveryTimeResponse{}] + ) + end + + @doc """ + Perform Disk Shrink on primary instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Project ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1.Model.PerformDiskShrinkContext.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_projects_instances_perform_disk_shrink( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_projects_instances_perform_disk_shrink( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/projects/{project}/instances/{instance}/performDiskShrink", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) + end + @doc """ Reschedules the maintenance on the given instance. @@ -101,6 +329,82 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) end + @doc """ + Reset Replica Size to primary instance disk size. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - ID of the project that contains the read replica. + * `instance` (*type:* `String.t`) - Cloud SQL read replica instance name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlInstancesResetReplicaSizeRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_projects_instances_reset_replica_size( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_projects_instances_reset_replica_size( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/projects/{project}/instances/{instance}/resetReplicaSize", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1.Model.Operation{}]) + end + @doc """ Start External primary instance migration. diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/metadata.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/metadata.ex index a51dfea152..2486a2bdd5 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/metadata.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.SQLAdmin.V1 do API client metadata for GoogleApi.SQLAdmin.V1. """ - @discovery_revision "20221116" + @discovery_revision "20240304" def discovery_revision(), do: @discovery_revision end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/acquire_ssrs_lease_context.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/acquire_ssrs_lease_context.ex new file mode 100644 index 0000000000..c90f21f7f0 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/acquire_ssrs_lease_context.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext do + @moduledoc """ + Acquire SSRS lease context. + + ## Attributes + + * `duration` (*type:* `String.t`, *default:* `nil`) - Lease duration needed for SSRS setup. + * `reportDatabase` (*type:* `String.t`, *default:* `nil`) - The report database to be used for SSRS setup. + * `serviceLogin` (*type:* `String.t`, *default:* `nil`) - The username to be used as the service login to connect to the report database for SSRS setup. + * `setupLogin` (*type:* `String.t`, *default:* `nil`) - The username to be used as the setup login to connect to the database server for SSRS setup. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :duration => String.t() | nil, + :reportDatabase => String.t() | nil, + :serviceLogin => String.t() | nil, + :setupLogin => String.t() | nil + } + + field(:duration) + field(:reportDatabase) + field(:serviceLogin) + field(:setupLogin) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/advanced_machine_features.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/advanced_machine_features.ex new file mode 100644 index 0000000000..59096f9175 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/advanced_machine_features.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.AdvancedMachineFeatures do + @moduledoc """ + Specifies options for controlling advanced machine features. + + ## Attributes + + * `threadsPerCore` (*type:* `integer()`, *default:* `nil`) - The number of threads per physical core. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :threadsPerCore => integer() | nil + } + + field(:threadsPerCore) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.AdvancedMachineFeatures do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.AdvancedMachineFeatures.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.AdvancedMachineFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_configuration.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_configuration.ex index f018267854..3d64cdee52 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_configuration.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_configuration.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.BackupConfiguration do * `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether this configuration is enabled. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#backupConfiguration`. * `location` (*type:* `String.t`, *default:* `nil`) - Location of the backup - * `pointInTimeRecoveryEnabled` (*type:* `boolean()`, *default:* `nil`) - (Postgres only) Whether point in time recovery is enabled. + * `pointInTimeRecoveryEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether point in time recovery is enabled. * `replicationLogArchivingEnabled` (*type:* `boolean()`, *default:* `nil`) - Reserved for future use. * `startTime` (*type:* `String.t`, *default:* `nil`) - Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`. * `transactionLogRetentionDays` (*type:* `integer()`, *default:* `nil`) - The number of days of transaction logs we retain for point in time restore, from 1-7. diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_reencryption_config.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_reencryption_config.ex new file mode 100644 index 0000000000..0efc2c3749 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_reencryption_config.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.BackupReencryptionConfig do + @moduledoc """ + Backup Reencryption Config + + ## Attributes + + * `backupLimit` (*type:* `integer()`, *default:* `nil`) - Backup re-encryption limit + * `backupType` (*type:* `String.t`, *default:* `nil`) - Type of backups users want to re-encrypt. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backupLimit => integer() | nil, + :backupType => String.t() | nil + } + + field(:backupLimit) + field(:backupType) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.BackupReencryptionConfig do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.BackupReencryptionConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.BackupReencryptionConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/clone_context.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/clone_context.ex index e67ac855c1..08e8637f54 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/clone_context.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/clone_context.ex @@ -28,6 +28,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.CloneContext do * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#cloneContext`. * `pitrTimestampMs` (*type:* `String.t`, *default:* `nil`) - Reserved for future use. * `pointInTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp, if specified, identifies the time to which the source instance is cloned. + * `preferredZone` (*type:* `String.t`, *default:* `nil`) - Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. """ use GoogleApi.Gax.ModelBase @@ -39,7 +40,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.CloneContext do :destinationInstanceName => String.t() | nil, :kind => String.t() | nil, :pitrTimestampMs => String.t() | nil, - :pointInTime => DateTime.t() | nil + :pointInTime => DateTime.t() | nil, + :preferredZone => String.t() | nil } field(:allocatedIpRange) @@ -49,6 +51,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.CloneContext do field(:kind) field(:pitrTimestampMs) field(:pointInTime, as: DateTime) + field(:preferredZone) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.CloneContext do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/connect_settings.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/connect_settings.ex index 2b6abf191e..96a71efe1b 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/connect_settings.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/connect_settings.ex @@ -23,8 +23,10 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do * `backendType` (*type:* `String.t`, *default:* `nil`) - `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type. * `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. + * `dnsName` (*type:* `String.t`, *default:* `nil`) - The dns name of the instance. * `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t)`, *default:* `nil`) - The assigned IP addresses for the instance. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#connectSettings`. + * `pscEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether PSC connectivity is enabled for this instance. * `region` (*type:* `String.t`, *default:* `nil`) - The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation. * `serverCaCert` (*type:* `GoogleApi.SQLAdmin.V1.Model.SslCert.t`, *default:* `nil`) - SSL configuration. """ @@ -34,16 +36,20 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do @type t :: %__MODULE__{ :backendType => String.t() | nil, :databaseVersion => String.t() | nil, + :dnsName => String.t() | nil, :ipAddresses => list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t()) | nil, :kind => String.t() | nil, + :pscEnabled => boolean() | nil, :region => String.t() | nil, :serverCaCert => GoogleApi.SQLAdmin.V1.Model.SslCert.t() | nil } field(:backendType) field(:databaseVersion) + field(:dnsName) field(:ipAddresses, as: GoogleApi.SQLAdmin.V1.Model.IpMapping, type: :list) field(:kind) + field(:pscEnabled) field(:region) field(:serverCaCert, as: GoogleApi.SQLAdmin.V1.Model.SslCert) end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/data_cache_config.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/data_cache_config.ex new file mode 100644 index 0000000000..2ad83ba287 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/data_cache_config.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.DataCacheConfig do + @moduledoc """ + Data cache configurations. + + ## Attributes + + * `dataCacheEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether data cache is enabled for the instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataCacheEnabled => boolean() | nil + } + + field(:dataCacheEnabled) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.DataCacheConfig do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.DataCacheConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.DataCacheConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/database_instance.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/database_instance.ex index 72e343ada2..7cef1a7bd9 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/database_instance.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/database_instance.ex @@ -25,6 +25,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do * `etag` (*type:* `String.t`, *default:* `nil`) - This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead. * `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. * `serverCaCert` (*type:* `GoogleApi.SQLAdmin.V1.Model.SslCert.t`, *default:* `nil`) - SSL configuration. + * `dnsName` (*type:* `String.t`, *default:* `nil`) - Output only. The dns name of the instance. + * `sqlNetworkArchitecture` (*type:* `String.t`, *default:* `nil`) - * `suspensionReason` (*type:* `list(String.t)`, *default:* `nil`) - If the instance state is SUSPENDED, the reason for the suspension. * `maintenanceVersion` (*type:* `String.t`, *default:* `nil`) - The current software version on the instance. * `serviceAccountEmailAddress` (*type:* `String.t`, *default:* `nil`) - The service account email address assigned to the instance.\\This property is read-only. @@ -37,17 +39,20 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do * `project` (*type:* `String.t`, *default:* `nil`) - The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable. * `name` (*type:* `String.t`, *default:* `nil`) - Name of the Cloud SQL instance. This does not include the project ID. * `state` (*type:* `String.t`, *default:* `nil`) - The current serving state of the Cloud SQL instance. - * `region` (*type:* `String.t`, *default:* `nil`) - The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. Defaults to `us-central` or `us-central1` depending on the instance type. The region cannot be changed after instance creation. + * `region` (*type:* `String.t`, *default:* `nil`) - The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`. * `replicaConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.ReplicaConfiguration.t`, *default:* `nil`) - Configuration specific to failover replicas and read replicas. * `diskEncryptionStatus` (*type:* `GoogleApi.SQLAdmin.V1.Model.DiskEncryptionStatus.t`, *default:* `nil`) - Disk encryption status specific to an instance. * `connectionName` (*type:* `String.t`, *default:* `nil`) - Connection name of the Cloud SQL instance used in connection strings. * `onPremisesConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration.t`, *default:* `nil`) - Configuration specific to on-premises instances. - * `availableMaintenanceVersions` (*type:* `list(String.t)`, *default:* `nil`) - List all maintenance versions applicable on the instance + * `primaryDnsName` (*type:* `String.t`, *default:* `nil`) - Output only. DEPRECATED: please use write_endpoint instead. + * `availableMaintenanceVersions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. List all maintenance versions applicable on the instance + * `writeEndpoint` (*type:* `String.t`, *default:* `nil`) - Output only. The dns name of the primary instance in a replication group. * `instanceType` (*type:* `String.t`, *default:* `nil`) - The instance type. * `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t)`, *default:* `nil`) - The assigned IP addresses for the instance. * `replicaNames` (*type:* `list(String.t)`, *default:* `nil`) - The replicas of the instance. * `currentDiskSize` (*type:* `String.t`, *default:* `nil`) - The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details. * `secondaryGceZone` (*type:* `String.t`, *default:* `nil`) - The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone. + * `pscServiceAttachmentLink` (*type:* `String.t`, *default:* `nil`) - Output only. The link to service attachment of PSC instance. * `settings` (*type:* `GoogleApi.SQLAdmin.V1.Model.Settings.t`, *default:* `nil`) - The user settings. * `rootPassword` (*type:* `String.t`, *default:* `nil`) - Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances. * `selfLink` (*type:* `String.t`, *default:* `nil`) - The URI of this resource. @@ -66,6 +71,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do :etag => String.t() | nil, :databaseVersion => String.t() | nil, :serverCaCert => GoogleApi.SQLAdmin.V1.Model.SslCert.t() | nil, + :dnsName => String.t() | nil, + :sqlNetworkArchitecture => String.t() | nil, :suspensionReason => list(String.t()) | nil, :maintenanceVersion => String.t() | nil, :serviceAccountEmailAddress => String.t() | nil, @@ -84,12 +91,15 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do :connectionName => String.t() | nil, :onPremisesConfiguration => GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration.t() | nil, + :primaryDnsName => String.t() | nil, :availableMaintenanceVersions => list(String.t()) | nil, + :writeEndpoint => String.t() | nil, :instanceType => String.t() | nil, :ipAddresses => list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t()) | nil, :replicaNames => list(String.t()) | nil, :currentDiskSize => String.t() | nil, :secondaryGceZone => String.t() | nil, + :pscServiceAttachmentLink => String.t() | nil, :settings => GoogleApi.SQLAdmin.V1.Model.Settings.t() | nil, :rootPassword => String.t() | nil, :selfLink => String.t() | nil, @@ -107,6 +117,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do field(:etag) field(:databaseVersion) field(:serverCaCert, as: GoogleApi.SQLAdmin.V1.Model.SslCert) + field(:dnsName) + field(:sqlNetworkArchitecture) field(:suspensionReason, type: :list) field(:maintenanceVersion) field(:serviceAccountEmailAddress) @@ -124,12 +136,15 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do field(:diskEncryptionStatus, as: GoogleApi.SQLAdmin.V1.Model.DiskEncryptionStatus) field(:connectionName) field(:onPremisesConfiguration, as: GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration) + field(:primaryDnsName) field(:availableMaintenanceVersions, type: :list) + field(:writeEndpoint) field(:instanceType) field(:ipAddresses, as: GoogleApi.SQLAdmin.V1.Model.IpMapping, type: :list) field(:replicaNames, type: :list) field(:currentDiskSize) field(:secondaryGceZone) + field(:pscServiceAttachmentLink) field(:settings, as: GoogleApi.SQLAdmin.V1.Model.Settings) field(:rootPassword) field(:selfLink) diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_context.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_context.ex new file mode 100644 index 0000000000..82918c6a6d --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/demote_context.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.DemoteContext do + @moduledoc """ + This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. + + ## Attributes + + * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#demoteContext`. + * `sourceRepresentativeInstanceName` (*type:* `String.t`, *default:* `nil`) - Required. The name of the instance which acts as the on-premises primary instance in the replication setup. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kind => String.t() | nil, + :sourceRepresentativeInstanceName => String.t() | nil + } + + field(:kind) + field(:sourceRepresentativeInstanceName) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.DemoteContext do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.DemoteContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.DemoteContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/empty.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/empty.ex new file mode 100644 index 0000000000..e4f899a881 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/empty.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.Empty do + @moduledoc """ + A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.Empty do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.Empty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.Empty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/export_context_bak_export_options.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/export_context_bak_export_options.ex index dcfda175d2..013ababdef 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/export_context_bak_export_options.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/export_context_bak_export_options.ex @@ -21,6 +21,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ExportContextBakExportOptions do ## Attributes + * `bakType` (*type:* `String.t`, *default:* `nil`) - Type of this bak file will be export, FULL or DIFF, SQL Server only + * `copyOnly` (*type:* `boolean()`, *default:* `nil`) - Deprecated: copy_only is deprecated. Use differential_base instead + * `differentialBase` (*type:* `boolean()`, *default:* `nil`) - Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base * `stripeCount` (*type:* `integer()`, *default:* `nil`) - Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen. * `striped` (*type:* `boolean()`, *default:* `nil`) - Whether or not the export should be striped. """ @@ -28,10 +31,16 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ExportContextBakExportOptions do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :bakType => String.t() | nil, + :copyOnly => boolean() | nil, + :differentialBase => boolean() | nil, :stripeCount => integer() | nil, :striped => boolean() | nil } + field(:bakType) + field(:copyOnly) + field(:differentialBase) field(:stripeCount) field(:striped) end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/export_context_sql_export_options.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/export_context_sql_export_options.ex index 87ec9dee12..3662ee26ec 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/export_context_sql_export_options.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/export_context_sql_export_options.ex @@ -22,8 +22,10 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ExportContextSqlExportOptions do ## Attributes * `mysqlExportOptions` (*type:* `GoogleApi.SQLAdmin.V1.Model.ExportContextSqlExportOptionsMysqlExportOptions.t`, *default:* `nil`) - Options for exporting from MySQL. + * `parallel` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether or not the export should be parallel. * `schemaOnly` (*type:* `boolean()`, *default:* `nil`) - Export only schemas. * `tables` (*type:* `list(String.t)`, *default:* `nil`) - Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table. + * `threads` (*type:* `integer()`, *default:* `nil`) - Optional. The number of threads to use for parallel export. """ use GoogleApi.Gax.ModelBase @@ -31,16 +33,20 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ExportContextSqlExportOptions do @type t :: %__MODULE__{ :mysqlExportOptions => GoogleApi.SQLAdmin.V1.Model.ExportContextSqlExportOptionsMysqlExportOptions.t() | nil, + :parallel => boolean() | nil, :schemaOnly => boolean() | nil, - :tables => list(String.t()) | nil + :tables => list(String.t()) | nil, + :threads => integer() | nil } field(:mysqlExportOptions, as: GoogleApi.SQLAdmin.V1.Model.ExportContextSqlExportOptionsMysqlExportOptions ) + field(:parallel) field(:schemaOnly) field(:tables, type: :list) + field(:threads) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.ExportContextSqlExportOptions do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/import_context_bak_import_options.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/import_context_bak_import_options.ex index 3bdc41d339..f037b9ad6e 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/import_context_bak_import_options.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/import_context_bak_import_options.ex @@ -21,22 +21,38 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ImportContextBakImportOptions do ## Attributes + * `bakType` (*type:* `String.t`, *default:* `nil`) - Type of the bak content, FULL or DIFF * `encryptionOptions` (*type:* `GoogleApi.SQLAdmin.V1.Model.ImportContextBakImportOptionsEncryptionOptions.t`, *default:* `nil`) - + * `noRecovery` (*type:* `boolean()`, *default:* `nil`) - Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server. + * `recoveryOnly` (*type:* `boolean()`, *default:* `nil`) - Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server. + * `stopAt` (*type:* `DateTime.t`, *default:* `nil`) - Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only. + * `stopAtMark` (*type:* `String.t`, *default:* `nil`) - Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only. * `striped` (*type:* `boolean()`, *default:* `nil`) - Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :bakType => String.t() | nil, :encryptionOptions => GoogleApi.SQLAdmin.V1.Model.ImportContextBakImportOptionsEncryptionOptions.t() | nil, + :noRecovery => boolean() | nil, + :recoveryOnly => boolean() | nil, + :stopAt => DateTime.t() | nil, + :stopAtMark => String.t() | nil, :striped => boolean() | nil } + field(:bakType) + field(:encryptionOptions, as: GoogleApi.SQLAdmin.V1.Model.ImportContextBakImportOptionsEncryptionOptions ) + field(:noRecovery) + field(:recoveryOnly) + field(:stopAt, as: DateTime) + field(:stopAtMark) field(:striped) end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_acquire_ssrs_lease_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_acquire_ssrs_lease_request.ex new file mode 100644 index 0000000000..4d043e6e1e --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_acquire_ssrs_lease_request.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.InstancesAcquireSsrsLeaseRequest do + @moduledoc """ + Request to acquire a lease for SSRS. + + ## Attributes + + * `acquireSsrsLeaseContext` (*type:* `GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext.t`, *default:* `nil`) - Contains details about the acquire SSRS lease operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :acquireSsrsLeaseContext => + GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext.t() | nil + } + + field(:acquireSsrsLeaseContext, as: GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.InstancesAcquireSsrsLeaseRequest do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.InstancesAcquireSsrsLeaseRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.InstancesAcquireSsrsLeaseRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_demote_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_demote_request.ex new file mode 100644 index 0000000000..1869007958 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_demote_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.InstancesDemoteRequest do + @moduledoc """ + This request is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. + + ## Attributes + + * `demoteContext` (*type:* `GoogleApi.SQLAdmin.V1.Model.DemoteContext.t`, *default:* `nil`) - Required. Contains details about the demote operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :demoteContext => GoogleApi.SQLAdmin.V1.Model.DemoteContext.t() | nil + } + + field(:demoteContext, as: GoogleApi.SQLAdmin.V1.Model.DemoteContext) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.InstancesDemoteRequest do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.InstancesDemoteRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.InstancesDemoteRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_reencrypt_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_reencrypt_request.ex new file mode 100644 index 0000000000..3c991cbe60 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_reencrypt_request.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.InstancesReencryptRequest do + @moduledoc """ + Database Instance reencrypt request. + + ## Attributes + + * `backupReencryptionConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.BackupReencryptionConfig.t`, *default:* `nil`) - Configuration specific to backup re-encryption + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backupReencryptionConfig => + GoogleApi.SQLAdmin.V1.Model.BackupReencryptionConfig.t() | nil + } + + field(:backupReencryptionConfig, as: GoogleApi.SQLAdmin.V1.Model.BackupReencryptionConfig) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.InstancesReencryptRequest do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.InstancesReencryptRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.InstancesReencryptRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_configuration.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_configuration.ex index 58291cecc2..655a78b0a6 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_configuration.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_configuration.ex @@ -26,7 +26,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.IpConfiguration do * `enablePrivatePathForGoogleCloudServices` (*type:* `boolean()`, *default:* `nil`) - Controls connectivity to private IP instances from Google services, such as BigQuery. * `ipv4Enabled` (*type:* `boolean()`, *default:* `nil`) - Whether the instance is assigned a public IP address or not. * `privateNetwork` (*type:* `String.t`, *default:* `nil`) - The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set. - * `requireSsl` (*type:* `boolean()`, *default:* `nil`) - Whether SSL connections over IP are enforced or not. + * `pscConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.PscConfig.t`, *default:* `nil`) - PSC settings for this instance. + * `requireSsl` (*type:* `boolean()`, *default:* `nil`) - Use `ssl_mode` instead for MySQL and PostgreSQL. SQL Server uses this flag. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag. + * `sslMode` (*type:* `String.t`, *default:* `nil`) - Specify how SSL/TLS is enforced in database connections. MySQL and PostgreSQL use the `ssl_mode` flag. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections. SQL Server uses the `require_ssl` flag. You can set the value for this flag to `true` or `false`. """ use GoogleApi.Gax.ModelBase @@ -37,7 +39,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.IpConfiguration do :enablePrivatePathForGoogleCloudServices => boolean() | nil, :ipv4Enabled => boolean() | nil, :privateNetwork => String.t() | nil, - :requireSsl => boolean() | nil + :pscConfig => GoogleApi.SQLAdmin.V1.Model.PscConfig.t() | nil, + :requireSsl => boolean() | nil, + :sslMode => String.t() | nil } field(:allocatedIpRange) @@ -45,7 +49,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.IpConfiguration do field(:enablePrivatePathForGoogleCloudServices) field(:ipv4Enabled) field(:privateNetwork) + field(:pscConfig, as: GoogleApi.SQLAdmin.V1.Model.PscConfig) field(:requireSsl) + field(:sslMode) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.IpConfiguration do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_mapping.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_mapping.ex index 259c078ee4..43c6c75f8a 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_mapping.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_mapping.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.IpMapping do @moduledoc """ - Database instance IP Mapping. + Database instance IP mapping ## Attributes diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/location_preference.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/location_preference.ex index 221daf745e..6aa8104701 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/location_preference.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/location_preference.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.LocationPreference do * `followGaeApplication` (*type:* `String.t`, *default:* `nil`) - The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#locationPreference`. - * `secondaryZone` (*type:* `String.t`, *default:* `nil`) - The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). + * `secondaryZone` (*type:* `String.t`, *default:* `nil`) - The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to 'no_secondary_zone'. * `zone` (*type:* `String.t`, *default:* `nil`) - The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance. """ diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/operation.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/operation.ex index 00a0559c89..e01089079f 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/operation.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/operation.ex @@ -21,6 +21,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Operation do ## Attributes + * `acquireSsrsLeaseContext` (*type:* `GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext.t`, *default:* `nil`) - The context for acquire SSRS lease operation, if applicable. + * `apiWarning` (*type:* `GoogleApi.SQLAdmin.V1.Model.ApiWarning.t`, *default:* `nil`) - An Admin API warning message. * `backupContext` (*type:* `GoogleApi.SQLAdmin.V1.Model.BackupContext.t`, *default:* `nil`) - The context for backup operation, if applicable. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. * `error` (*type:* `GoogleApi.SQLAdmin.V1.Model.OperationErrors.t`, *default:* `nil`) - If errors occurred during processing of this operation, this field will be populated. @@ -42,6 +44,9 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Operation do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :acquireSsrsLeaseContext => + GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext.t() | nil, + :apiWarning => GoogleApi.SQLAdmin.V1.Model.ApiWarning.t() | nil, :backupContext => GoogleApi.SQLAdmin.V1.Model.BackupContext.t() | nil, :endTime => DateTime.t() | nil, :error => GoogleApi.SQLAdmin.V1.Model.OperationErrors.t() | nil, @@ -60,6 +65,8 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Operation do :user => String.t() | nil } + field(:acquireSsrsLeaseContext, as: GoogleApi.SQLAdmin.V1.Model.AcquireSsrsLeaseContext) + field(:apiWarning, as: GoogleApi.SQLAdmin.V1.Model.ApiWarning) field(:backupContext, as: GoogleApi.SQLAdmin.V1.Model.BackupContext) field(:endTime, as: DateTime) field(:error, as: GoogleApi.SQLAdmin.V1.Model.OperationErrors) diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/operation_metadata.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/operation_metadata.ex new file mode 100644 index 0000000000..5d254a8b16 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/operation_metadata.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.OperationMetadata do + @moduledoc """ + Represents the metadata of the long-running operation. + + ## Attributes + + * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation. + * `cancelRequested` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. + * `statusDetail` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any. + * `target` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined resource path for the target of the operation. + * `verb` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the verb executed by the operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apiVersion => String.t() | nil, + :cancelRequested => boolean() | nil, + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :statusDetail => String.t() | nil, + :target => String.t() | nil, + :verb => String.t() | nil + } + + field(:apiVersion) + field(:cancelRequested) + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + field(:statusDetail) + field(:target) + field(:verb) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.OperationMetadata do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.OperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.OperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/password_validation_policy.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/password_validation_policy.ex index a713e3e69b..49d430cbfb 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/password_validation_policy.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/password_validation_policy.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy do ## Attributes * `complexity` (*type:* `String.t`, *default:* `nil`) - The complexity of the password. + * `disallowCompromisedCredentials` (*type:* `boolean()`, *default:* `nil`) - This field is deprecated and will be removed in a future version of the API. * `disallowUsernameSubstring` (*type:* `boolean()`, *default:* `nil`) - Disallow username as a part of the password. * `enablePasswordPolicy` (*type:* `boolean()`, *default:* `nil`) - Whether the password policy is enabled or not. * `minLength` (*type:* `integer()`, *default:* `nil`) - Minimum number of characters allowed. @@ -33,6 +34,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy do @type t :: %__MODULE__{ :complexity => String.t() | nil, + :disallowCompromisedCredentials => boolean() | nil, :disallowUsernameSubstring => boolean() | nil, :enablePasswordPolicy => boolean() | nil, :minLength => integer() | nil, @@ -41,6 +43,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy do } field(:complexity) + field(:disallowCompromisedCredentials) field(:disallowUsernameSubstring) field(:enablePasswordPolicy) field(:minLength) diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/perform_disk_shrink_context.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/perform_disk_shrink_context.ex new file mode 100644 index 0000000000..2ff47a8179 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/perform_disk_shrink_context.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.PerformDiskShrinkContext do + @moduledoc """ + Perform disk shrink context. + + ## Attributes + + * `targetSizeGb` (*type:* `String.t`, *default:* `nil`) - The target disk shrink size in GigaBytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :targetSizeGb => String.t() | nil + } + + field(:targetSizeGb) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.PerformDiskShrinkContext do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.PerformDiskShrinkContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.PerformDiskShrinkContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/psc_config.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/psc_config.ex new file mode 100644 index 0000000000..2f810e6062 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/psc_config.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.PscConfig do + @moduledoc """ + PSC settings for a Cloud SQL instance. + + ## Attributes + + * `allowedConsumerProjects` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric). + * `pscEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether PSC connectivity is enabled for this instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowedConsumerProjects => list(String.t()) | nil, + :pscEnabled => boolean() | nil + } + + field(:allowedConsumerProjects, type: :list) + field(:pscEnabled) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.PscConfig do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.PscConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.PscConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/replica_configuration.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/replica_configuration.ex index 7224722763..8e9c809f3a 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/replica_configuration.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/replica_configuration.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ReplicaConfiguration do ## Attributes + * `cascadableReplica` (*type:* `boolean()`, *default:* `nil`) - Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it. * `failoverTarget` (*type:* `boolean()`, *default:* `nil`) - Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#replicaConfiguration`. * `mysqlReplicaConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.MySqlReplicaConfiguration.t`, *default:* `nil`) - MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory. @@ -29,12 +30,14 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ReplicaConfiguration do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :cascadableReplica => boolean() | nil, :failoverTarget => boolean() | nil, :kind => String.t() | nil, :mysqlReplicaConfiguration => GoogleApi.SQLAdmin.V1.Model.MySqlReplicaConfiguration.t() | nil } + field(:cascadableReplica) field(:failoverTarget) field(:kind) field(:mysqlReplicaConfiguration, as: GoogleApi.SQLAdmin.V1.Model.MySqlReplicaConfiguration) diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/settings.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/settings.ex index e20198d352..4ab5c2296c 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/settings.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/settings.ex @@ -21,108 +21,121 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Settings do ## Attributes - * `activationPolicy` (*type:* `String.t`, *default:* `nil`) - The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives. - * `activeDirectoryConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlActiveDirectoryConfig.t`, *default:* `nil`) - Active Directory configuration, relevant only for Cloud SQL for SQL Server. - * `authorizedGaeApplications` (*type:* `list(String.t)`, *default:* `nil`) - The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only. - * `availabilityType` (*type:* `String.t`, *default:* `nil`) - Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability). - * `backupConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.BackupConfiguration.t`, *default:* `nil`) - The daily backup configuration for the instance. + * `advancedMachineFeatures` (*type:* `GoogleApi.SQLAdmin.V1.Model.AdvancedMachineFeatures.t`, *default:* `nil`) - Specifies advance machine configuration for the instance relevant only for SQL Server. * `collation` (*type:* `String.t`, *default:* `nil`) - The name of server Instance collation. - * `connectorEnforcement` (*type:* `String.t`, *default:* `nil`) - Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance. - * `crashSafeReplicationEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. - * `dataDiskSizeGb` (*type:* `String.t`, *default:* `nil`) - The size of data disk, in GB. The data disk size minimum is 10GB. - * `dataDiskType` (*type:* `String.t`, *default:* `nil`) - The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances. - * `databaseFlags` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DatabaseFlags.t)`, *default:* `nil`) - The database flags passed to the instance at startup. - * `databaseReplicationEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. - * `deletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration to protect against accidental instance deletion. - * `denyMaintenancePeriods` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DenyMaintenancePeriod.t)`, *default:* `nil`) - Deny maintenance periods + * `dataCacheConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.DataCacheConfig.t`, *default:* `nil`) - Configuration for data cache. + * `availabilityType` (*type:* `String.t`, *default:* `nil`) - Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability). + * `userLabels` (*type:* `map()`, *default:* `nil`) - User-provided labels, represented as a dictionary where each label is a single key value pair. * `insightsConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.InsightsConfig.t`, *default:* `nil`) - Insights configuration, for now relevant only for Postgres. * `ipConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.IpConfiguration.t`, *default:* `nil`) - The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances. - * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#settings`. + * `dataDiskSizeGb` (*type:* `String.t`, *default:* `nil`) - The size of data disk, in GB. The data disk size minimum is 10GB. + * `timeZone` (*type:* `String.t`, *default:* `nil`) - Server timezone, relevant only for Cloud SQL for SQL Server. * `locationPreference` (*type:* `GoogleApi.SQLAdmin.V1.Model.LocationPreference.t`, *default:* `nil`) - The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances. - * `maintenanceWindow` (*type:* `GoogleApi.SQLAdmin.V1.Model.MaintenanceWindow.t`, *default:* `nil`) - The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. - * `passwordValidationPolicy` (*type:* `GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy.t`, *default:* `nil`) - The local user password validation policy of the instance. - * `pricingPlan` (*type:* `String.t`, *default:* `nil`) - The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances. + * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#settings`. + * `backupConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.BackupConfiguration.t`, *default:* `nil`) - The daily backup configuration for the instance. + * `crashSafeReplicationEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. * `replicationType` (*type:* `String.t`, *default:* `nil`) - The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances. - * `settingsVersion` (*type:* `String.t`, *default:* `nil`) - The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. + * `activeDirectoryConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlActiveDirectoryConfig.t`, *default:* `nil`) - Active Directory configuration, relevant only for Cloud SQL for SQL Server. + * `authorizedGaeApplications` (*type:* `list(String.t)`, *default:* `nil`) - The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only. + * `edition` (*type:* `String.t`, *default:* `nil`) - Optional. The edition of the instance. + * `databaseReplicationEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. * `sqlServerAuditConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlServerAuditConfig.t`, *default:* `nil`) - SQL Server specific audit configuration. - * `storageAutoResize` (*type:* `boolean()`, *default:* `nil`) - Configuration to increase storage size automatically. The default value is true. + * `activationPolicy` (*type:* `String.t`, *default:* `nil`) - The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives. + * `passwordValidationPolicy` (*type:* `GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy.t`, *default:* `nil`) - The local user password validation policy of the instance. + * `databaseFlags` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DatabaseFlags.t)`, *default:* `nil`) - The database flags passed to the instance at startup. + * `maintenanceWindow` (*type:* `GoogleApi.SQLAdmin.V1.Model.MaintenanceWindow.t`, *default:* `nil`) - The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. + * `dataDiskType` (*type:* `String.t`, *default:* `nil`) - The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances. * `storageAutoResizeLimit` (*type:* `String.t`, *default:* `nil`) - The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. + * `denyMaintenancePeriods` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.DenyMaintenancePeriod.t)`, *default:* `nil`) - Deny maintenance periods + * `connectorEnforcement` (*type:* `String.t`, *default:* `nil`) - Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance. + * `deletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration to protect against accidental instance deletion. + * `pricingPlan` (*type:* `String.t`, *default:* `nil`) - The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances. * `tier` (*type:* `String.t`, *default:* `nil`) - The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance. - * `timeZone` (*type:* `String.t`, *default:* `nil`) - Server timezone, relevant only for Cloud SQL for SQL Server. - * `userLabels` (*type:* `map()`, *default:* `nil`) - User-provided labels, represented as a dictionary where each label is a single key value pair. + * `enableGoogleMlIntegration` (*type:* `boolean()`, *default:* `nil`) - Optional. Configuration to enable Cloud SQL Vertex AI Integration + * `storageAutoResize` (*type:* `boolean()`, *default:* `nil`) - Configuration to increase storage size automatically. The default value is true. + * `settingsVersion` (*type:* `String.t`, *default:* `nil`) - The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :activationPolicy => String.t() | nil, - :activeDirectoryConfig => - GoogleApi.SQLAdmin.V1.Model.SqlActiveDirectoryConfig.t() | nil, - :authorizedGaeApplications => list(String.t()) | nil, - :availabilityType => String.t() | nil, - :backupConfiguration => GoogleApi.SQLAdmin.V1.Model.BackupConfiguration.t() | nil, + :advancedMachineFeatures => + GoogleApi.SQLAdmin.V1.Model.AdvancedMachineFeatures.t() | nil, :collation => String.t() | nil, - :connectorEnforcement => String.t() | nil, - :crashSafeReplicationEnabled => boolean() | nil, - :dataDiskSizeGb => String.t() | nil, - :dataDiskType => String.t() | nil, - :databaseFlags => list(GoogleApi.SQLAdmin.V1.Model.DatabaseFlags.t()) | nil, - :databaseReplicationEnabled => boolean() | nil, - :deletionProtectionEnabled => boolean() | nil, - :denyMaintenancePeriods => - list(GoogleApi.SQLAdmin.V1.Model.DenyMaintenancePeriod.t()) | nil, + :dataCacheConfig => GoogleApi.SQLAdmin.V1.Model.DataCacheConfig.t() | nil, + :availabilityType => String.t() | nil, + :userLabels => map() | nil, :insightsConfig => GoogleApi.SQLAdmin.V1.Model.InsightsConfig.t() | nil, :ipConfiguration => GoogleApi.SQLAdmin.V1.Model.IpConfiguration.t() | nil, - :kind => String.t() | nil, + :dataDiskSizeGb => String.t() | nil, + :timeZone => String.t() | nil, :locationPreference => GoogleApi.SQLAdmin.V1.Model.LocationPreference.t() | nil, - :maintenanceWindow => GoogleApi.SQLAdmin.V1.Model.MaintenanceWindow.t() | nil, - :passwordValidationPolicy => - GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy.t() | nil, - :pricingPlan => String.t() | nil, + :kind => String.t() | nil, + :backupConfiguration => GoogleApi.SQLAdmin.V1.Model.BackupConfiguration.t() | nil, + :crashSafeReplicationEnabled => boolean() | nil, :replicationType => String.t() | nil, - :settingsVersion => String.t() | nil, + :activeDirectoryConfig => + GoogleApi.SQLAdmin.V1.Model.SqlActiveDirectoryConfig.t() | nil, + :authorizedGaeApplications => list(String.t()) | nil, + :edition => String.t() | nil, + :databaseReplicationEnabled => boolean() | nil, :sqlServerAuditConfig => GoogleApi.SQLAdmin.V1.Model.SqlServerAuditConfig.t() | nil, - :storageAutoResize => boolean() | nil, + :activationPolicy => String.t() | nil, + :passwordValidationPolicy => + GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy.t() | nil, + :databaseFlags => list(GoogleApi.SQLAdmin.V1.Model.DatabaseFlags.t()) | nil, + :maintenanceWindow => GoogleApi.SQLAdmin.V1.Model.MaintenanceWindow.t() | nil, + :dataDiskType => String.t() | nil, :storageAutoResizeLimit => String.t() | nil, + :denyMaintenancePeriods => + list(GoogleApi.SQLAdmin.V1.Model.DenyMaintenancePeriod.t()) | nil, + :connectorEnforcement => String.t() | nil, + :deletionProtectionEnabled => boolean() | nil, + :pricingPlan => String.t() | nil, :tier => String.t() | nil, - :timeZone => String.t() | nil, - :userLabels => map() | nil + :enableGoogleMlIntegration => boolean() | nil, + :storageAutoResize => boolean() | nil, + :settingsVersion => String.t() | nil } - field(:activationPolicy) - field(:activeDirectoryConfig, as: GoogleApi.SQLAdmin.V1.Model.SqlActiveDirectoryConfig) - field(:authorizedGaeApplications, type: :list) + field(:advancedMachineFeatures, as: GoogleApi.SQLAdmin.V1.Model.AdvancedMachineFeatures) + field(:collation) + field(:dataCacheConfig, as: GoogleApi.SQLAdmin.V1.Model.DataCacheConfig) field(:availabilityType) + field(:userLabels, type: :map) + field(:insightsConfig, as: GoogleApi.SQLAdmin.V1.Model.InsightsConfig) + field(:ipConfiguration, as: GoogleApi.SQLAdmin.V1.Model.IpConfiguration) + field(:dataDiskSizeGb) + field(:timeZone) + field(:locationPreference, as: GoogleApi.SQLAdmin.V1.Model.LocationPreference) + field(:kind) field(:backupConfiguration, as: GoogleApi.SQLAdmin.V1.Model.BackupConfiguration) - field(:collation) - field(:connectorEnforcement) field(:crashSafeReplicationEnabled) - field(:dataDiskSizeGb) - field(:dataDiskType) - field(:databaseFlags, as: GoogleApi.SQLAdmin.V1.Model.DatabaseFlags, type: :list) + field(:replicationType) + field(:activeDirectoryConfig, as: GoogleApi.SQLAdmin.V1.Model.SqlActiveDirectoryConfig) + field(:authorizedGaeApplications, type: :list) + field(:edition) field(:databaseReplicationEnabled) - field(:deletionProtectionEnabled) + field(:sqlServerAuditConfig, as: GoogleApi.SQLAdmin.V1.Model.SqlServerAuditConfig) + field(:activationPolicy) + field(:passwordValidationPolicy, as: GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy) + field(:databaseFlags, as: GoogleApi.SQLAdmin.V1.Model.DatabaseFlags, type: :list) + field(:maintenanceWindow, as: GoogleApi.SQLAdmin.V1.Model.MaintenanceWindow) + field(:dataDiskType) + field(:storageAutoResizeLimit) field(:denyMaintenancePeriods, as: GoogleApi.SQLAdmin.V1.Model.DenyMaintenancePeriod, type: :list ) - field(:insightsConfig, as: GoogleApi.SQLAdmin.V1.Model.InsightsConfig) - field(:ipConfiguration, as: GoogleApi.SQLAdmin.V1.Model.IpConfiguration) - field(:kind) - field(:locationPreference, as: GoogleApi.SQLAdmin.V1.Model.LocationPreference) - field(:maintenanceWindow, as: GoogleApi.SQLAdmin.V1.Model.MaintenanceWindow) - field(:passwordValidationPolicy, as: GoogleApi.SQLAdmin.V1.Model.PasswordValidationPolicy) + field(:connectorEnforcement) + field(:deletionProtectionEnabled) field(:pricingPlan) - field(:replicationType) - field(:settingsVersion) - field(:sqlServerAuditConfig, as: GoogleApi.SQLAdmin.V1.Model.SqlServerAuditConfig) - field(:storageAutoResize) - field(:storageAutoResizeLimit) field(:tier) - field(:timeZone) - field(:userLabels, type: :map) + field(:enableGoogleMlIntegration) + field(:storageAutoResize) + field(:settingsVersion) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.Settings do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_acquire_ssrs_lease_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_acquire_ssrs_lease_response.ex new file mode 100644 index 0000000000..9af4a847c5 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_acquire_ssrs_lease_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesAcquireSsrsLeaseResponse do + @moduledoc """ + Response for the acquire SSRS lease request. + + ## Attributes + + * `operationId` (*type:* `String.t`, *default:* `nil`) - The unique identifier for this operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :operationId => String.t() | nil + } + + field(:operationId) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesAcquireSsrsLeaseResponse do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.SqlInstancesAcquireSsrsLeaseResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesAcquireSsrsLeaseResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_get_disk_shrink_config_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_get_disk_shrink_config_response.ex new file mode 100644 index 0000000000..883feaf463 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_get_disk_shrink_config_response.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetDiskShrinkConfigResponse do + @moduledoc """ + Instance get disk shrink config response. + + ## Attributes + + * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#getDiskShrinkConfig`. + * `message` (*type:* `String.t`, *default:* `nil`) - Additional message to customers. + * `minimalTargetSizeGb` (*type:* `String.t`, *default:* `nil`) - The minimum size to which a disk can be shrunk in GigaBytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kind => String.t() | nil, + :message => String.t() | nil, + :minimalTargetSizeGb => String.t() | nil + } + + field(:kind) + field(:message) + field(:minimalTargetSizeGb) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetDiskShrinkConfigResponse do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetDiskShrinkConfigResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetDiskShrinkConfigResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_get_latest_recovery_time_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_get_latest_recovery_time_response.ex new file mode 100644 index 0000000000..fa67a1dd5f --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_get_latest_recovery_time_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetLatestRecoveryTimeResponse do + @moduledoc """ + Instance get latest recovery time response. + + ## Attributes + + * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#getLatestRecoveryTime`. + * `latestRecoveryTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp, identifies the latest recovery time of the source instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kind => String.t() | nil, + :latestRecoveryTime => DateTime.t() | nil + } + + field(:kind) + field(:latestRecoveryTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetLatestRecoveryTimeResponse do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetLatestRecoveryTimeResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesGetLatestRecoveryTimeResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_release_ssrs_lease_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_release_ssrs_lease_response.ex new file mode 100644 index 0000000000..cde930cee7 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_release_ssrs_lease_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesReleaseSsrsLeaseResponse do + @moduledoc """ + Response for the release SSRS lease request. + + ## Attributes + + * `operationId` (*type:* `String.t`, *default:* `nil`) - The unique identifier for this operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :operationId => String.t() | nil + } + + field(:operationId) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesReleaseSsrsLeaseResponse do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.SqlInstancesReleaseSsrsLeaseResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesReleaseSsrsLeaseResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_reset_replica_size_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_reset_replica_size_request.ex new file mode 100644 index 0000000000..52f400f8a5 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_reset_replica_size_request.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesResetReplicaSizeRequest do + @moduledoc """ + Instance reset replica size request. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesResetReplicaSizeRequest do + def decode(value, options) do + GoogleApi.SQLAdmin.V1.Model.SqlInstancesResetReplicaSizeRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesResetReplicaSizeRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_start_external_sync_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_start_external_sync_request.ex index eaa9bc5bc6..5a91a41e82 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_start_external_sync_request.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_start_external_sync_request.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesStartExternalSyncRequest do * `mysqlSyncConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig.t`, *default:* `nil`) - MySQL-specific settings for start external sync. * `skipVerification` (*type:* `boolean()`, *default:* `nil`) - Whether to skip the verification step (VESS). * `syncMode` (*type:* `String.t`, *default:* `nil`) - External sync mode. + * `syncParallelLevel` (*type:* `String.t`, *default:* `nil`) - Optional. Parallel level for initial data sync. Currently only applicable for MySQL. """ use GoogleApi.Gax.ModelBase @@ -31,12 +32,14 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesStartExternalSyncRequest do @type t :: %__MODULE__{ :mysqlSyncConfig => GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig.t() | nil, :skipVerification => boolean() | nil, - :syncMode => String.t() | nil + :syncMode => String.t() | nil, + :syncParallelLevel => String.t() | nil } field(:mysqlSyncConfig, as: GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig) field(:skipVerification) field(:syncMode) + field(:syncParallelLevel) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.SqlInstancesStartExternalSyncRequest do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_verify_external_sync_settings_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_verify_external_sync_settings_request.ex index 747134076b..cd30620916 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_verify_external_sync_settings_request.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/sql_instances_verify_external_sync_settings_request.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesVerifyExternalSyncSettingsRequ * `mysqlSyncConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig.t`, *default:* `nil`) - Optional. MySQL-specific settings for start external sync. * `syncMode` (*type:* `String.t`, *default:* `nil`) - External sync mode + * `syncParallelLevel` (*type:* `String.t`, *default:* `nil`) - Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL. * `verifyConnectionOnly` (*type:* `boolean()`, *default:* `nil`) - Flag to enable verifying connection only * `verifyReplicationOnly` (*type:* `boolean()`, *default:* `nil`) - Optional. Flag to verify settings required by replication setup only """ @@ -32,12 +33,14 @@ defmodule GoogleApi.SQLAdmin.V1.Model.SqlInstancesVerifyExternalSyncSettingsRequ @type t :: %__MODULE__{ :mysqlSyncConfig => GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig.t() | nil, :syncMode => String.t() | nil, + :syncParallelLevel => String.t() | nil, :verifyConnectionOnly => boolean() | nil, :verifyReplicationOnly => boolean() | nil } field(:mysqlSyncConfig, as: GoogleApi.SQLAdmin.V1.Model.MySqlSyncConfig) field(:syncMode) + field(:syncParallelLevel) field(:verifyConnectionOnly) field(:verifyReplicationOnly) end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1/model/users_list_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1/model/users_list_response.ex index 3e2f085516..4542bc3398 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1/model/users_list_response.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1/model/users_list_response.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.UsersListResponse do * `items` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.User.t)`, *default:* `nil`) - List of user resources in the instance. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#usersList`. - * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Unused. """ use GoogleApi.Gax.ModelBase diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex index 2d4bab2673..16824da7aa 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/databases.ex @@ -188,7 +188,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Databases do end @doc """ - Inserts a resource containing information about a database inside a Cloud SQL instance. + Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation. ## Parameters diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/instances.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/instances.ex index 3355ec49aa..7b6e99af23 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/instances.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/instances.ex @@ -25,6 +25,84 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Instances do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Acquire a lease for the setup of SQL Server Reporting Services (SSRS). + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Required. ID of the project that contains the instance (Example: project-id). + * `instance` (*type:* `String.t`) - Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id). + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.InstancesAcquireSsrsLeaseRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesAcquireSsrsLeaseResponse{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_acquire_ssrs_lease( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesAcquireSsrsLeaseResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_acquire_ssrs_lease( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/sql/v1beta4/projects/{project}/instances/{instance}/acquireSsrsLease", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesAcquireSsrsLeaseResponse{}] + ) + end + @doc """ Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. @@ -225,6 +303,70 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Instances do |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) end + @doc """ + Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Required. The project ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Required. The name of the Cloud SQL instance. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.InstancesDemoteRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_demote(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_demote(connection, project, instance, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/sql/v1beta4/projects/{project}/instances/{instance}/demote", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) + end + @doc """ Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. @@ -308,7 +450,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Instances do * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server * `project` (*type:* `String.t`) - Project ID of the project that contains the instance to be exported. - * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `instance` (*type:* `String.t`) - The Cloud SQL instance ID. This doesn't include the project ID. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -845,6 +987,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Instances do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:failover` (*type:* `boolean()`) - Set to true if the promote operation should attempt to re-add the original primary as a replica when it comes back online. Otherwise, if this value is false or not set, the original primary will be a standalone instance. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -881,7 +1024,8 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Instances do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :failover => :query } request = @@ -899,6 +1043,146 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Instances do |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) end + @doc """ + Reencrypt CMEK instance with latest key version. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.InstancesReencryptRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_reencrypt(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_reencrypt(connection, project, instance, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/sql/v1beta4/projects/{project}/instances/{instance}/reencrypt", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) + end + + @doc """ + Release a lease for the setup of SQL Server Reporting Services (SSRS). + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Required. The ID of the project that contains the instance (Example: project-id). + * `instance` (*type:* `String.t`) - Required. The Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id). + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesReleaseSsrsLeaseResponse{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_release_ssrs_lease( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesReleaseSsrsLeaseResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_release_ssrs_lease( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/sql/v1beta4/projects/{project}/instances/{instance}/releaseSsrsLease", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesReleaseSsrsLeaseResponse{}] + ) + end + @doc """ Deletes all client certificates and generates a new server SSL certificate for the instance. @@ -1329,6 +1613,70 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Instances do |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) end + @doc """ + Switches over from the primary instance to a replica instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - ID of the project that contains the replica. + * `instance` (*type:* `String.t`) - Cloud SQL read replica instance name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:dbTimeout` (*type:* `String.t`) - Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_instances_switchover(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_instances_switchover(connection, project, instance, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :dbTimeout => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/sql/v1beta4/projects/{project}/instances/{instance}/switchover", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) + end + @doc """ Truncate MySQL general and slow query log tables MySQL only. diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/operations.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/operations.ex index daad48c79a..d2a2228c09 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/operations.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/operations.ex @@ -25,6 +25,68 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Operations do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Cancels an instance operation that has been performed on an instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Project ID of the project that contains the instance. + * `operation` (*type:* `String.t`) - Instance operation ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec sql_operations_cancel(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_operations_cancel(connection, project, operation, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/sql/v1beta4/projects/{project}/operations/{operation}/cancel", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "operation" => URI.encode(operation, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Empty{}]) + end + @doc """ Retrieves an instance operation that has been performed on an instance. diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/projects.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/projects.ex index d1c1c2f337..fe144af07f 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/projects.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/api/projects.ex @@ -25,6 +25,242 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Projects do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Get Disk Shrink Config for a given instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Project ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetDiskShrinkConfigResponse{}}` on success + * `{:error, info}` on failure + """ + @spec sql_projects_instances_get_disk_shrink_config( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetDiskShrinkConfigResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_projects_instances_get_disk_shrink_config( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url( + "/sql/v1beta4/projects/{project}/instances/{instance}/getDiskShrinkConfig", + %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetDiskShrinkConfigResponse{}] + ) + end + + @doc """ + Get Latest Recovery Time for a given instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Project ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetLatestRecoveryTimeResponse{}}` on success + * `{:error, info}` on failure + """ + @spec sql_projects_instances_get_latest_recovery_time( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetLatestRecoveryTimeResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_projects_instances_get_latest_recovery_time( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url( + "/sql/v1beta4/projects/{project}/instances/{instance}/getLatestRecoveryTime", + %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetLatestRecoveryTimeResponse{}] + ) + end + + @doc """ + Perform Disk Shrink on primary instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - Project ID of the project that contains the instance. + * `instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.PerformDiskShrinkContext.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_projects_instances_perform_disk_shrink( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_projects_instances_perform_disk_shrink( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/sql/v1beta4/projects/{project}/instances/{instance}/performDiskShrink", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) + end + @doc """ Reschedules the maintenance on the given instance. @@ -104,6 +340,82 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) end + @doc """ + Reset Replica Size to primary instance disk size. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SQLAdmin.V1beta4.Connection.t`) - Connection to server + * `project` (*type:* `String.t`) - ID of the project that contains the read replica. + * `instance` (*type:* `String.t`) - Cloud SQL read replica instance name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesResetReplicaSizeRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec sql_projects_instances_reset_replica_size( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SQLAdmin.V1beta4.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def sql_projects_instances_reset_replica_size( + connection, + project, + instance, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/sql/v1beta4/projects/{project}/instances/{instance}/resetReplicaSize", %{ + "project" => URI.encode(project, &URI.char_unreserved?/1), + "instance" => URI.encode(instance, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.SQLAdmin.V1beta4.Model.Operation{}]) + end + @doc """ Start External primary instance migration. diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex index 81e67ac872..70ce38f5bc 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4 do API client metadata for GoogleApi.SQLAdmin.V1beta4. """ - @discovery_revision "20221116" + @discovery_revision "20240304" def discovery_revision(), do: @discovery_revision end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/acquire_ssrs_lease_context.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/acquire_ssrs_lease_context.ex new file mode 100644 index 0000000000..7a675be1af --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/acquire_ssrs_lease_context.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext do + @moduledoc """ + Acquire SSRS lease context. + + ## Attributes + + * `duration` (*type:* `String.t`, *default:* `nil`) - Lease duration needed for the SSRS setup. + * `reportDatabase` (*type:* `String.t`, *default:* `nil`) - The report database to be used for the SSRS setup. + * `serviceLogin` (*type:* `String.t`, *default:* `nil`) - The username to be used as the service login to connect to the report database for SSRS setup. + * `setupLogin` (*type:* `String.t`, *default:* `nil`) - The username to be used as the setup login to connect to the database server for SSRS setup. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :duration => String.t() | nil, + :reportDatabase => String.t() | nil, + :serviceLogin => String.t() | nil, + :setupLogin => String.t() | nil + } + + field(:duration) + field(:reportDatabase) + field(:serviceLogin) + field(:setupLogin) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/advanced_machine_features.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/advanced_machine_features.ex new file mode 100644 index 0000000000..0285127af8 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/advanced_machine_features.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.AdvancedMachineFeatures do + @moduledoc """ + Specifies options for controlling advanced machine features. + + ## Attributes + + * `threadsPerCore` (*type:* `integer()`, *default:* `nil`) - The number of threads per physical core. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :threadsPerCore => integer() | nil + } + + field(:threadsPerCore) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.AdvancedMachineFeatures do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.AdvancedMachineFeatures.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.AdvancedMachineFeatures do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_configuration.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_configuration.ex index ed25c94fc2..f7e0deb7e9 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_configuration.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_configuration.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.BackupConfiguration do * `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether this configuration is enabled. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#backupConfiguration`. * `location` (*type:* `String.t`, *default:* `nil`) - Location of the backup - * `pointInTimeRecoveryEnabled` (*type:* `boolean()`, *default:* `nil`) - (Postgres only) Whether point in time recovery is enabled. + * `pointInTimeRecoveryEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether point in time recovery is enabled. * `replicationLogArchivingEnabled` (*type:* `boolean()`, *default:* `nil`) - Reserved for future use. * `startTime` (*type:* `String.t`, *default:* `nil`) - Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`. * `transactionLogRetentionDays` (*type:* `integer()`, *default:* `nil`) - The number of days of transaction logs we retain for point in time restore, from 1-7. diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_reencryption_config.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_reencryption_config.ex new file mode 100644 index 0000000000..f79c0d25b4 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/backup_reencryption_config.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.BackupReencryptionConfig do + @moduledoc """ + Backup Reencryption Config + + ## Attributes + + * `backupLimit` (*type:* `integer()`, *default:* `nil`) - Backup re-encryption limit + * `backupType` (*type:* `String.t`, *default:* `nil`) - Type of backups users want to re-encrypt. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backupLimit => integer() | nil, + :backupType => String.t() | nil + } + + field(:backupLimit) + field(:backupType) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.BackupReencryptionConfig do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.BackupReencryptionConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.BackupReencryptionConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/clone_context.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/clone_context.ex index a151f53ba8..e22369c9d8 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/clone_context.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/clone_context.ex @@ -28,6 +28,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.CloneContext do * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#cloneContext`. * `pitrTimestampMs` (*type:* `String.t`, *default:* `nil`) - Reserved for future use. * `pointInTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp, if specified, identifies the time to which the source instance is cloned. + * `preferredZone` (*type:* `String.t`, *default:* `nil`) - Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. """ use GoogleApi.Gax.ModelBase @@ -39,7 +40,8 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.CloneContext do :destinationInstanceName => String.t() | nil, :kind => String.t() | nil, :pitrTimestampMs => String.t() | nil, - :pointInTime => DateTime.t() | nil + :pointInTime => DateTime.t() | nil, + :preferredZone => String.t() | nil } field(:allocatedIpRange) @@ -49,6 +51,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.CloneContext do field(:kind) field(:pitrTimestampMs) field(:pointInTime, as: DateTime) + field(:preferredZone) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.CloneContext do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/connect_settings.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/connect_settings.ex index 57cbf8ec64..82e31d7775 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/connect_settings.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/connect_settings.ex @@ -23,8 +23,10 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ConnectSettings do * `backendType` (*type:* `String.t`, *default:* `nil`) - `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type. * `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. + * `dnsName` (*type:* `String.t`, *default:* `nil`) - The dns name of the instance. * `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1beta4.Model.IpMapping.t)`, *default:* `nil`) - The assigned IP addresses for the instance. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#connectSettings`. + * `pscEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether PSC connectivity is enabled for this instance. * `region` (*type:* `String.t`, *default:* `nil`) - The cloud region for the instance. e.g. `us-central1`, `europe-west1`. The region cannot be changed after instance creation. * `serverCaCert` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.SslCert.t`, *default:* `nil`) - SSL configuration. """ @@ -34,16 +36,20 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ConnectSettings do @type t :: %__MODULE__{ :backendType => String.t() | nil, :databaseVersion => String.t() | nil, + :dnsName => String.t() | nil, :ipAddresses => list(GoogleApi.SQLAdmin.V1beta4.Model.IpMapping.t()) | nil, :kind => String.t() | nil, + :pscEnabled => boolean() | nil, :region => String.t() | nil, :serverCaCert => GoogleApi.SQLAdmin.V1beta4.Model.SslCert.t() | nil } field(:backendType) field(:databaseVersion) + field(:dnsName) field(:ipAddresses, as: GoogleApi.SQLAdmin.V1beta4.Model.IpMapping, type: :list) field(:kind) + field(:pscEnabled) field(:region) field(:serverCaCert, as: GoogleApi.SQLAdmin.V1beta4.Model.SslCert) end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/data_cache_config.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/data_cache_config.ex new file mode 100644 index 0000000000..a676ae141d --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/data_cache_config.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.DataCacheConfig do + @moduledoc """ + Data cache configurations. + + ## Attributes + + * `dataCacheEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether data cache is enabled for the instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataCacheEnabled => boolean() | nil + } + + field(:dataCacheEnabled) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.DataCacheConfig do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.DataCacheConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.DataCacheConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database_instance.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database_instance.ex index 5337bf2fe9..32007ca9ab 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database_instance.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/database_instance.ex @@ -25,6 +25,8 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.DatabaseInstance do * `etag` (*type:* `String.t`, *default:* `nil`) - This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead. * `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. * `serverCaCert` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.SslCert.t`, *default:* `nil`) - SSL configuration. + * `dnsName` (*type:* `String.t`, *default:* `nil`) - Output only. The dns name of the instance. + * `sqlNetworkArchitecture` (*type:* `String.t`, *default:* `nil`) - The SQL network architecture for the instance. * `suspensionReason` (*type:* `list(String.t)`, *default:* `nil`) - If the instance state is SUSPENDED, the reason for the suspension. * `maintenanceVersion` (*type:* `String.t`, *default:* `nil`) - The current software version on the instance. * `serviceAccountEmailAddress` (*type:* `String.t`, *default:* `nil`) - The service account email address assigned to the instance. \\This property is read-only. @@ -37,17 +39,20 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.DatabaseInstance do * `project` (*type:* `String.t`, *default:* `nil`) - The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable. * `name` (*type:* `String.t`, *default:* `nil`) - Name of the Cloud SQL instance. This does not include the project ID. * `state` (*type:* `String.t`, *default:* `nil`) - The current serving state of the Cloud SQL instance. - * `region` (*type:* `String.t`, *default:* `nil`) - The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. Defaults to `us-central` or `us-central1` depending on the instance type. The region cannot be changed after instance creation. + * `region` (*type:* `String.t`, *default:* `nil`) - The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`. * `replicaConfiguration` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.ReplicaConfiguration.t`, *default:* `nil`) - Configuration specific to failover replicas and read replicas. * `diskEncryptionStatus` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.DiskEncryptionStatus.t`, *default:* `nil`) - Disk encryption status specific to an instance. * `connectionName` (*type:* `String.t`, *default:* `nil`) - Connection name of the Cloud SQL instance used in connection strings. * `onPremisesConfiguration` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.OnPremisesConfiguration.t`, *default:* `nil`) - Configuration specific to on-premises instances. - * `availableMaintenanceVersions` (*type:* `list(String.t)`, *default:* `nil`) - List all maintenance versions applicable on the instance + * `primaryDnsName` (*type:* `String.t`, *default:* `nil`) - Output only. DEPRECATED: please use write_endpoint instead. + * `availableMaintenanceVersions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. List all maintenance versions applicable on the instance + * `writeEndpoint` (*type:* `String.t`, *default:* `nil`) - Output only. The dns name of the primary instance in a replication group. * `instanceType` (*type:* `String.t`, *default:* `nil`) - The instance type. * `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1beta4.Model.IpMapping.t)`, *default:* `nil`) - The assigned IP addresses for the instance. * `replicaNames` (*type:* `list(String.t)`, *default:* `nil`) - The replicas of the instance. * `currentDiskSize` (*type:* `String.t`, *default:* `nil`) - The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details. * `secondaryGceZone` (*type:* `String.t`, *default:* `nil`) - The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone. + * `pscServiceAttachmentLink` (*type:* `String.t`, *default:* `nil`) - Output only. The link to service attachment of PSC instance. * `settings` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.Settings.t`, *default:* `nil`) - The user settings. * `rootPassword` (*type:* `String.t`, *default:* `nil`) - Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances. * `selfLink` (*type:* `String.t`, *default:* `nil`) - The URI of this resource. @@ -66,6 +71,8 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.DatabaseInstance do :etag => String.t() | nil, :databaseVersion => String.t() | nil, :serverCaCert => GoogleApi.SQLAdmin.V1beta4.Model.SslCert.t() | nil, + :dnsName => String.t() | nil, + :sqlNetworkArchitecture => String.t() | nil, :suspensionReason => list(String.t()) | nil, :maintenanceVersion => String.t() | nil, :serviceAccountEmailAddress => String.t() | nil, @@ -86,12 +93,15 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.DatabaseInstance do :connectionName => String.t() | nil, :onPremisesConfiguration => GoogleApi.SQLAdmin.V1beta4.Model.OnPremisesConfiguration.t() | nil, + :primaryDnsName => String.t() | nil, :availableMaintenanceVersions => list(String.t()) | nil, + :writeEndpoint => String.t() | nil, :instanceType => String.t() | nil, :ipAddresses => list(GoogleApi.SQLAdmin.V1beta4.Model.IpMapping.t()) | nil, :replicaNames => list(String.t()) | nil, :currentDiskSize => String.t() | nil, :secondaryGceZone => String.t() | nil, + :pscServiceAttachmentLink => String.t() | nil, :settings => GoogleApi.SQLAdmin.V1beta4.Model.Settings.t() | nil, :rootPassword => String.t() | nil, :selfLink => String.t() | nil, @@ -110,6 +120,8 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.DatabaseInstance do field(:etag) field(:databaseVersion) field(:serverCaCert, as: GoogleApi.SQLAdmin.V1beta4.Model.SslCert) + field(:dnsName) + field(:sqlNetworkArchitecture) field(:suspensionReason, type: :list) field(:maintenanceVersion) field(:serviceAccountEmailAddress) @@ -127,12 +139,15 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.DatabaseInstance do field(:diskEncryptionStatus, as: GoogleApi.SQLAdmin.V1beta4.Model.DiskEncryptionStatus) field(:connectionName) field(:onPremisesConfiguration, as: GoogleApi.SQLAdmin.V1beta4.Model.OnPremisesConfiguration) + field(:primaryDnsName) field(:availableMaintenanceVersions, type: :list) + field(:writeEndpoint) field(:instanceType) field(:ipAddresses, as: GoogleApi.SQLAdmin.V1beta4.Model.IpMapping, type: :list) field(:replicaNames, type: :list) field(:currentDiskSize) field(:secondaryGceZone) + field(:pscServiceAttachmentLink) field(:settings, as: GoogleApi.SQLAdmin.V1beta4.Model.Settings) field(:rootPassword) field(:selfLink) diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/demote_context.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/demote_context.ex new file mode 100644 index 0000000000..35ee86690f --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/demote_context.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.DemoteContext do + @moduledoc """ + This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. + + ## Attributes + + * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#demoteContext`. + * `sourceRepresentativeInstanceName` (*type:* `String.t`, *default:* `nil`) - Required. The name of the instance which acts as an on-premises primary instance in the replication setup. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kind => String.t() | nil, + :sourceRepresentativeInstanceName => String.t() | nil + } + + field(:kind) + field(:sourceRepresentativeInstanceName) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.DemoteContext do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.DemoteContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.DemoteContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/empty.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/empty.ex new file mode 100644 index 0000000000..cdfc952739 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/empty.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.Empty do + @moduledoc """ + A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.Empty do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.Empty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.Empty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context_bak_export_options.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context_bak_export_options.ex index 3db7764b34..30ec420a9b 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context_bak_export_options.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context_bak_export_options.ex @@ -21,6 +21,9 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ExportContextBakExportOptions do ## Attributes + * `bakType` (*type:* `String.t`, *default:* `nil`) - Type of this bak file will be export, FULL or DIFF, SQL Server only + * `copyOnly` (*type:* `boolean()`, *default:* `nil`) - Deprecated: copy_only is deprecated. Use differential_base instead + * `differentialBase` (*type:* `boolean()`, *default:* `nil`) - Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base * `stripeCount` (*type:* `integer()`, *default:* `nil`) - Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen. * `striped` (*type:* `boolean()`, *default:* `nil`) - Whether or not the export should be striped. """ @@ -28,10 +31,16 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ExportContextBakExportOptions do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :bakType => String.t() | nil, + :copyOnly => boolean() | nil, + :differentialBase => boolean() | nil, :stripeCount => integer() | nil, :striped => boolean() | nil } + field(:bakType) + field(:copyOnly) + field(:differentialBase) field(:stripeCount) field(:striped) end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context_sql_export_options.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context_sql_export_options.ex index 59498512bd..babd4e7075 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context_sql_export_options.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/export_context_sql_export_options.ex @@ -22,8 +22,10 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ExportContextSqlExportOptions do ## Attributes * `mysqlExportOptions` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.ExportContextSqlExportOptionsMysqlExportOptions.t`, *default:* `nil`) - Options for exporting from MySQL. + * `parallel` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether or not the export should be parallel. * `schemaOnly` (*type:* `boolean()`, *default:* `nil`) - Export only schemas. * `tables` (*type:* `list(String.t)`, *default:* `nil`) - Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table. + * `threads` (*type:* `integer()`, *default:* `nil`) - Optional. The number of threads to use for parallel export. """ use GoogleApi.Gax.ModelBase @@ -32,16 +34,20 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ExportContextSqlExportOptions do :mysqlExportOptions => GoogleApi.SQLAdmin.V1beta4.Model.ExportContextSqlExportOptionsMysqlExportOptions.t() | nil, + :parallel => boolean() | nil, :schemaOnly => boolean() | nil, - :tables => list(String.t()) | nil + :tables => list(String.t()) | nil, + :threads => integer() | nil } field(:mysqlExportOptions, as: GoogleApi.SQLAdmin.V1beta4.Model.ExportContextSqlExportOptionsMysqlExportOptions ) + field(:parallel) field(:schemaOnly) field(:tables, type: :list) + field(:threads) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.ExportContextSqlExportOptions do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/import_context_bak_import_options.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/import_context_bak_import_options.ex index c44727d052..7afe299e1b 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/import_context_bak_import_options.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/import_context_bak_import_options.ex @@ -21,23 +21,39 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ImportContextBakImportOptions do ## Attributes + * `bakType` (*type:* `String.t`, *default:* `nil`) - Type of the bak content, FULL or DIFF. * `encryptionOptions` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.ImportContextBakImportOptionsEncryptionOptions.t`, *default:* `nil`) - + * `noRecovery` (*type:* `boolean()`, *default:* `nil`) - Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server. + * `recoveryOnly` (*type:* `boolean()`, *default:* `nil`) - Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server. + * `stopAt` (*type:* `DateTime.t`, *default:* `nil`) - Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only. + * `stopAtMark` (*type:* `String.t`, *default:* `nil`) - Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only. * `striped` (*type:* `boolean()`, *default:* `nil`) - Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :bakType => String.t() | nil, :encryptionOptions => GoogleApi.SQLAdmin.V1beta4.Model.ImportContextBakImportOptionsEncryptionOptions.t() | nil, + :noRecovery => boolean() | nil, + :recoveryOnly => boolean() | nil, + :stopAt => DateTime.t() | nil, + :stopAtMark => String.t() | nil, :striped => boolean() | nil } + field(:bakType) + field(:encryptionOptions, as: GoogleApi.SQLAdmin.V1beta4.Model.ImportContextBakImportOptionsEncryptionOptions ) + field(:noRecovery) + field(:recoveryOnly) + field(:stopAt, as: DateTime) + field(:stopAtMark) field(:striped) end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_acquire_ssrs_lease_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_acquire_ssrs_lease_request.ex new file mode 100644 index 0000000000..372a2a703f --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_acquire_ssrs_lease_request.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.InstancesAcquireSsrsLeaseRequest do + @moduledoc """ + Request to acquire an SSRS lease for an instance. + + ## Attributes + + * `acquireSsrsLeaseContext` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext.t`, *default:* `nil`) - Contains details about the acquire SSRS lease operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :acquireSsrsLeaseContext => + GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext.t() | nil + } + + field(:acquireSsrsLeaseContext, as: GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.InstancesAcquireSsrsLeaseRequest do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.InstancesAcquireSsrsLeaseRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.InstancesAcquireSsrsLeaseRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_demote_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_demote_request.ex new file mode 100644 index 0000000000..6be4922411 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_demote_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.InstancesDemoteRequest do + @moduledoc """ + This request is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. + + ## Attributes + + * `demoteContext` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.DemoteContext.t`, *default:* `nil`) - Required. This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :demoteContext => GoogleApi.SQLAdmin.V1beta4.Model.DemoteContext.t() | nil + } + + field(:demoteContext, as: GoogleApi.SQLAdmin.V1beta4.Model.DemoteContext) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.InstancesDemoteRequest do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.InstancesDemoteRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.InstancesDemoteRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_reencrypt_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_reencrypt_request.ex new file mode 100644 index 0000000000..59b3cff27d --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_reencrypt_request.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.InstancesReencryptRequest do + @moduledoc """ + Database Instance reencrypt request. + + ## Attributes + + * `backupReencryptionConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.BackupReencryptionConfig.t`, *default:* `nil`) - Configuration specific to backup re-encryption + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backupReencryptionConfig => + GoogleApi.SQLAdmin.V1beta4.Model.BackupReencryptionConfig.t() | nil + } + + field(:backupReencryptionConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.BackupReencryptionConfig) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.InstancesReencryptRequest do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.InstancesReencryptRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.InstancesReencryptRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex index f342a81a4d..09f447c753 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_configuration.ex @@ -26,7 +26,9 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.IpConfiguration do * `enablePrivatePathForGoogleCloudServices` (*type:* `boolean()`, *default:* `nil`) - Controls connectivity to private IP instances from Google services, such as BigQuery. * `ipv4Enabled` (*type:* `boolean()`, *default:* `nil`) - Whether the instance is assigned a public IP address or not. * `privateNetwork` (*type:* `String.t`, *default:* `nil`) - The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set. - * `requireSsl` (*type:* `boolean()`, *default:* `nil`) - Whether SSL connections over IP are enforced or not. + * `pscConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.PscConfig.t`, *default:* `nil`) - PSC settings for this instance. + * `requireSsl` (*type:* `boolean()`, *default:* `nil`) - Use `ssl_mode` instead for MySQL and PostgreSQL. SQL Server uses this flag. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag. + * `sslMode` (*type:* `String.t`, *default:* `nil`) - Specify how SSL/TLS is enforced in database connections. MySQL and PostgreSQL use the `ssl_mode` flag. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections. SQL Server uses the `require_ssl` flag. You can set the value for this flag to `true` or `false`. """ use GoogleApi.Gax.ModelBase @@ -37,7 +39,9 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.IpConfiguration do :enablePrivatePathForGoogleCloudServices => boolean() | nil, :ipv4Enabled => boolean() | nil, :privateNetwork => String.t() | nil, - :requireSsl => boolean() | nil + :pscConfig => GoogleApi.SQLAdmin.V1beta4.Model.PscConfig.t() | nil, + :requireSsl => boolean() | nil, + :sslMode => String.t() | nil } field(:allocatedIpRange) @@ -45,7 +49,9 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.IpConfiguration do field(:enablePrivatePathForGoogleCloudServices) field(:ipv4Enabled) field(:privateNetwork) + field(:pscConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.PscConfig) field(:requireSsl) + field(:sslMode) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.IpConfiguration do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_mapping.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_mapping.ex index f3dfdbc718..dd7b783c1f 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_mapping.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/ip_mapping.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.IpMapping do @moduledoc """ - Database instance IP Mapping. + Database instance IP mapping ## Attributes diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/location_preference.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/location_preference.ex index 3e4faf891c..559f0b92b5 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/location_preference.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/location_preference.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.LocationPreference do * `followGaeApplication` (*type:* `String.t`, *default:* `nil`) - The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#locationPreference`. - * `secondaryZone` (*type:* `String.t`, *default:* `nil`) - The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). + * `secondaryZone` (*type:* `String.t`, *default:* `nil`) - The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to 'no_secondary_zone'. * `zone` (*type:* `String.t`, *default:* `nil`) - The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance. """ diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation.ex index b8b94ac3ea..322d160fa1 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation.ex @@ -21,6 +21,8 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.Operation do ## Attributes + * `acquireSsrsLeaseContext` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext.t`, *default:* `nil`) - The context for acquire SSRS lease operation, if applicable. + * `apiWarning` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.ApiWarning.t`, *default:* `nil`) - An Admin API warning message. * `backupContext` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.BackupContext.t`, *default:* `nil`) - The context for backup operation, if applicable. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. * `error` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.OperationErrors.t`, *default:* `nil`) - If errors occurred during processing of this operation, this field will be populated. @@ -42,6 +44,9 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.Operation do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :acquireSsrsLeaseContext => + GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext.t() | nil, + :apiWarning => GoogleApi.SQLAdmin.V1beta4.Model.ApiWarning.t() | nil, :backupContext => GoogleApi.SQLAdmin.V1beta4.Model.BackupContext.t() | nil, :endTime => DateTime.t() | nil, :error => GoogleApi.SQLAdmin.V1beta4.Model.OperationErrors.t() | nil, @@ -60,6 +65,8 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.Operation do :user => String.t() | nil } + field(:acquireSsrsLeaseContext, as: GoogleApi.SQLAdmin.V1beta4.Model.AcquireSsrsLeaseContext) + field(:apiWarning, as: GoogleApi.SQLAdmin.V1beta4.Model.ApiWarning) field(:backupContext, as: GoogleApi.SQLAdmin.V1beta4.Model.BackupContext) field(:endTime, as: DateTime) field(:error, as: GoogleApi.SQLAdmin.V1beta4.Model.OperationErrors) diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation_metadata.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation_metadata.ex new file mode 100644 index 0000000000..7e19b5a335 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/operation_metadata.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.OperationMetadata do + @moduledoc """ + Represents the metadata of the long-running operation. + + ## Attributes + + * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation. + * `cancelRequested` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. + * `statusDetail` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any. + * `target` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined resource path for the target of the operation. + * `verb` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the verb executed by the operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apiVersion => String.t() | nil, + :cancelRequested => boolean() | nil, + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :statusDetail => String.t() | nil, + :target => String.t() | nil, + :verb => String.t() | nil + } + + field(:apiVersion) + field(:cancelRequested) + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + field(:statusDetail) + field(:target) + field(:verb) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.OperationMetadata do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.OperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.OperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/password_validation_policy.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/password_validation_policy.ex index a862ff2a28..14309f9361 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/password_validation_policy.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/password_validation_policy.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy do ## Attributes * `complexity` (*type:* `String.t`, *default:* `nil`) - The complexity of the password. + * `disallowCompromisedCredentials` (*type:* `boolean()`, *default:* `nil`) - This field is deprecated and will be removed in a future version of the API. * `disallowUsernameSubstring` (*type:* `boolean()`, *default:* `nil`) - Disallow username as a part of the password. * `enablePasswordPolicy` (*type:* `boolean()`, *default:* `nil`) - Whether the password policy is enabled or not. * `minLength` (*type:* `integer()`, *default:* `nil`) - Minimum number of characters allowed. @@ -33,6 +34,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy do @type t :: %__MODULE__{ :complexity => String.t() | nil, + :disallowCompromisedCredentials => boolean() | nil, :disallowUsernameSubstring => boolean() | nil, :enablePasswordPolicy => boolean() | nil, :minLength => integer() | nil, @@ -41,6 +43,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy do } field(:complexity) + field(:disallowCompromisedCredentials) field(:disallowUsernameSubstring) field(:enablePasswordPolicy) field(:minLength) diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/perform_disk_shrink_context.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/perform_disk_shrink_context.ex new file mode 100644 index 0000000000..ca5c4fb5aa --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/perform_disk_shrink_context.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.PerformDiskShrinkContext do + @moduledoc """ + Perform disk shrink context. + + ## Attributes + + * `targetSizeGb` (*type:* `String.t`, *default:* `nil`) - The target disk shrink size in GigaBytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :targetSizeGb => String.t() | nil + } + + field(:targetSizeGb) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.PerformDiskShrinkContext do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.PerformDiskShrinkContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.PerformDiskShrinkContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/psc_config.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/psc_config.ex new file mode 100644 index 0000000000..0cfdc27b9d --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/psc_config.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.PscConfig do + @moduledoc """ + PSC settings for a Cloud SQL instance. + + ## Attributes + + * `allowedConsumerProjects` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric). + * `pscEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether PSC connectivity is enabled for this instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowedConsumerProjects => list(String.t()) | nil, + :pscEnabled => boolean() | nil + } + + field(:allowedConsumerProjects, type: :list) + field(:pscEnabled) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.PscConfig do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.PscConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.PscConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/replica_configuration.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/replica_configuration.ex index 579edff2ce..f54fb7ab75 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/replica_configuration.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/replica_configuration.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ReplicaConfiguration do ## Attributes + * `cascadableReplica` (*type:* `boolean()`, *default:* `nil`) - Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it. * `failoverTarget` (*type:* `boolean()`, *default:* `nil`) - Specifies if the replica is the failover target. If the field is set to `true` the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#replicaConfiguration`. * `mysqlReplicaConfiguration` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.MySqlReplicaConfiguration.t`, *default:* `nil`) - MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory. @@ -29,12 +30,14 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.ReplicaConfiguration do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :cascadableReplica => boolean() | nil, :failoverTarget => boolean() | nil, :kind => String.t() | nil, :mysqlReplicaConfiguration => GoogleApi.SQLAdmin.V1beta4.Model.MySqlReplicaConfiguration.t() | nil } + field(:cascadableReplica) field(:failoverTarget) field(:kind) diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/settings.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/settings.ex index 5f9cfbe27b..5ad7eba899 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/settings.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/settings.ex @@ -21,109 +21,122 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.Settings do ## Attributes - * `activationPolicy` (*type:* `String.t`, *default:* `nil`) - The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives. - * `activeDirectoryConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.SqlActiveDirectoryConfig.t`, *default:* `nil`) - Active Directory configuration, relevant only for Cloud SQL for SQL Server. - * `authorizedGaeApplications` (*type:* `list(String.t)`, *default:* `nil`) - The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only. - * `availabilityType` (*type:* `String.t`, *default:* `nil`) - Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability). - * `backupConfiguration` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.BackupConfiguration.t`, *default:* `nil`) - The daily backup configuration for the instance. + * `advancedMachineFeatures` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.AdvancedMachineFeatures.t`, *default:* `nil`) - Specifies advance machine configuration for the instance relevant only for SQL Server. * `collation` (*type:* `String.t`, *default:* `nil`) - The name of server Instance collation. - * `connectorEnforcement` (*type:* `String.t`, *default:* `nil`) - Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors) Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance. - * `crashSafeReplicationEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. - * `dataDiskSizeGb` (*type:* `String.t`, *default:* `nil`) - The size of data disk, in GB. The data disk size minimum is 10GB. - * `dataDiskType` (*type:* `String.t`, *default:* `nil`) - The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances. - * `databaseFlags` (*type:* `list(GoogleApi.SQLAdmin.V1beta4.Model.DatabaseFlags.t)`, *default:* `nil`) - The database flags passed to the instance at startup. - * `databaseReplicationEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. - * `deletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration to protect against accidental instance deletion. - * `denyMaintenancePeriods` (*type:* `list(GoogleApi.SQLAdmin.V1beta4.Model.DenyMaintenancePeriod.t)`, *default:* `nil`) - Deny maintenance periods + * `dataCacheConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.DataCacheConfig.t`, *default:* `nil`) - Configuration for data cache. + * `availabilityType` (*type:* `String.t`, *default:* `nil`) - Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability). + * `userLabels` (*type:* `map()`, *default:* `nil`) - User-provided labels, represented as a dictionary where each label is a single key value pair. * `insightsConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.InsightsConfig.t`, *default:* `nil`) - Insights configuration, for now relevant only for Postgres. * `ipConfiguration` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.IpConfiguration.t`, *default:* `nil`) - The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances. - * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#settings`. + * `dataDiskSizeGb` (*type:* `String.t`, *default:* `nil`) - The size of data disk, in GB. The data disk size minimum is 10GB. + * `timeZone` (*type:* `String.t`, *default:* `nil`) - Server timezone, relevant only for Cloud SQL for SQL Server. * `locationPreference` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.LocationPreference.t`, *default:* `nil`) - The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances. - * `maintenanceWindow` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.MaintenanceWindow.t`, *default:* `nil`) - The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. - * `passwordValidationPolicy` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy.t`, *default:* `nil`) - The local user password validation policy of the instance. - * `pricingPlan` (*type:* `String.t`, *default:* `nil`) - The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances. + * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#settings`. + * `backupConfiguration` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.BackupConfiguration.t`, *default:* `nil`) - The daily backup configuration for the instance. + * `crashSafeReplicationEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. * `replicationType` (*type:* `String.t`, *default:* `nil`) - The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances. - * `settingsVersion` (*type:* `String.t`, *default:* `nil`) - The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. + * `activeDirectoryConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.SqlActiveDirectoryConfig.t`, *default:* `nil`) - Active Directory configuration, relevant only for Cloud SQL for SQL Server. + * `authorizedGaeApplications` (*type:* `list(String.t)`, *default:* `nil`) - The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only. + * `edition` (*type:* `String.t`, *default:* `nil`) - Optional. The edition of the instance. + * `databaseReplicationEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. * `sqlServerAuditConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.SqlServerAuditConfig.t`, *default:* `nil`) - SQL Server specific audit configuration. - * `storageAutoResize` (*type:* `boolean()`, *default:* `nil`) - Configuration to increase storage size automatically. The default value is true. + * `activationPolicy` (*type:* `String.t`, *default:* `nil`) - The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives. + * `passwordValidationPolicy` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy.t`, *default:* `nil`) - The local user password validation policy of the instance. + * `databaseFlags` (*type:* `list(GoogleApi.SQLAdmin.V1beta4.Model.DatabaseFlags.t)`, *default:* `nil`) - The database flags passed to the instance at startup. + * `maintenanceWindow` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.MaintenanceWindow.t`, *default:* `nil`) - The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. + * `dataDiskType` (*type:* `String.t`, *default:* `nil`) - The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances. * `storageAutoResizeLimit` (*type:* `String.t`, *default:* `nil`) - The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. + * `denyMaintenancePeriods` (*type:* `list(GoogleApi.SQLAdmin.V1beta4.Model.DenyMaintenancePeriod.t)`, *default:* `nil`) - Deny maintenance periods + * `connectorEnforcement` (*type:* `String.t`, *default:* `nil`) - Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors) Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance. + * `deletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Configuration to protect against accidental instance deletion. + * `pricingPlan` (*type:* `String.t`, *default:* `nil`) - The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances. * `tier` (*type:* `String.t`, *default:* `nil`) - The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance. - * `timeZone` (*type:* `String.t`, *default:* `nil`) - Server timezone, relevant only for Cloud SQL for SQL Server. - * `userLabels` (*type:* `map()`, *default:* `nil`) - User-provided labels, represented as a dictionary where each label is a single key value pair. + * `enableGoogleMlIntegration` (*type:* `boolean()`, *default:* `nil`) - Optional. Configuration to enable Cloud SQL Vertex AI Integration + * `storageAutoResize` (*type:* `boolean()`, *default:* `nil`) - Configuration to increase storage size automatically. The default value is true. + * `settingsVersion` (*type:* `String.t`, *default:* `nil`) - The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :activationPolicy => String.t() | nil, - :activeDirectoryConfig => - GoogleApi.SQLAdmin.V1beta4.Model.SqlActiveDirectoryConfig.t() | nil, - :authorizedGaeApplications => list(String.t()) | nil, - :availabilityType => String.t() | nil, - :backupConfiguration => GoogleApi.SQLAdmin.V1beta4.Model.BackupConfiguration.t() | nil, + :advancedMachineFeatures => + GoogleApi.SQLAdmin.V1beta4.Model.AdvancedMachineFeatures.t() | nil, :collation => String.t() | nil, - :connectorEnforcement => String.t() | nil, - :crashSafeReplicationEnabled => boolean() | nil, - :dataDiskSizeGb => String.t() | nil, - :dataDiskType => String.t() | nil, - :databaseFlags => list(GoogleApi.SQLAdmin.V1beta4.Model.DatabaseFlags.t()) | nil, - :databaseReplicationEnabled => boolean() | nil, - :deletionProtectionEnabled => boolean() | nil, - :denyMaintenancePeriods => - list(GoogleApi.SQLAdmin.V1beta4.Model.DenyMaintenancePeriod.t()) | nil, + :dataCacheConfig => GoogleApi.SQLAdmin.V1beta4.Model.DataCacheConfig.t() | nil, + :availabilityType => String.t() | nil, + :userLabels => map() | nil, :insightsConfig => GoogleApi.SQLAdmin.V1beta4.Model.InsightsConfig.t() | nil, :ipConfiguration => GoogleApi.SQLAdmin.V1beta4.Model.IpConfiguration.t() | nil, - :kind => String.t() | nil, + :dataDiskSizeGb => String.t() | nil, + :timeZone => String.t() | nil, :locationPreference => GoogleApi.SQLAdmin.V1beta4.Model.LocationPreference.t() | nil, - :maintenanceWindow => GoogleApi.SQLAdmin.V1beta4.Model.MaintenanceWindow.t() | nil, - :passwordValidationPolicy => - GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy.t() | nil, - :pricingPlan => String.t() | nil, + :kind => String.t() | nil, + :backupConfiguration => GoogleApi.SQLAdmin.V1beta4.Model.BackupConfiguration.t() | nil, + :crashSafeReplicationEnabled => boolean() | nil, :replicationType => String.t() | nil, - :settingsVersion => String.t() | nil, + :activeDirectoryConfig => + GoogleApi.SQLAdmin.V1beta4.Model.SqlActiveDirectoryConfig.t() | nil, + :authorizedGaeApplications => list(String.t()) | nil, + :edition => String.t() | nil, + :databaseReplicationEnabled => boolean() | nil, :sqlServerAuditConfig => GoogleApi.SQLAdmin.V1beta4.Model.SqlServerAuditConfig.t() | nil, - :storageAutoResize => boolean() | nil, + :activationPolicy => String.t() | nil, + :passwordValidationPolicy => + GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy.t() | nil, + :databaseFlags => list(GoogleApi.SQLAdmin.V1beta4.Model.DatabaseFlags.t()) | nil, + :maintenanceWindow => GoogleApi.SQLAdmin.V1beta4.Model.MaintenanceWindow.t() | nil, + :dataDiskType => String.t() | nil, :storageAutoResizeLimit => String.t() | nil, + :denyMaintenancePeriods => + list(GoogleApi.SQLAdmin.V1beta4.Model.DenyMaintenancePeriod.t()) | nil, + :connectorEnforcement => String.t() | nil, + :deletionProtectionEnabled => boolean() | nil, + :pricingPlan => String.t() | nil, :tier => String.t() | nil, - :timeZone => String.t() | nil, - :userLabels => map() | nil + :enableGoogleMlIntegration => boolean() | nil, + :storageAutoResize => boolean() | nil, + :settingsVersion => String.t() | nil } - field(:activationPolicy) - field(:activeDirectoryConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.SqlActiveDirectoryConfig) - field(:authorizedGaeApplications, type: :list) + field(:advancedMachineFeatures, as: GoogleApi.SQLAdmin.V1beta4.Model.AdvancedMachineFeatures) + field(:collation) + field(:dataCacheConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.DataCacheConfig) field(:availabilityType) + field(:userLabels, type: :map) + field(:insightsConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.InsightsConfig) + field(:ipConfiguration, as: GoogleApi.SQLAdmin.V1beta4.Model.IpConfiguration) + field(:dataDiskSizeGb) + field(:timeZone) + field(:locationPreference, as: GoogleApi.SQLAdmin.V1beta4.Model.LocationPreference) + field(:kind) field(:backupConfiguration, as: GoogleApi.SQLAdmin.V1beta4.Model.BackupConfiguration) - field(:collation) - field(:connectorEnforcement) field(:crashSafeReplicationEnabled) - field(:dataDiskSizeGb) - field(:dataDiskType) - field(:databaseFlags, as: GoogleApi.SQLAdmin.V1beta4.Model.DatabaseFlags, type: :list) + field(:replicationType) + field(:activeDirectoryConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.SqlActiveDirectoryConfig) + field(:authorizedGaeApplications, type: :list) + field(:edition) field(:databaseReplicationEnabled) - field(:deletionProtectionEnabled) + field(:sqlServerAuditConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.SqlServerAuditConfig) + field(:activationPolicy) + field(:passwordValidationPolicy, as: GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy) + field(:databaseFlags, as: GoogleApi.SQLAdmin.V1beta4.Model.DatabaseFlags, type: :list) + field(:maintenanceWindow, as: GoogleApi.SQLAdmin.V1beta4.Model.MaintenanceWindow) + field(:dataDiskType) + field(:storageAutoResizeLimit) field(:denyMaintenancePeriods, as: GoogleApi.SQLAdmin.V1beta4.Model.DenyMaintenancePeriod, type: :list ) - field(:insightsConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.InsightsConfig) - field(:ipConfiguration, as: GoogleApi.SQLAdmin.V1beta4.Model.IpConfiguration) - field(:kind) - field(:locationPreference, as: GoogleApi.SQLAdmin.V1beta4.Model.LocationPreference) - field(:maintenanceWindow, as: GoogleApi.SQLAdmin.V1beta4.Model.MaintenanceWindow) - field(:passwordValidationPolicy, as: GoogleApi.SQLAdmin.V1beta4.Model.PasswordValidationPolicy) + field(:connectorEnforcement) + field(:deletionProtectionEnabled) field(:pricingPlan) - field(:replicationType) - field(:settingsVersion) - field(:sqlServerAuditConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.SqlServerAuditConfig) - field(:storageAutoResize) - field(:storageAutoResizeLimit) field(:tier) - field(:timeZone) - field(:userLabels, type: :map) + field(:enableGoogleMlIntegration) + field(:storageAutoResize) + field(:settingsVersion) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.Settings do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_acquire_ssrs_lease_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_acquire_ssrs_lease_response.ex new file mode 100644 index 0000000000..0457c12d0f --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_acquire_ssrs_lease_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesAcquireSsrsLeaseResponse do + @moduledoc """ + Acquire SSRS lease response. + + ## Attributes + + * `operationId` (*type:* `String.t`, *default:* `nil`) - The unique identifier for this operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :operationId => String.t() | nil + } + + field(:operationId) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesAcquireSsrsLeaseResponse do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesAcquireSsrsLeaseResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesAcquireSsrsLeaseResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_get_disk_shrink_config_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_get_disk_shrink_config_response.ex new file mode 100644 index 0000000000..868b5b9234 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_get_disk_shrink_config_response.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetDiskShrinkConfigResponse do + @moduledoc """ + Instance get disk shrink config response. + + ## Attributes + + * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#getDiskShrinkConfig`. + * `message` (*type:* `String.t`, *default:* `nil`) - Additional message to customers. + * `minimalTargetSizeGb` (*type:* `String.t`, *default:* `nil`) - The minimum size to which a disk can be shrunk in GigaBytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kind => String.t() | nil, + :message => String.t() | nil, + :minimalTargetSizeGb => String.t() | nil + } + + field(:kind) + field(:message) + field(:minimalTargetSizeGb) +end + +defimpl Poison.Decoder, + for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetDiskShrinkConfigResponse do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetDiskShrinkConfigResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetDiskShrinkConfigResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_get_latest_recovery_time_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_get_latest_recovery_time_response.ex new file mode 100644 index 0000000000..4c1a217fbc --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_get_latest_recovery_time_response.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetLatestRecoveryTimeResponse do + @moduledoc """ + Instance get latest recovery time response. + + ## Attributes + + * `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#getLatestRecoveryTime`. + * `latestRecoveryTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp, identifies the latest recovery time of the source instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kind => String.t() | nil, + :latestRecoveryTime => DateTime.t() | nil + } + + field(:kind) + field(:latestRecoveryTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetLatestRecoveryTimeResponse do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetLatestRecoveryTimeResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesGetLatestRecoveryTimeResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_release_ssrs_lease_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_release_ssrs_lease_response.ex new file mode 100644 index 0000000000..0fe4ea1c2b --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_release_ssrs_lease_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesReleaseSsrsLeaseResponse do + @moduledoc """ + The response for the release of the SSRS lease. + + ## Attributes + + * `operationId` (*type:* `String.t`, *default:* `nil`) - The operation ID. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :operationId => String.t() | nil + } + + field(:operationId) +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesReleaseSsrsLeaseResponse do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesReleaseSsrsLeaseResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesReleaseSsrsLeaseResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_reset_replica_size_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_reset_replica_size_request.ex new file mode 100644 index 0000000000..026aee41f2 --- /dev/null +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_reset_replica_size_request.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesResetReplicaSizeRequest do + @moduledoc """ + Instance reset replica size request. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesResetReplicaSizeRequest do + def decode(value, options) do + GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesResetReplicaSizeRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesResetReplicaSizeRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_start_external_sync_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_start_external_sync_request.ex index e9b2ee1a58..f6ef6bfeac 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_start_external_sync_request.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_start_external_sync_request.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesStartExternalSyncRequest * `mysqlSyncConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.MySqlSyncConfig.t`, *default:* `nil`) - MySQL-specific settings for start external sync. * `skipVerification` (*type:* `boolean()`, *default:* `nil`) - Whether to skip the verification step (VESS). * `syncMode` (*type:* `String.t`, *default:* `nil`) - External sync mode. + * `syncParallelLevel` (*type:* `String.t`, *default:* `nil`) - Optional. Parallel level for initial data sync. Currently only applicable for MySQL. """ use GoogleApi.Gax.ModelBase @@ -31,12 +32,14 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesStartExternalSyncRequest @type t :: %__MODULE__{ :mysqlSyncConfig => GoogleApi.SQLAdmin.V1beta4.Model.MySqlSyncConfig.t() | nil, :skipVerification => boolean() | nil, - :syncMode => String.t() | nil + :syncMode => String.t() | nil, + :syncParallelLevel => String.t() | nil } field(:mysqlSyncConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.MySqlSyncConfig) field(:skipVerification) field(:syncMode) + field(:syncParallelLevel) end defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesStartExternalSyncRequest do diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_verify_external_sync_settings_request.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_verify_external_sync_settings_request.ex index d323eea98a..b98dcd0b39 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_verify_external_sync_settings_request.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/sql_instances_verify_external_sync_settings_request.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesVerifyExternalSyncSetting * `mysqlSyncConfig` (*type:* `GoogleApi.SQLAdmin.V1beta4.Model.MySqlSyncConfig.t`, *default:* `nil`) - Optional. MySQL-specific settings for start external sync. * `syncMode` (*type:* `String.t`, *default:* `nil`) - External sync mode + * `syncParallelLevel` (*type:* `String.t`, *default:* `nil`) - Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL. * `verifyConnectionOnly` (*type:* `boolean()`, *default:* `nil`) - Flag to enable verifying connection only * `verifyReplicationOnly` (*type:* `boolean()`, *default:* `nil`) - Optional. Flag to verify settings required by replication setup only """ @@ -32,12 +33,14 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.SqlInstancesVerifyExternalSyncSetting @type t :: %__MODULE__{ :mysqlSyncConfig => GoogleApi.SQLAdmin.V1beta4.Model.MySqlSyncConfig.t() | nil, :syncMode => String.t() | nil, + :syncParallelLevel => String.t() | nil, :verifyConnectionOnly => boolean() | nil, :verifyReplicationOnly => boolean() | nil } field(:mysqlSyncConfig, as: GoogleApi.SQLAdmin.V1beta4.Model.MySqlSyncConfig) field(:syncMode) + field(:syncParallelLevel) field(:verifyConnectionOnly) field(:verifyReplicationOnly) end diff --git a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/users_list_response.ex b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/users_list_response.ex index cbfc5af834..7e469336f3 100644 --- a/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/users_list_response.ex +++ b/clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/users_list_response.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.SQLAdmin.V1beta4.Model.UsersListResponse do * `items` (*type:* `list(GoogleApi.SQLAdmin.V1beta4.Model.User.t)`, *default:* `nil`) - List of user resources in the instance. * `kind` (*type:* `String.t`, *default:* `nil`) - This is always *sql#usersList*. - * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Unused. """ use GoogleApi.Gax.ModelBase