diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/api/entries.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/api/entries.ex index cdc6534170..94ec5df957 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/api/entries.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/api/entries.ex @@ -43,8 +43,10 @@ defmodule GoogleApi.DataCatalog.V1.Api.Entries 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"). - * `:fullyQualifiedName` (*type:* `String.t`) - Fully qualified name (FQN) of the resource. FQNs take two forms: * For non-regionalized resources: `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For regionalized resources: `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` Example for a DPMS table: `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` + * `:fullyQualifiedName` (*type:* `String.t`) - [Fully Qualified Name (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) of the resource. FQNs take two forms: * For non-regionalized resources: `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For regionalized resources: `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` Example for a DPMS table: `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` * `:linkedResource` (*type:* `String.t`) - The full name of the Google Cloud Platform resource the Data Catalog entry represents. For more information, see [Full Resource Name] (https://cloud.google.com/apis/design/resource_names#full_resource_name). Full names are case-sensitive. For example: * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}` + * `:location` (*type:* `String.t`) - Location where the lookup should be performed. Required to lookup entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored in other cases. + * `:project` (*type:* `String.t`) - Project where the lookup should be performed. Required to lookup entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored in other cases. * `:sqlResource` (*type:* `String.t`) - The SQL name of the entry. SQL names are case-sensitive. Examples: * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` * `pubsub.topic.{PROJECT_ID}.`\\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\\` * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}` Identifiers (`*_ID`) should comply with the [Lexical structure in Standard SQL] (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical). * `opts` (*type:* `keyword()`) - Call options @@ -73,6 +75,8 @@ defmodule GoogleApi.DataCatalog.V1.Api.Entries do :upload_protocol => :query, :fullyQualifiedName => :query, :linkedResource => :query, + :location => :query, + :project => :query, :sqlResource => :query } diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/api/projects.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/api/projects.ex index c42cbeb4fb..0f74d81332 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/api/projects.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/api/projects.ex @@ -1042,6 +1042,89 @@ defmodule GoogleApi.DataCatalog.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.DataCatalog.V1.Model.Policy{}]) end + @doc """ + Imports entries from a source, such as data previously dumped into a Cloud Storage bucket, into Data Catalog. Import of entries is a sync operation that reconciles the state of the third-party system with the Data Catalog. `ImportEntries` accepts source data snapshots of a third-party system. Snapshot should be delivered as a .wire or base65-encoded .txt file containing a sequence of Protocol Buffer messages of DumpItem type. `ImportEntries` returns a long-running operation resource that can be queried with Operations.GetOperation to return ImportEntriesMetadata and an ImportEntriesResponse message. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DataCatalog.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. Target entry group for ingested entries. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `entry_groups_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DataCatalog.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec datacatalog_projects_locations_entry_groups_entries_import( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DataCatalog.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def datacatalog_projects_locations_entry_groups_entries_import( + connection, + projects_id, + locations_id, + entry_groups_id, + 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/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries:import", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "entryGroupsId" => URI.encode(entry_groups_id, &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.DataCatalog.V1.Model.Operation{}]) + end + @doc """ Lists entries. Note: Currently, this method can list only custom entries. To get a list of both custom and automatically created entries, use SearchCatalog. @@ -2034,6 +2117,93 @@ defmodule GoogleApi.DataCatalog.V1.Api.Projects do ) end + @doc """ + `ReconcileTags` creates or updates a list of tags on the entry. If the ReconcileTagsRequest.force_delete_missing parameter is set, the operation deletes tags not included in the input tag list. `ReconcileTags` returns a long-running operation resource that can be queried with Operations.GetOperation to return ReconcileTagsMetadata and a ReconcileTagsResponse message. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DataCatalog.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. Name of Entry to be tagged. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `entry_groups_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `entries_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DataCatalog.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec datacatalog_projects_locations_entry_groups_entries_tags_reconcile( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DataCatalog.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def datacatalog_projects_locations_entry_groups_entries_tags_reconcile( + connection, + projects_id, + locations_id, + entry_groups_id, + entries_id, + 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/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries/{entriesId}/tags:reconcile", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "entryGroupsId" => URI.encode(entry_groups_id, &URI.char_unreserved?/1), + "entriesId" => URI.encode(entries_id, &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.DataCatalog.V1.Model.Operation{}]) + end + @doc """ Creates a tag and assigns it to: * An Entry if the method name is `projects.locations.entryGroups.entries.tags.create`. * Or EntryGroupif the method name is `projects.locations.entryGroups.tags.create`. Note: The project identified by the `parent` parameter for the [tag] (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) and the [tag template] (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) used to create the tag must be in the same organization. @@ -2382,6 +2552,329 @@ defmodule GoogleApi.DataCatalog.V1.Api.Projects do ) end + @doc """ + Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DataCatalog.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation resource to be cancelled. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `operations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `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.DataCatalog.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec datacatalog_projects_locations_operations_cancel( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DataCatalog.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def datacatalog_projects_locations_operations_cancel( + connection, + projects_id, + locations_id, + operations_id, + 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/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "operationsId" => URI.encode(operations_id, &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.DataCatalog.V1.Model.Empty{}]) + end + + @doc """ + Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DataCatalog.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation resource to be deleted. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `operations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `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.DataCatalog.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec datacatalog_projects_locations_operations_delete( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DataCatalog.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def datacatalog_projects_locations_operations_delete( + connection, + projects_id, + locations_id, + operations_id, + 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(:delete) + |> Request.url( + "/v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "operationsId" => URI.encode(operations_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.DataCatalog.V1.Model.Empty{}]) + end + + @doc """ + Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DataCatalog.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation resource. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `operations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `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.DataCatalog.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec datacatalog_projects_locations_operations_get( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DataCatalog.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def datacatalog_projects_locations_operations_get( + connection, + projects_id, + locations_id, + operations_id, + 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/{projectsId}/locations/{locationsId}/operations/{operationsId}", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "operationsId" => URI.encode(operations_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.DataCatalog.V1.Model.Operation{}]) + end + + @doc """ + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.DataCatalog.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation's parent resource. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `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"). + * `:filter` (*type:* `String.t`) - The standard list filter. + * `:pageSize` (*type:* `integer()`) - The standard list page size. + * `:pageToken` (*type:* `String.t`) - The standard list page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.DataCatalog.V1.Model.ListOperationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec datacatalog_projects_locations_operations_list( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.DataCatalog.V1.Model.ListOperationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def datacatalog_projects_locations_operations_list( + connection, + projects_id, + locations_id, + 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, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/projects/{projectsId}/locations/{locationsId}/operations", %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &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.DataCatalog.V1.Model.ListOperationsResponse{}]) + end + @doc """ Creates a tag template. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project). @@ -3929,6 +4422,7 @@ defmodule GoogleApi.DataCatalog.V1.Api.Projects 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"). + * `:filter` (*type:* `String.t`) - Supported field for filter is 'service' and value is 'dataplex'. Eg: service=dataplex. * `:pageSize` (*type:* `integer()`) - The maximum number of items to return. Must be a value between 1 and 1000 inclusively. If not set, defaults to 50. * `:pageToken` (*type:* `String.t`) - The pagination token of the next results page. If not set, the first page is returned. The token is returned in the response to a previous list request. * `opts` (*type:* `keyword()`) - Call options @@ -3968,6 +4462,7 @@ defmodule GoogleApi.DataCatalog.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :filter => :query, :pageSize => :query, :pageToken => :query } @@ -3996,7 +4491,7 @@ defmodule GoogleApi.DataCatalog.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.DataCatalog.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `taxonomy.name`. Output only. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs. + * `projects_id` (*type:* `String.t`) - Part of `taxonomy.name`. Identifier. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs. * `locations_id` (*type:* `String.t`) - Part of `taxonomy.name`. See documentation of `projectsId`. * `taxonomies_id` (*type:* `String.t`) - Part of `taxonomy.name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -4768,7 +5263,7 @@ defmodule GoogleApi.DataCatalog.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.DataCatalog.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `policyTag.name`. Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs. + * `projects_id` (*type:* `String.t`) - Part of `policyTag.name`. Identifier. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs. * `locations_id` (*type:* `String.t`) - Part of `policyTag.name`. See documentation of `projectsId`. * `taxonomies_id` (*type:* `String.t`) - Part of `policyTag.name`. See documentation of `projectsId`. * `policy_tags_id` (*type:* `String.t`) - Part of `policyTag.name`. See documentation of `projectsId`. diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/metadata.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/metadata.ex index e48ad5618f..1bb09c953c 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/metadata.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.DataCatalog.V1 do API client metadata for GoogleApi.DataCatalog.V1. """ - @discovery_revision "20221025" + @discovery_revision "20240222" def discovery_revision(), do: @discovery_revision end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/binding.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/binding.ex index 78c0b8ce83..5e94a49fe8 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/binding.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.DataCatalog.V1.Model.Binding do ## Attributes * `condition` (*type:* `GoogleApi.DataCatalog.V1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). """ use GoogleApi.Gax.ModelBase diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec.ex new file mode 100644 index 0000000000..00ad1cc34b --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec.ex @@ -0,0 +1,59 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec do + @moduledoc """ + Specification that applies to Instance entries that are part of `CLOUD_BIGTABLE` system. (user_specified_type) + + ## Attributes + + * `cloudBigtableClusterSpecs` (*type:* `list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec.t)`, *default:* `nil`) - The list of clusters for the Instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudBigtableClusterSpecs => + list( + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec.t() + ) + | nil + } + + field(:cloudBigtableClusterSpecs, + as: + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec_cloud_bigtable_cluster_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec_cloud_bigtable_cluster_spec.ex new file mode 100644 index 0000000000..33fb00b4da --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec_cloud_bigtable_cluster_spec.ex @@ -0,0 +1,62 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec do + @moduledoc """ + Spec that applies to clusters of an Instance of Cloud Bigtable. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Name of the cluster. + * `linkedResource` (*type:* `String.t`, *default:* `nil`) - A link back to the parent resource, in this case Instance. + * `location` (*type:* `String.t`, *default:* `nil`) - Location of the cluster, typically a Cloud zone. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the resource. For a cluster this would be "CLUSTER". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :linkedResource => String.t() | nil, + :location => String.t() | nil, + :type => String.t() | nil + } + + field(:displayName) + field(:linkedResource) + field(:location) + field(:type) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_system_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_system_spec.ex new file mode 100644 index 0000000000..e6bfdac7b5 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_cloud_bigtable_system_spec.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec do + @moduledoc """ + Specification that applies to all entries that are part of `CLOUD_BIGTABLE` system (user_specified_type) + + ## Attributes + + * `instanceDisplayName` (*type:* `String.t`, *default:* `nil`) - Display name of the Instance. This is user specified and different from the resource name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instanceDisplayName => String.t() | nil + } + + field(:instanceDisplayName) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema.ex index 05c6e80482..cd584a7189 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema.ex @@ -22,9 +22,14 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchema do ## Attributes * `column` (*type:* `String.t`, *default:* `nil`) - Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes. + * `defaultValue` (*type:* `String.t`, *default:* `nil`) - Optional. Default value for the column. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes. * `gcRule` (*type:* `String.t`, *default:* `nil`) - Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable. + * `highestIndexingType` (*type:* `String.t`, *default:* `nil`) - Optional. Most important inclusion of this column. + * `lookerColumnSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec.t`, *default:* `nil`) - Looker specific column info of this column. * `mode` (*type:* `String.t`, *default:* `nil`) - Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. Default mode is `NULLABLE`. + * `ordinalPosition` (*type:* `integer()`, *default:* `nil`) - Optional. Ordinal position + * `rangeElementType` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType.t`, *default:* `nil`) - Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include: * DATE * DATETIME * TIMESTAMP * `subcolumns` (*type:* `list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchema.t)`, *default:* `nil`) - Optional. Schema of sub-columns. A column can have zero or more sub-columns. * `type` (*type:* `String.t`, *default:* `nil`) - Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes. """ @@ -33,18 +38,39 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchema do @type t :: %__MODULE__{ :column => String.t() | nil, + :defaultValue => String.t() | nil, :description => String.t() | nil, :gcRule => String.t() | nil, + :highestIndexingType => String.t() | nil, + :lookerColumnSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec.t() + | nil, :mode => String.t() | nil, + :ordinalPosition => integer() | nil, + :rangeElementType => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType.t() + | nil, :subcolumns => list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchema.t()) | nil, :type => String.t() | nil } field(:column) + field(:defaultValue) field(:description) field(:gcRule) + field(:highestIndexingType) + + field(:lookerColumnSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec + ) + field(:mode) + field(:ordinalPosition) + + field(:rangeElementType, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType + ) field(:subcolumns, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchema, diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema_field_element_type.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema_field_element_type.ex new file mode 100644 index 0000000000..225a5480c0 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema_field_element_type.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType do + @moduledoc """ + Represents the type of a field element. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Required. The type of a field element. See ColumnSchema.type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema_looker_column_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema_looker_column_spec.ex new file mode 100644 index 0000000000..4f1a62df68 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_column_schema_looker_column_spec.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec do + @moduledoc """ + Column info specific to Looker System. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Looker specific column type of this column. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_common_usage_stats.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_common_usage_stats.ex new file mode 100644 index 0000000000..f6b8168a22 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_common_usage_stats.ex @@ -0,0 +1,48 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CommonUsageStats do + @moduledoc """ + Common statistics on the entry's usage. They can be set on any system. + + ## Attributes + + * `viewCount` (*type:* `String.t`, *default:* `nil`) - View count in source system. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :viewCount => String.t() | nil + } + + field(:viewCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CommonUsageStats do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CommonUsageStats.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CommonUsageStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_database_table_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_database_table_spec.ex index d3e65c6b36..a53af2cf16 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_database_table_spec.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_database_table_spec.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSp ## Attributes + * `databaseViewSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec.t`, *default:* `nil`) - Spec what aplies to tables that are actually views. Not set for "real" tables. * `dataplexTable` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DataplexTableSpec.t`, *default:* `nil`) - Output only. Fields specific to a Dataplex table and present only in the Dataplex table entries. * `type` (*type:* `String.t`, *default:* `nil`) - Type of this table. """ @@ -28,11 +29,18 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSp use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :databaseViewSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec.t() + | nil, :dataplexTable => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DataplexTableSpec.t() | nil, :type => String.t() | nil } + field(:databaseViewSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec + ) + field(:dataplexTable, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DataplexTableSpec ) diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_database_table_spec_database_view_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_database_table_spec_database_view_spec.ex new file mode 100644 index 0000000000..301218dd44 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_database_table_spec_database_view_spec.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec do + @moduledoc """ + Specification that applies to database view. + + ## Attributes + + * `baseTable` (*type:* `String.t`, *default:* `nil`) - Name of a singular table this view reflects one to one. + * `sqlQuery` (*type:* `String.t`, *default:* `nil`) - SQL query used to generate this view. + * `viewType` (*type:* `String.t`, *default:* `nil`) - Type of this view. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseTable => String.t() | nil, + :sqlQuery => String.t() | nil, + :viewType => String.t() | nil + } + + field(:baseTable) + field(:sqlQuery) + field(:viewType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_dataset_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_dataset_spec.ex new file mode 100644 index 0000000000..80dcf775e3 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_dataset_spec.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatasetSpec do + @moduledoc """ + Specification that applies to a dataset. Valid only for entries with the `DATASET` type. + + ## Attributes + + * `vertexDatasetSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec.t`, *default:* `nil`) - Vertex AI Dataset specific fields + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :vertexDatasetSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec.t() | nil + } + + field(:vertexDatasetSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec + ) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatasetSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatasetSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatasetSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_dump_item.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_dump_item.ex new file mode 100644 index 0000000000..ca8ae06ae5 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_dump_item.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DumpItem do + @moduledoc """ + Wrapper for any item that can be contained in the dump. + + ## Attributes + + * `taggedEntry` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaggedEntry.t`, *default:* `nil`) - Entry and its tags. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :taggedEntry => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaggedEntry.t() | nil + } + + field(:taggedEntry, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaggedEntry) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DumpItem do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DumpItem.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DumpItem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_entry.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_entry.ex index 31ddacd2aa..89b9389c14 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_entry.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_entry.ex @@ -24,23 +24,30 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry do * `bigqueryDateShardedSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1BigQueryDateShardedSpec.t`, *default:* `nil`) - Output only. Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more information, see [Introduction to partitioned tables] (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). * `bigqueryTableSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec.t`, *default:* `nil`) - Output only. Specification that applies to a BigQuery table. Valid only for entries with the `TABLE` type. * `businessContext` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1BusinessContext.t`, *default:* `nil`) - Business Context of the entry. Not supported for BigQuery datasets + * `cloudBigtableSystemSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec.t`, *default:* `nil`) - Specification that applies to Cloud Bigtable system. Only settable when `integrated_system` is equal to `CLOUD_BIGTABLE` * `dataSource` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DataSource.t`, *default:* `nil`) - Output only. Physical location of the entry. * `dataSourceConnectionSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DataSourceConnectionSpec.t`, *default:* `nil`) - Specification that applies to a data source connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` type. - * `databaseTableSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec.t`, *default:* `nil`) - Specification that applies to a table resource. Valid only for entries with the `TABLE` type. + * `databaseTableSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec.t`, *default:* `nil`) - Specification that applies to a table resource. Valid only for entries with the `TABLE` or `EXPLORE` type. + * `datasetSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatasetSpec.t`, *default:* `nil`) - Specification that applies to a dataset. * `description` (*type:* `String.t`, *default:* `nil`) - Entry description that can consist of several sentences or paragraphs that describe entry contents. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). The maximum size is 2000 bytes when encoded in UTF-8. Default value is an empty string. - * `displayName` (*type:* `String.t`, *default:* `nil`) - Display name of an entry. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum size is 200 bytes when encoded in UTF-8. Default value is an empty string. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Display name of an entry. The maximum size is 500 bytes when encoded in UTF-8. Default value is an empty string. + * `featureOnlineStoreSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec.t`, *default:* `nil`) - FeatureonlineStore spec for Vertex AI Feature Store. * `filesetSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FilesetSpec.t`, *default:* `nil`) - Specification that applies to a fileset resource. Valid only for entries with the `FILESET` type. - * `fullyQualifiedName` (*type:* `String.t`, *default:* `nil`) - Fully qualified name (FQN) of the resource. Set automatically for entries representing resources from synced systems. Settable only during creation and read-only afterwards. Can be used for search and lookup of the entries. FQNs take two forms: * For non-regionalized resources: `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For regionalized resources: `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` Example for a DPMS table: `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` + * `fullyQualifiedName` (*type:* `String.t`, *default:* `nil`) - [Fully Qualified Name (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) of the resource. Set automatically for entries representing resources from synced systems. Settable only during creation, and read-only later. Can be used for search and lookup of the entries. * `gcsFilesetSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1GcsFilesetSpec.t`, *default:* `nil`) - Specification that applies to a Cloud Storage fileset. Valid only for entries with the `FILESET` type. * `integratedSystem` (*type:* `String.t`, *default:* `nil`) - Output only. Indicates the entry's source system that Data Catalog integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. * `labels` (*type:* `map()`, *default:* `nil`) - Cloud labels attached to the entry. In Data Catalog, you can create and modify labels attached only to custom entries. Synced entries have unmodifiable labels that come from the source system. * `linkedResource` (*type:* `String.t`, *default:* `nil`) - The resource this metadata entry refers to. For Google Cloud Platform resources, `linked_resource` is the [Full Resource Name] (https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, the `linked_resource` for a table resource from BigQuery is: `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` Output only when the entry is one of the types in the `EntryType` enum. For entries with a `user_specified_type`, this field is optional and defaults to an empty string. The resource string must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), periods (.), colons (:), slashes (/), dashes (-), and hashes (#). The maximum size is 200 bytes when encoded in UTF-8. + * `lookerSystemSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1LookerSystemSpec.t`, *default:* `nil`) - Specification that applies to Looker sysstem. Only settable when `user_specified_system` is equal to `LOOKER` + * `modelSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ModelSpec.t`, *default:* `nil`) - Model specification. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name. * `personalDetails` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1PersonalDetails.t`, *default:* `nil`) - Output only. Additional information related to the entry. Private to the current user. * `routineSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1RoutineSpec.t`, *default:* `nil`) - Specification that applies to a user-defined function or procedure. Valid only for entries with the `ROUTINE` type. * `schema` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Schema.t`, *default:* `nil`) - Schema of the entry. An entry might not have any schema attached to it. + * `serviceSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ServiceSpec.t`, *default:* `nil`) - Specification that applies to a Service resource. * `sourceSystemTimestamps` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SystemTimestamps.t`, *default:* `nil`) - Timestamps from the underlying resource, not from the Data Catalog entry. Output only when the entry has a system listed in the `IntegratedSystem` enum. For entries with `user_specified_system`, this field is optional and defaults to an empty timestamp. - * `type` (*type:* `String.t`, *default:* `nil`) - The type of the entry. Only used for entries with types listed in the `EntryType` enum. Currently, only `FILESET` enum value is allowed. All other entries created in Data Catalog must use the `user_specified_type`. + * `sqlDatabaseSystemSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec.t`, *default:* `nil`) - Specification that applies to a relational database system. Only settable when `user_specified_system` is equal to `SQL_DATABASE` + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the entry. For details, see [`EntryType`](#entrytype). * `usageSignal` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1UsageSignal.t`, *default:* `nil`) - Resource usage statistics. * `userSpecifiedSystem` (*type:* `String.t`, *default:* `nil`) - Indicates the entry's source system that Data Catalog doesn't automatically integrate with. The `user_specified_system` string has the following limitations: * Is case insensitive. * Must begin with a letter or underscore. * Can only contain letters, numbers, and underscores. * Must be at least 1 character and at most 64 characters long. * `userSpecifiedType` (*type:* `String.t`, *default:* `nil`) - Custom entry type that doesn't match any of the values allowed for input and listed in the `EntryType` enum. When creating an entry, first check the type values in the enum. If there are no appropriate types for the new entry, provide a custom value, for example, `my_special_type`. The `user_specified_type` string has the following limitations: * Is case insensitive. * Must begin with a letter or underscore. * Can only contain letters, numbers, and underscores. * Must be at least 1 character and at most 64 characters long. @@ -56,6 +63,9 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry do GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec.t() | nil, :businessContext => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1BusinessContext.t() | nil, + :cloudBigtableSystemSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec.t() + | nil, :dataSource => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DataSource.t() | nil, :dataSourceConnectionSpec => @@ -63,8 +73,13 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry do | nil, :databaseTableSpec => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec.t() | nil, + :datasetSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatasetSpec.t() | nil, :description => String.t() | nil, :displayName => String.t() | nil, + :featureOnlineStoreSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec.t() + | nil, :filesetSpec => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FilesetSpec.t() | nil, :fullyQualifiedName => String.t() | nil, @@ -73,14 +88,22 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry do :integratedSystem => String.t() | nil, :labels => map() | nil, :linkedResource => String.t() | nil, + :lookerSystemSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1LookerSystemSpec.t() | nil, + :modelSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ModelSpec.t() | nil, :name => String.t() | nil, :personalDetails => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1PersonalDetails.t() | nil, :routineSpec => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1RoutineSpec.t() | nil, :schema => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Schema.t() | nil, + :serviceSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ServiceSpec.t() | nil, :sourceSystemTimestamps => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SystemTimestamps.t() | nil, + :sqlDatabaseSystemSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec.t() | nil, :type => String.t() | nil, :usageSignal => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1UsageSignal.t() | nil, @@ -100,6 +123,10 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry do as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1BusinessContext ) + field(:cloudBigtableSystemSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec + ) + field(:dataSource, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DataSource) field(:dataSourceConnectionSpec, @@ -110,8 +137,14 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry do as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec ) + field(:datasetSpec, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1DatasetSpec) field(:description) field(:displayName) + + field(:featureOnlineStoreSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec + ) + field(:filesetSpec, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FilesetSpec) field(:fullyQualifiedName) @@ -120,6 +153,12 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry do field(:integratedSystem) field(:labels, type: :map) field(:linkedResource) + + field(:lookerSystemSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1LookerSystemSpec + ) + + field(:modelSpec, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ModelSpec) field(:name) field(:personalDetails, @@ -128,11 +167,16 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry do field(:routineSpec, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1RoutineSpec) field(:schema, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Schema) + field(:serviceSpec, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ServiceSpec) field(:sourceSystemTimestamps, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SystemTimestamps ) + field(:sqlDatabaseSystemSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec + ) + field(:type) field(:usageSignal, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1UsageSignal) field(:userSpecifiedSystem) diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_feature_online_store_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_feature_online_store_spec.ex new file mode 100644 index 0000000000..84703ec240 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_feature_online_store_spec.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec do + @moduledoc """ + Detail description of the source information of a Vertex Feature Online Store. + + ## Attributes + + * `storageType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of underelaying storage for the FeatureOnlineStore. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :storageType => String.t() | nil + } + + field(:storageType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_metadata.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_metadata.ex new file mode 100644 index 0000000000..a14d982208 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_metadata.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesMetadata do + @moduledoc """ + Metadata message for long-running operation returned by the ImportEntries. + + ## Attributes + + * `errors` (*type:* `list(GoogleApi.DataCatalog.V1.Model.Status.t)`, *default:* `nil`) - Partial errors that are encountered during the ImportEntries operation. There is no guarantee that all the encountered errors are reported. However, if no errors are reported, it means that no errors were encountered. + * `state` (*type:* `String.t`, *default:* `nil`) - State of the import operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errors => list(GoogleApi.DataCatalog.V1.Model.Status.t()) | nil, + :state => String.t() | nil + } + + field(:errors, as: GoogleApi.DataCatalog.V1.Model.Status, type: :list) + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesMetadata do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_request.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_request.ex new file mode 100644 index 0000000000..70b977a713 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_request.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesRequest do + @moduledoc """ + Request message for ImportEntries method. + + ## Attributes + + * `gcsBucketPath` (*type:* `String.t`, *default:* `nil`) - Path to a Cloud Storage bucket that contains a dump ready for ingestion. + * `jobId` (*type:* `String.t`, *default:* `nil`) - Optional. (Optional) Dataplex task job id, if specified will be used as part of ImportEntries LRO ID + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcsBucketPath => String.t() | nil, + :jobId => String.t() | nil + } + + field(:gcsBucketPath) + field(:jobId) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesRequest do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_response.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_response.ex new file mode 100644 index 0000000000..d378007a19 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_import_entries_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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesResponse do + @moduledoc """ + Response message for long-running operation returned by the ImportEntries. + + ## Attributes + + * `deletedEntriesCount` (*type:* `String.t`, *default:* `nil`) - Number of entries deleted as a result of import operation. + * `upsertedEntriesCount` (*type:* `String.t`, *default:* `nil`) - Cumulative number of entries created and entries updated as a result of import operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deletedEntriesCount => String.t() | nil, + :upsertedEntriesCount => String.t() | nil + } + + field(:deletedEntriesCount) + field(:upsertedEntriesCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesResponse do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ImportEntriesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_looker_system_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_looker_system_spec.ex new file mode 100644 index 0000000000..081f246578 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_looker_system_spec.ex @@ -0,0 +1,63 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do + @moduledoc """ + Specification that applies to entries that are part `LOOKER` system (user_specified_type) + + ## Attributes + + * `parentInstanceDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent Looker Instance. Empty if it does not exist. + * `parentInstanceId` (*type:* `String.t`, *default:* `nil`) - ID of the parent Looker Instance. Empty if it does not exist. Example value: `someinstance.looker.com` + * `parentModelDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent Model. Empty if it does not exist. + * `parentModelId` (*type:* `String.t`, *default:* `nil`) - ID of the parent Model. Empty if it does not exist. + * `parentViewDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent View. Empty if it does not exist. + * `parentViewId` (*type:* `String.t`, *default:* `nil`) - ID of the parent View. Empty if it does not exist. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parentInstanceDisplayName => String.t() | nil, + :parentInstanceId => String.t() | nil, + :parentModelDisplayName => String.t() | nil, + :parentModelId => String.t() | nil, + :parentViewDisplayName => String.t() | nil, + :parentViewId => String.t() | nil + } + + field(:parentInstanceDisplayName) + field(:parentInstanceId) + field(:parentModelDisplayName) + field(:parentModelId) + field(:parentViewDisplayName) + field(:parentViewId) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1LookerSystemSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_model_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_model_spec.ex new file mode 100644 index 0000000000..60279248ee --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_model_spec.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ModelSpec do + @moduledoc """ + Specification that applies to a model. Valid only for entries with the `MODEL` type. + + ## Attributes + + * `vertexModelSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSpec.t`, *default:* `nil`) - Specification for vertex model resources. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :vertexModelSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSpec.t() | nil + } + + field(:vertexModelSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSpec + ) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ModelSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_policy_tag.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_policy_tag.ex index 69c37b560b..47d0120084 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_policy_tag.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_policy_tag.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1PolicyTag do * `childPolicyTags` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Resource names of child policy tags of this policy tag. * `description` (*type:* `String.t`, *default:* `nil`) - Description of this policy tag. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8. * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. User-defined name of this policy tag. The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and spaces, and be at most 200 bytes long when encoded in UTF-8. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs. + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs. * `parentPolicyTag` (*type:* `String.t`, *default:* `nil`) - Resource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string. For example, for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag, and, for "Geolocation", this field is empty. """ diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_metadata.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_metadata.ex new file mode 100644 index 0000000000..05ab97dee2 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_metadata.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsMetadata do + @moduledoc """ + Long-running operation metadata message returned by the ReconcileTags. + + ## Attributes + + * `errors` (*type:* `%{optional(String.t) => GoogleApi.DataCatalog.V1.Model.Status.t}`, *default:* `nil`) - Maps the name of each tagged column (or empty string for a sole entry) to tagging operation status. + * `state` (*type:* `String.t`, *default:* `nil`) - State of the reconciliation operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errors => %{optional(String.t()) => GoogleApi.DataCatalog.V1.Model.Status.t()} | nil, + :state => String.t() | nil + } + + field(:errors, as: GoogleApi.DataCatalog.V1.Model.Status, type: :map) + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsMetadata do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_request.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_request.ex new file mode 100644 index 0000000000..586d677ac3 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_request.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsRequest do + @moduledoc """ + Request message for ReconcileTags. + + ## Attributes + + * `forceDeleteMissing` (*type:* `boolean()`, *default:* `nil`) - If set to `true`, deletes entry tags related to a tag template not listed in the tags source from an entry. If set to `false`, unlisted tags are retained. + * `tagTemplate` (*type:* `String.t`, *default:* `nil`) - Required. The name of the tag template, which is used for reconciliation. + * `tags` (*type:* `list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag.t)`, *default:* `nil`) - A list of tags to apply to an entry. A tag can specify a tag template, which must be the template specified in the `ReconcileTagsRequest`. The sole entry and each of its columns must be mentioned at most once. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :forceDeleteMissing => boolean() | nil, + :tagTemplate => String.t() | nil, + :tags => list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag.t()) | nil + } + + field(:forceDeleteMissing) + field(:tagTemplate) + field(:tags, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsRequest do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_response.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_response.ex new file mode 100644 index 0000000000..94e41915c8 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_reconcile_tags_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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsResponse do + @moduledoc """ + Long-running operation response message returned by ReconcileTags. + + ## Attributes + + * `createdTagsCount` (*type:* `String.t`, *default:* `nil`) - Number of tags created in the request. + * `deletedTagsCount` (*type:* `String.t`, *default:* `nil`) - Number of tags deleted in the request. + * `updatedTagsCount` (*type:* `String.t`, *default:* `nil`) - Number of tags updated in the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createdTagsCount => String.t() | nil, + :deletedTagsCount => String.t() | nil, + :updatedTagsCount => String.t() | nil + } + + field(:createdTagsCount) + field(:deletedTagsCount) + field(:updatedTagsCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsResponse do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ReconcileTagsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request.ex index bc2670638f..f950501401 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request.ex @@ -21,8 +21,9 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogRe ## Attributes - * `orderBy` (*type:* `String.t`, *default:* `nil`) - Specifies the order of results. Currently supported case-sensitive values are: * `relevance` that can only be descending * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default * `default` that can only be descending If this parameter is omitted, it defaults to the descending `relevance`. - * `pageSize` (*type:* `integer()`, *default:* `nil`) - Number of results to return in a single search page. Can't be negative or 0, defaults to 10 in this case. The maximum number is 1000. If exceeded, throws an "invalid argument" exception. + * `adminSearch` (*type:* `boolean()`, *default:* `nil`) - Optional. If set, use searchAll permission granted on organizations from `include_org_ids` and projects from `include_project_ids` instead of the fine grained per resource permissions when filtering the search results. The only allowed `order_by` criteria for admin_search mode is `default`. Using this flags guarantees a full recall of the search results. + * `orderBy` (*type:* `String.t`, *default:* `nil`) - Specifies the order of results. Currently supported case-sensitive values are: * `relevance` that can only be descending * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default * `default` that can only be descending Search queries don't guarantee full recall. Results that match your query might not be returned, even in subsequent result pages. Additionally, returned (and not returned) results can vary if you repeat search queries. If you are experiencing recall issues and you don't have to fetch the results in any specific order, consider setting this parameter to `default`. If this parameter is omitted, it defaults to the descending `relevance`. + * `pageSize` (*type:* `integer()`, *default:* `nil`) - Upper bound on the number of results you can get in a single response. Can't be negative or 0, defaults to 10 in this case. The maximum number is 1000. If exceeded, throws an "invalid argument" exception. * `pageToken` (*type:* `String.t`, *default:* `nil`) - Optional. Pagination token that, if specified, returns the next page of search results. If empty, returns the first page. This token is returned in the SearchCatalogResponse.next_page_token field of the response to a previous SearchCatalogRequest call. * `query` (*type:* `String.t`, *default:* `nil`) - Optional. The query string with a minimum of 3 characters and specific syntax. For more information, see [Data Catalog search syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). An empty query string returns all data assets (in the specified scope) that you have access to. A query string can be a simple `xyz` or qualified by predicates: * `name:x` * `column:y` * `description:z` * `scope` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogRequestScope.t`, *default:* `nil`) - Required. The scope of this search request. The `scope` is invalid if `include_org_ids`, `include_project_ids` are empty AND `include_gcp_public_datasets` is set to `false`. In this case, the request returns an error. @@ -31,6 +32,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogRe use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :adminSearch => boolean() | nil, :orderBy => String.t() | nil, :pageSize => integer() | nil, :pageToken => String.t() | nil, @@ -40,6 +42,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogRe | nil } + field(:adminSearch) field(:orderBy) field(:pageSize) field(:pageToken) diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request_scope.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request_scope.ex index b216184f7e..ba9bc60dcc 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request_scope.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_request_scope.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogRe ## Attributes - * `includeGcpPublicDatasets` (*type:* `boolean()`, *default:* `nil`) - If `true`, include Google Cloud Platform (GCP) public datasets in search results. By default, they are excluded. See [Google Cloud Public Datasets](/public-datasets) for more information. + * `includeGcpPublicDatasets` (*type:* `boolean()`, *default:* `nil`) - If `true`, include Google Cloud public datasets in search results. By default, they are excluded. See [Google Cloud Public Datasets](/public-datasets) for more information. * `includeOrgIds` (*type:* `list(String.t)`, *default:* `nil`) - The list of organization IDs to search within. To find your organization ID, follow the steps from [Creating and managing organizations] (/resource-manager/docs/creating-managing-organization). * `includeProjectIds` (*type:* `list(String.t)`, *default:* `nil`) - The list of project IDs to search within. For more information on the distinction between project names, IDs, and numbers, see [Projects](/docs/overview/#projects). * `includePublicTagTemplates` (*type:* `boolean()`, *default:* `nil`) - Optional. This field is deprecated. The search mechanism for public and private tag templates is the same. diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_response.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_response.ex index 07ced5c546..9a5d7a082d 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_response.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_search_catalog_response.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogRe * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Pagination token that can be used in subsequent calls to retrieve the next page of results. * `results` (*type:* `list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogResult.t)`, *default:* `nil`) - Search results. + * `totalSize` (*type:* `integer()`, *default:* `nil`) - The approximate total number of entries matched by the query. * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Unreachable locations. Search results don't include data from those locations. To get additional information on an error, repeat the search request and restrict it to specific locations by setting the `SearchCatalogRequest.scope.restricted_locations` parameter. """ @@ -33,6 +34,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogRe :results => list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogResult.t()) | nil, + :totalSize => integer() | nil, :unreachable => list(String.t()) | nil } @@ -43,6 +45,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SearchCatalogRe type: :list ) + field(:totalSize) field(:unreachable, type: :list) end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_service_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_service_spec.ex new file mode 100644 index 0000000000..469014b809 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_service_spec.ex @@ -0,0 +1,50 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ServiceSpec do + @moduledoc """ + Specification that applies to a Service resource. Valid only for entries with the `SERVICE` type. + + ## Attributes + + * `cloudBigtableInstanceSpec` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec.t`, *default:* `nil`) - Specification that applies to Instance entries of `CLOUD_BIGTABLE` system. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudBigtableInstanceSpec => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec.t() + | nil + } + + field(:cloudBigtableInstanceSpec, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec + ) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ServiceSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ServiceSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1ServiceSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_sql_database_system_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_sql_database_system_spec.ex new file mode 100644 index 0000000000..601f98c766 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_sql_database_system_spec.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec do + @moduledoc """ + Specification that applies to entries that are part `SQL_DATABASE` system (user_specified_type) + + ## Attributes + + * `databaseVersion` (*type:* `String.t`, *default:* `nil`) - Version of the database engine. + * `instanceHost` (*type:* `String.t`, *default:* `nil`) - Host of the SQL database enum InstanceHost { UNDEFINED = 0; SELF_HOSTED = 1; CLOUD_SQL = 2; AMAZON_RDS = 3; AZURE_SQL = 4; } Host of the enclousing database instance. + * `sqlEngine` (*type:* `String.t`, *default:* `nil`) - SQL Database Engine. enum SqlEngine { UNDEFINED = 0; MY_SQL = 1; POSTGRE_SQL = 2; SQL_SERVER = 3; } Engine of the enclosing database instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :databaseVersion => String.t() | nil, + :instanceHost => String.t() | nil, + :sqlEngine => String.t() | nil + } + + field(:databaseVersion) + field(:instanceHost) + field(:sqlEngine) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_tag_template.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_tag_template.ex index 348ce88b5d..793d32bc3d 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_tag_template.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_tag_template.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TagTemplate do @moduledoc """ - A tag template defines a tag that can have one or more typed fields. The template is used to create tags that are attached to GCP resources. [Tag template roles] (https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) provide permissions to create, edit, and use the template. For example, see the [TagTemplate User] (https://cloud.google.com/data-catalog/docs/how-to/template-user) role that includes a permission to use the tag template to tag resources. + A tag template defines a tag that can have one or more typed fields. The template is used to create tags that are attached to Google Cloud resources. [Tag template roles] (https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) provide permissions to create, edit, and use the template. For example, see the [TagTemplate User] (https://cloud.google.com/data-catalog/docs/how-to/template-user) role that includes a permission to use the tag template to tag resources. ## Attributes diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_tagged_entry.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_tagged_entry.ex new file mode 100644 index 0000000000..05f083ab0f --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_tagged_entry.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaggedEntry do + @moduledoc """ + Wrapper containing Entry and information about Tags that should and should not be attached to it. + + ## Attributes + + * `absentTags` (*type:* `list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag.t)`, *default:* `nil`) - Optional. Tags that should be deleted from the Data Catalog. Caller should populate template name and column only. + * `presentTags` (*type:* `list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag.t)`, *default:* `nil`) - Optional. Tags that should be ingested into the Data Catalog. Caller should populate template name, column and fields. + * `v1Entry` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry.t`, *default:* `nil`) - Non-encrypted Data Catalog v1 Entry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :absentTags => + list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag.t()) | nil, + :presentTags => + list(GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag.t()) | nil, + :v1Entry => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry.t() | nil + } + + field(:absentTags, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag, type: :list) + field(:presentTags, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Tag, type: :list) + field(:v1Entry, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Entry) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaggedEntry do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaggedEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaggedEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_taxonomy.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_taxonomy.ex index 9f0b196514..e19c23edb5 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_taxonomy.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_taxonomy.ex @@ -24,8 +24,9 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Taxonomy do * `activatedPolicyTypes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of this taxonomy. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns, and page breaks, and be at most 2000 bytes long when encoded in UTF-8. * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. User-defined name of this taxonomy. The name can't start or end with spaces, must contain only Unicode letters, numbers, underscores, dashes, and spaces, and be at most 200 bytes long when encoded in UTF-8. The taxonomy display name must be unique within an organization. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs. + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs. * `policyTagCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of policy tags in this taxonomy. + * `service` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaxonomyService.t`, *default:* `nil`) - Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only 'DATAPLEX' is supported. * `taxonomyTimestamps` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SystemTimestamps.t`, *default:* `nil`) - Output only. Creation and modification timestamps of this taxonomy. """ @@ -37,6 +38,8 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Taxonomy do :displayName => String.t() | nil, :name => String.t() | nil, :policyTagCount => integer() | nil, + :service => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaxonomyService.t() | nil, :taxonomyTimestamps => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SystemTimestamps.t() | nil } @@ -46,6 +49,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1Taxonomy do field(:displayName) field(:name) field(:policyTagCount) + field(:service, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaxonomyService) field(:taxonomyTimestamps, as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1SystemTimestamps diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_taxonomy_service.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_taxonomy_service.ex new file mode 100644 index 0000000000..7bcc711356 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_taxonomy_service.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaxonomyService do + @moduledoc """ + The source system of the Taxonomy. + + ## Attributes + + * `identity` (*type:* `String.t`, *default:* `nil`) - The service agent for the service. + * `name` (*type:* `String.t`, *default:* `nil`) - The Google Cloud service name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :identity => String.t() | nil, + :name => String.t() | nil + } + + field(:identity) + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaxonomyService do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaxonomyService.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1TaxonomyService do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_usage_signal.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_usage_signal.ex index b9a82da5ba..907c8c1d28 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_usage_signal.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_usage_signal.ex @@ -21,6 +21,8 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1UsageSignal do ## Attributes + * `commonUsageWithinTimeRange` (*type:* `%{optional(String.t) => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CommonUsageStats.t}`, *default:* `nil`) - Common usage statistics over each of the predefined time ranges. Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`. + * `favoriteCount` (*type:* `String.t`, *default:* `nil`) - Favorite count in the source system. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - The end timestamp of the duration of usage statistics. * `usageWithinTimeRange` (*type:* `%{optional(String.t) => GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1UsageStats.t}`, *default:* `nil`) - Output only. BigQuery usage statistics over each of the predefined time ranges. Supported time ranges are `{"24H", "7D", "30D"}`. """ @@ -28,6 +30,13 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1UsageSignal do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :commonUsageWithinTimeRange => + %{ + optional(String.t()) => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CommonUsageStats.t() + } + | nil, + :favoriteCount => String.t() | nil, :updateTime => DateTime.t() | nil, :usageWithinTimeRange => %{ @@ -37,6 +46,12 @@ defmodule GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1UsageSignal do | nil } + field(:commonUsageWithinTimeRange, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1CommonUsageStats, + type: :map + ) + + field(:favoriteCount) field(:updateTime, as: DateTime) field(:usageWithinTimeRange, diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_dataset_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_dataset_spec.ex new file mode 100644 index 0000000000..eae118af2b --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_dataset_spec.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec do + @moduledoc """ + Specification for vertex dataset resources. + + ## Attributes + + * `dataItemCount` (*type:* `String.t`, *default:* `nil`) - The number of DataItems in this Dataset. Only apply for non-structured Dataset. + * `dataType` (*type:* `String.t`, *default:* `nil`) - Type of the dataset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataItemCount => String.t() | nil, + :dataType => String.t() | nil + } + + field(:dataItemCount) + field(:dataType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_model_source_info.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_model_source_info.ex new file mode 100644 index 0000000000..16358c2277 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_model_source_info.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo do + @moduledoc """ + Detail description of the source information of a Vertex model. + + ## Attributes + + * `copy` (*type:* `boolean()`, *default:* `nil`) - If this Model is copy of another Model. If true then source_type pertains to the original. + * `sourceType` (*type:* `String.t`, *default:* `nil`) - Type of the model source. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :copy => boolean() | nil, + :sourceType => String.t() | nil + } + + field(:copy) + field(:sourceType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_model_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_model_spec.ex new file mode 100644 index 0000000000..67b3b8429f --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/google_cloud_datacatalog_v1_vertex_model_spec.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.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSpec do + @moduledoc """ + Specification for vertex model resources. + + ## Attributes + + * `containerImageUri` (*type:* `String.t`, *default:* `nil`) - URI of the Docker image to be used as the custom container for serving predictions. + * `versionAliases` (*type:* `list(String.t)`, *default:* `nil`) - User provided version aliases so that a model version can be referenced via alias + * `versionDescription` (*type:* `String.t`, *default:* `nil`) - The description of this version. + * `versionId` (*type:* `String.t`, *default:* `nil`) - The version ID of the model. + * `vertexModelSourceInfo` (*type:* `GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo.t`, *default:* `nil`) - Source of a Vertex model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :containerImageUri => String.t() | nil, + :versionAliases => list(String.t()) | nil, + :versionDescription => String.t() | nil, + :versionId => String.t() | nil, + :vertexModelSourceInfo => + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo.t() | nil + } + + field(:containerImageUri) + field(:versionAliases, type: :list) + field(:versionDescription) + field(:versionId) + + field(:vertexModelSourceInfo, + as: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1.Model.GoogleCloudDatacatalogV1VertexModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/list_operations_response.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/list_operations_response.ex new file mode 100644 index 0000000000..0fa6265186 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/list_operations_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.DataCatalog.V1.Model.ListOperationsResponse do + @moduledoc """ + The response message for Operations.ListOperations. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The standard List next-page token. + * `operations` (*type:* `list(GoogleApi.DataCatalog.V1.Model.Operation.t)`, *default:* `nil`) - A list of operations that matches the specified filter in the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :operations => list(GoogleApi.DataCatalog.V1.Model.Operation.t()) | nil + } + + field(:nextPageToken) + field(:operations, as: GoogleApi.DataCatalog.V1.Model.Operation, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1.Model.ListOperationsResponse do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.ListOperationsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1.Model.ListOperationsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/operation.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/operation.ex new file mode 100644 index 0000000000..9c78d89bb7 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/operation.ex @@ -0,0 +1,58 @@ +# 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.DataCatalog.V1.Model.Operation do + @moduledoc """ + This resource represents a long-running operation that is the result of a network API call. + + ## Attributes + + * `done` (*type:* `boolean()`, *default:* `nil`) - If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. + * `error` (*type:* `GoogleApi.DataCatalog.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. + * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. + * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :done => boolean() | nil, + :error => GoogleApi.DataCatalog.V1.Model.Status.t() | nil, + :metadata => map() | nil, + :name => String.t() | nil, + :response => map() | nil + } + + field(:done) + field(:error, as: GoogleApi.DataCatalog.V1.Model.Status) + field(:metadata, type: :map) + field(:name) + field(:response, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1.Model.Operation do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.Operation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1.Model.Operation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/policy.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/policy.ex index ba9343a815..011bbcfba6 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1/model/policy.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.DataCatalog.V1.Model.Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1/model/status.ex b/clients/data_catalog/lib/google_api/data_catalog/v1/model/status.ex new file mode 100644 index 0000000000..5d7aa35cb6 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1/model/status.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.DataCatalog.V1.Model.Status do + @moduledoc """ + The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + + ## Attributes + + * `code` (*type:* `integer()`, *default:* `nil`) - The status code, which should be an enum value of google.rpc.Code. + * `details` (*type:* `list(map())`, *default:* `nil`) - A list of messages that carry the error details. There is a common set of message types for APIs to use. + * `message` (*type:* `String.t`, *default:* `nil`) - A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => integer() | nil, + :details => list(map()) | nil, + :message => String.t() | nil + } + + field(:code) + field(:details, type: :list) + field(:message) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1.Model.Status do + def decode(value, options) do + GoogleApi.DataCatalog.V1.Model.Status.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1.Model.Status do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/api/projects.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/api/projects.ex index c8896ec970..8eeeb9725b 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/api/projects.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/api/projects.ex @@ -3619,6 +3619,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Api.Projects 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"). + * `:filter` (*type:* `String.t`) - Supported field for filter is 'service' and value is 'dataplex'. Eg: service=dataplex. * `:pageSize` (*type:* `integer()`) - The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50. * `:pageToken` (*type:* `String.t`) - The next_page_token value returned from a previous list request, if any. If not set, defaults to an empty string. * `opts` (*type:* `keyword()`) - Call options @@ -3659,6 +3660,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :filter => :query, :pageSize => :query, :pageToken => :query } @@ -3690,7 +3692,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.DataCatalog.V1beta1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `taxonomy.name`. Output only. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". + * `projects_id` (*type:* `String.t`) - Part of `taxonomy.name`. Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". * `locations_id` (*type:* `String.t`) - Part of `taxonomy.name`. See documentation of `projectsId`. * `taxonomies_id` (*type:* `String.t`) - Part of `taxonomy.name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -4384,7 +4386,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.DataCatalog.V1beta1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `policyTag.name`. Output only. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". + * `projects_id` (*type:* `String.t`) - Part of `policyTag.name`. Identifier. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". * `locations_id` (*type:* `String.t`) - Part of `policyTag.name`. See documentation of `projectsId`. * `taxonomies_id` (*type:* `String.t`) - Part of `policyTag.name`. See documentation of `projectsId`. * `policy_tags_id` (*type:* `String.t`) - Part of `policyTag.name`. See documentation of `projectsId`. diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/metadata.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/metadata.ex index 2258aff610..76a119b619 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/metadata.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.DataCatalog.V1beta1 do API client metadata for GoogleApi.DataCatalog.V1beta1. """ - @discovery_revision "20221025" + @discovery_revision "20240222" def discovery_revision(), do: @discovery_revision end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/binding.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/binding.ex index 47c248ff33..0ed2284845 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/binding.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.Binding do ## Attributes * `condition` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). """ use GoogleApi.Gax.ModelBase diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_connection_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_connection_spec.ex new file mode 100644 index 0000000000..e2bb065faf --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_connection_spec.ex @@ -0,0 +1,62 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryConnectionSpec do + @moduledoc """ + Specification for the BigQuery connection. + + ## Attributes + + * `cloudSql` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec.t`, *default:* `nil`) - Specification for the BigQuery connection to a Cloud SQL instance. + * `connectionType` (*type:* `String.t`, *default:* `nil`) - The type of the BigQuery connection. + * `hasCredential` (*type:* `boolean()`, *default:* `nil`) - True if there are credentials attached to the BigQuery connection; false otherwise. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudSql => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec.t() + | nil, + :connectionType => String.t() | nil, + :hasCredential => boolean() | nil + } + + field(:cloudSql, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec + ) + + field(:connectionType) + field(:hasCredential) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryConnectionSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryConnectionSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryConnectionSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_date_sharded_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_date_sharded_spec.ex new file mode 100644 index 0000000000..a230d88b2d --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_date_sharded_spec.ex @@ -0,0 +1,60 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryDateShardedSpec do + @moduledoc """ + Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more information, see [Introduction to partitioned tables] (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). + + ## Attributes + + * `dataset` (*type:* `String.t`, *default:* `nil`) - Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example: `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. + * `latestShardResource` (*type:* `String.t`, *default:* `nil`) - Output only. BigQuery resource name of the latest shard. + * `shardCount` (*type:* `String.t`, *default:* `nil`) - Output only. Total number of shards. + * `tablePrefix` (*type:* `String.t`, *default:* `nil`) - Output only. The table name prefix of the shards. The name of any given shard is `[table_prefix]YYYYMMDD`. For example, for the `MyTable20180101` shard, the `table_prefix` is `MyTable`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataset => String.t() | nil, + :latestShardResource => String.t() | nil, + :shardCount => String.t() | nil, + :tablePrefix => String.t() | nil + } + + field(:dataset) + field(:latestShardResource) + field(:shardCount) + field(:tablePrefix) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryDateShardedSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryDateShardedSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryDateShardedSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_routine_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_routine_spec.ex new file mode 100644 index 0000000000..3e62b485ca --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_routine_spec.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryRoutineSpec do + @moduledoc """ + Fields specific for BigQuery routines. + + ## Attributes + + * `importedLibraries` (*type:* `list(String.t)`, *default:* `nil`) - Paths of the imported libraries. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :importedLibraries => list(String.t()) | nil + } + + field(:importedLibraries, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryRoutineSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryRoutineSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryRoutineSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_table_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_table_spec.ex new file mode 100644 index 0000000000..7451e2a943 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_big_query_table_spec.ex @@ -0,0 +1,59 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec do + @moduledoc """ + Describes a BigQuery table. + + ## Attributes + + * `tableSourceType` (*type:* `String.t`, *default:* `nil`) - Output only. The table source type. + * `tableSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TableSpec.t`, *default:* `nil`) - Specification of a BigQuery table. Populated only if the `table_source_type` is `BIGQUERY_TABLE`. + * `viewSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ViewSpec.t`, *default:* `nil`) - Table view specification. Populated only if the `table_source_type` is `BIGQUERY_VIEW`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :tableSourceType => String.t() | nil, + :tableSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TableSpec.t() | nil, + :viewSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ViewSpec.t() | nil + } + + field(:tableSourceType) + field(:tableSpec, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TableSpec) + field(:viewSpec, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ViewSpec) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_business_context.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_business_context.ex new file mode 100644 index 0000000000..638075204d --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_business_context.ex @@ -0,0 +1,59 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BusinessContext do + @moduledoc """ + Business Context of the entry. + + ## Attributes + + * `contacts` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Contacts.t`, *default:* `nil`) - Contact people for the entry. + * `entryOverview` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1EntryOverview.t`, *default:* `nil`) - Entry overview fields for rich text descriptions of entries. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contacts => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Contacts.t() | nil, + :entryOverview => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1EntryOverview.t() | nil + } + + field(:contacts, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Contacts) + + field(:entryOverview, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1EntryOverview + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BusinessContext do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BusinessContext.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BusinessContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec.ex new file mode 100644 index 0000000000..0585c74fb3 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec.ex @@ -0,0 +1,59 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec do + @moduledoc """ + Specification that applies to Instance entries that are part of `CLOUD_BIGTABLE` system. (user_specified_type) + + ## Attributes + + * `cloudBigtableClusterSpecs` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec.t)`, *default:* `nil`) - The list of clusters for the Instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudBigtableClusterSpecs => + list( + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec.t() + ) + | nil + } + + field(:cloudBigtableClusterSpecs, + as: + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec_cloud_bigtable_cluster_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec_cloud_bigtable_cluster_spec.ex new file mode 100644 index 0000000000..3cafccadc8 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_instance_spec_cloud_bigtable_cluster_spec.ex @@ -0,0 +1,62 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec do + @moduledoc """ + Spec that applies to clusters of an Instance of Cloud Bigtable. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Name of the cluster. + * `linkedResource` (*type:* `String.t`, *default:* `nil`) - A link back to the parent resource, in this case Instance. + * `location` (*type:* `String.t`, *default:* `nil`) - Location of the cluster, typically a Cloud zone. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the resource. For a cluster this would be "CLUSTER". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :linkedResource => String.t() | nil, + :location => String.t() | nil, + :type => String.t() | nil + } + + field(:displayName) + field(:linkedResource) + field(:location) + field(:type) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_system_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_system_spec.ex new file mode 100644 index 0000000000..1f34d198fb --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_bigtable_system_spec.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec do + @moduledoc """ + Specification that applies to all entries that are part of `CLOUD_BIGTABLE` system (user_specified_type) + + ## Attributes + + * `instanceDisplayName` (*type:* `String.t`, *default:* `nil`) - Display name of the Instance. This is user specified and different from the resource name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instanceDisplayName => String.t() | nil + } + + field(:instanceDisplayName) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_sql_big_query_connection_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_sql_big_query_connection_spec.ex new file mode 100644 index 0000000000..5d38cd281b --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_cloud_sql_big_query_connection_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec do + @moduledoc """ + Specification for the BigQuery connection to a Cloud SQL instance. + + ## Attributes + + * `database` (*type:* `String.t`, *default:* `nil`) - Database name. + * `instanceId` (*type:* `String.t`, *default:* `nil`) - Cloud SQL instance ID in the format of `project:location:instance`. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the Cloud SQL database. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :database => String.t() | nil, + :instanceId => String.t() | nil, + :type => String.t() | nil + } + + field(:database) + field(:instanceId) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema.ex new file mode 100644 index 0000000000..f78e45360b --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema.ex @@ -0,0 +1,99 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema do + @moduledoc """ + A column within a schema. Columns can be nested inside other columns. + + ## Attributes + + * `column` (*type:* `String.t`, *default:* `nil`) - Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes. + * `defaultValue` (*type:* `String.t`, *default:* `nil`) - Optional. Default value for the column. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes. + * `gcRule` (*type:* `String.t`, *default:* `nil`) - Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable. + * `highestIndexingType` (*type:* `String.t`, *default:* `nil`) - Optional. Most important inclusion of this column. + * `lookerColumnSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec.t`, *default:* `nil`) - Looker specific column info of this column. + * `mode` (*type:* `String.t`, *default:* `nil`) - Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. Default mode is `NULLABLE`. + * `ordinalPosition` (*type:* `integer()`, *default:* `nil`) - Optional. Ordinal position + * `rangeElementType` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType.t`, *default:* `nil`) - Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include: * DATE * DATETIME * TIMESTAMP + * `subcolumns` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema.t)`, *default:* `nil`) - Optional. Schema of sub-columns. A column can have zero or more sub-columns. + * `type` (*type:* `String.t`, *default:* `nil`) - Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :column => String.t() | nil, + :defaultValue => String.t() | nil, + :description => String.t() | nil, + :gcRule => String.t() | nil, + :highestIndexingType => String.t() | nil, + :lookerColumnSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec.t() + | nil, + :mode => String.t() | nil, + :ordinalPosition => integer() | nil, + :rangeElementType => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType.t() + | nil, + :subcolumns => + list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema.t()) + | nil, + :type => String.t() | nil + } + + field(:column) + field(:defaultValue) + field(:description) + field(:gcRule) + field(:highestIndexingType) + + field(:lookerColumnSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec + ) + + field(:mode) + field(:ordinalPosition) + + field(:rangeElementType, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType + ) + + field(:subcolumns, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema, + type: :list + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema_field_element_type.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema_field_element_type.ex new file mode 100644 index 0000000000..111fb28696 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema_field_element_type.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType do + @moduledoc """ + Represents the type of a field element. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Required. The type of a field element. See ColumnSchema.type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaFieldElementType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema_looker_column_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema_looker_column_spec.ex new file mode 100644 index 0000000000..c1f4c82c96 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_column_schema_looker_column_spec.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec do + @moduledoc """ + Column info specific to Looker System. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Looker specific column type of this column. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_common_usage_stats.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_common_usage_stats.ex new file mode 100644 index 0000000000..831763b267 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_common_usage_stats.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CommonUsageStats do + @moduledoc """ + Common statistics on the entry's usage. They can be set on any system. + + ## Attributes + + * `viewCount` (*type:* `String.t`, *default:* `nil`) - View count in source system. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :viewCount => String.t() | nil + } + + field(:viewCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CommonUsageStats do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CommonUsageStats.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CommonUsageStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_contacts.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_contacts.ex new file mode 100644 index 0000000000..df976d0c1e --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_contacts.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Contacts do + @moduledoc """ + Contact people for the entry. + + ## Attributes + + * `people` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ContactsPerson.t)`, *default:* `nil`) - The list of contact people for the entry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :people => + list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ContactsPerson.t()) + | nil + } + + field(:people, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ContactsPerson, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Contacts do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Contacts.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Contacts do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_contacts_person.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_contacts_person.ex new file mode 100644 index 0000000000..1bcf0aa3bd --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_contacts_person.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ContactsPerson do + @moduledoc """ + A contact person for the entry. + + ## Attributes + + * `designation` (*type:* `String.t`, *default:* `nil`) - Designation of the person, for example, Data Steward. + * `email` (*type:* `String.t`, *default:* `nil`) - Email of the person in the format of `john.doe@xyz`, ``, or `John Doe`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :designation => String.t() | nil, + :email => String.t() | nil + } + + field(:designation) + field(:email) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ContactsPerson do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ContactsPerson.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ContactsPerson do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_data_source.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_data_source.ex new file mode 100644 index 0000000000..ff91f9a4ef --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_data_source.ex @@ -0,0 +1,62 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSource do + @moduledoc """ + Physical location of an entry. + + ## Attributes + + * `resource` (*type:* `String.t`, *default:* `nil`) - Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}` + * `service` (*type:* `String.t`, *default:* `nil`) - Service that physically stores the data. + * `sourceEntry` (*type:* `String.t`, *default:* `nil`) - Output only. Data Catalog entry name, if applicable. + * `storageProperties` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1StorageProperties.t`, *default:* `nil`) - Detailed properties of the underlying storage. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resource => String.t() | nil, + :service => String.t() | nil, + :sourceEntry => String.t() | nil, + :storageProperties => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1StorageProperties.t() + | nil + } + + field(:resource) + field(:service) + field(:sourceEntry) + + field(:storageProperties, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1StorageProperties + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSource do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSource.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_data_source_connection_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_data_source_connection_spec.ex new file mode 100644 index 0000000000..279f2f404f --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_data_source_connection_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSourceConnectionSpec do + @moduledoc """ + Specification that applies to a data source connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` type. Only one of internal specs can be set at the time, and cannot be changed later. + + ## Attributes + + * `bigqueryConnectionSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryConnectionSpec.t`, *default:* `nil`) - Output only. Fields specific to BigQuery connections. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bigqueryConnectionSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryConnectionSpec.t() + | nil + } + + field(:bigqueryConnectionSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryConnectionSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSourceConnectionSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSourceConnectionSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSourceConnectionSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_database_table_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_database_table_spec.ex new file mode 100644 index 0000000000..b8d43f89cb --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_database_table_spec.ex @@ -0,0 +1,68 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec do + @moduledoc """ + Specification that applies to a table resource. Valid only for entries with the `TABLE` type. + + ## Attributes + + * `databaseViewSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec.t`, *default:* `nil`) - Spec what aplies to tables that are actually views. Not set for "real" tables. + * `dataplexTable` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexTableSpec.t`, *default:* `nil`) - Output only. Fields specific to a Dataplex table and present only in the Dataplex table entries. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of this table. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :databaseViewSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec.t() + | nil, + :dataplexTable => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexTableSpec.t() + | nil, + :type => String.t() | nil + } + + field(:databaseViewSpec, + as: + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec + ) + + field(:dataplexTable, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexTableSpec + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_database_table_spec_database_view_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_database_table_spec_database_view_spec.ex new file mode 100644 index 0000000000..50d86112d7 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_database_table_spec_database_view_spec.ex @@ -0,0 +1,59 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec do + @moduledoc """ + Specification that applies to database view. + + ## Attributes + + * `baseTable` (*type:* `String.t`, *default:* `nil`) - Name of a singular table this view reflects one to one. + * `sqlQuery` (*type:* `String.t`, *default:* `nil`) - SQL query used to generate this view. + * `viewType` (*type:* `String.t`, *default:* `nil`) - Type of this view. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseTable => String.t() | nil, + :sqlQuery => String.t() | nil, + :viewType => String.t() | nil + } + + field(:baseTable) + field(:sqlQuery) + field(:viewType) +end + +defimpl Poison.Decoder, + for: + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_external_table.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_external_table.ex new file mode 100644 index 0000000000..72ba91a5ff --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_external_table.ex @@ -0,0 +1,60 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexExternalTable do + @moduledoc """ + External table registered by Dataplex. Dataplex publishes data discovered from an asset into multiple other systems (BigQuery, DPMS) in form of tables. We call them "external tables". External tables are also synced into the Data Catalog. This message contains pointers to those external tables (fully qualified name, resource name et cetera) within the Data Catalog. + + ## Attributes + + * `dataCatalogEntry` (*type:* `String.t`, *default:* `nil`) - Name of the Data Catalog entry representing the external table. + * `fullyQualifiedName` (*type:* `String.t`, *default:* `nil`) - Fully qualified name (FQN) of the external table. + * `googleCloudResource` (*type:* `String.t`, *default:* `nil`) - Google Cloud resource name of the external table. + * `system` (*type:* `String.t`, *default:* `nil`) - Service in which the external table is registered. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataCatalogEntry => String.t() | nil, + :fullyQualifiedName => String.t() | nil, + :googleCloudResource => String.t() | nil, + :system => String.t() | nil + } + + field(:dataCatalogEntry) + field(:fullyQualifiedName) + field(:googleCloudResource) + field(:system) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexExternalTable do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexExternalTable.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexExternalTable do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_fileset_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_fileset_spec.ex new file mode 100644 index 0000000000..0cfa7b4076 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_fileset_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexFilesetSpec do + @moduledoc """ + Entry specyfication for a Dataplex fileset. + + ## Attributes + + * `dataplexSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec.t`, *default:* `nil`) - Common Dataplex fields. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataplexSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec.t() | nil + } + + field(:dataplexSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexFilesetSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexFilesetSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexFilesetSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_spec.ex new file mode 100644 index 0000000000..cdad48028b --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_spec.ex @@ -0,0 +1,65 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec do + @moduledoc """ + Common Dataplex fields. + + ## Attributes + + * `asset` (*type:* `String.t`, *default:* `nil`) - Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached. + * `compressionFormat` (*type:* `String.t`, *default:* `nil`) - Compression format of the data, e.g., zip, gzip etc. + * `dataFormat` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchema.t`, *default:* `nil`) - Format of the data. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :asset => String.t() | nil, + :compressionFormat => String.t() | nil, + :dataFormat => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchema.t() | nil, + :projectId => String.t() | nil + } + + field(:asset) + field(:compressionFormat) + + field(:dataFormat, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchema + ) + + field(:projectId) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_table_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_table_spec.ex new file mode 100644 index 0000000000..bb63deb308 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataplex_table_spec.ex @@ -0,0 +1,69 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexTableSpec do + @moduledoc """ + Entry specification for a Dataplex table. + + ## Attributes + + * `dataplexSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec.t`, *default:* `nil`) - Common Dataplex fields. + * `externalTables` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexExternalTable.t)`, *default:* `nil`) - List of external tables registered by Dataplex in other systems based on the same underlying data. External tables allow to query this data in those systems. + * `userManaged` (*type:* `boolean()`, *default:* `nil`) - Indicates if the table schema is managed by the user or not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataplexSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec.t() | nil, + :externalTables => + list( + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexExternalTable.t() + ) + | nil, + :userManaged => boolean() | nil + } + + field(:dataplexSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexSpec + ) + + field(:externalTables, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexExternalTable, + type: :list + ) + + field(:userManaged) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexTableSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexTableSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexTableSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataset_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataset_spec.ex new file mode 100644 index 0000000000..61d9caf679 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dataset_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatasetSpec do + @moduledoc """ + Specification that applies to a dataset. Valid only for entries with the `DATASET` type. + + ## Attributes + + * `vertexDatasetSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec.t`, *default:* `nil`) - Vertex AI Dataset specific fields + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :vertexDatasetSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec.t() + | nil + } + + field(:vertexDatasetSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatasetSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatasetSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatasetSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dump_item.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dump_item.ex new file mode 100644 index 0000000000..230c3a4de2 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_dump_item.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DumpItem do + @moduledoc """ + Wrapper for any item that can be contained in the dump. + + ## Attributes + + * `taggedEntry` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TaggedEntry.t`, *default:* `nil`) - Entry and its tags. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :taggedEntry => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TaggedEntry.t() | nil + } + + field(:taggedEntry, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TaggedEntry) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DumpItem do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DumpItem.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DumpItem do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_entry.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_entry.ex new file mode 100644 index 0000000000..1382dde909 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_entry.ex @@ -0,0 +1,201 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Entry do + @moduledoc """ + Entry metadata. A Data Catalog entry represents another resource in Google Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or outside of it. You can use the `linked_resource` field in the entry resource to refer to the original resource ID of the source system. An entry resource contains resource details, for example, its schema. Additionally, you can attach flexible metadata to an entry in the form of a Tag. + + ## Attributes + + * `bigqueryDateShardedSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryDateShardedSpec.t`, *default:* `nil`) - Output only. Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more information, see [Introduction to partitioned tables] (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). + * `bigqueryTableSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec.t`, *default:* `nil`) - Output only. Specification that applies to a BigQuery table. Valid only for entries with the `TABLE` type. + * `businessContext` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BusinessContext.t`, *default:* `nil`) - Business Context of the entry. Not supported for BigQuery datasets + * `cloudBigtableSystemSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec.t`, *default:* `nil`) - Specification that applies to Cloud Bigtable system. Only settable when `integrated_system` is equal to `CLOUD_BIGTABLE` + * `dataSource` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSource.t`, *default:* `nil`) - Output only. Physical location of the entry. + * `dataSourceConnectionSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSourceConnectionSpec.t`, *default:* `nil`) - Specification that applies to a data source connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` type. + * `databaseTableSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec.t`, *default:* `nil`) - Specification that applies to a table resource. Valid only for entries with the `TABLE` or `EXPLORE` type. + * `datasetSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatasetSpec.t`, *default:* `nil`) - Specification that applies to a dataset. + * `description` (*type:* `String.t`, *default:* `nil`) - Entry description that can consist of several sentences or paragraphs that describe entry contents. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). The maximum size is 2000 bytes when encoded in UTF-8. Default value is an empty string. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Display name of an entry. The maximum size is 500 bytes when encoded in UTF-8. Default value is an empty string. + * `featureOnlineStoreSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec.t`, *default:* `nil`) - FeatureonlineStore spec for Vertex AI Feature Store. + * `filesetSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FilesetSpec.t`, *default:* `nil`) - Specification that applies to a fileset resource. Valid only for entries with the `FILESET` type. + * `fullyQualifiedName` (*type:* `String.t`, *default:* `nil`) - [Fully Qualified Name (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) of the resource. Set automatically for entries representing resources from synced systems. Settable only during creation, and read-only later. Can be used for search and lookup of the entries. + * `gcsFilesetSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFilesetSpec.t`, *default:* `nil`) - Specification that applies to a Cloud Storage fileset. Valid only for entries with the `FILESET` type. + * `integratedSystem` (*type:* `String.t`, *default:* `nil`) - Output only. Indicates the entry's source system that Data Catalog integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. + * `labels` (*type:* `map()`, *default:* `nil`) - Cloud labels attached to the entry. In Data Catalog, you can create and modify labels attached only to custom entries. Synced entries have unmodifiable labels that come from the source system. + * `linkedResource` (*type:* `String.t`, *default:* `nil`) - The resource this metadata entry refers to. For Google Cloud Platform resources, `linked_resource` is the [Full Resource Name] (https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, the `linked_resource` for a table resource from BigQuery is: `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` Output only when the entry is one of the types in the `EntryType` enum. For entries with a `user_specified_type`, this field is optional and defaults to an empty string. The resource string must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), periods (.), colons (:), slashes (/), dashes (-), and hashes (#). The maximum size is 200 bytes when encoded in UTF-8. + * `lookerSystemSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec.t`, *default:* `nil`) - Specification that applies to Looker sysstem. Only settable when `user_specified_system` is equal to `LOOKER` + * `modelSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ModelSpec.t`, *default:* `nil`) - Model specification. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name. + * `personalDetails` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PersonalDetails.t`, *default:* `nil`) - Output only. Additional information related to the entry. Private to the current user. + * `routineSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpec.t`, *default:* `nil`) - Specification that applies to a user-defined function or procedure. Valid only for entries with the `ROUTINE` type. + * `schema` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Schema.t`, *default:* `nil`) - Schema of the entry. An entry might not have any schema attached to it. + * `serviceSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ServiceSpec.t`, *default:* `nil`) - Specification that applies to a Service resource. + * `sourceSystemTimestamps` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps.t`, *default:* `nil`) - Timestamps from the underlying resource, not from the Data Catalog entry. Output only when the entry has a system listed in the `IntegratedSystem` enum. For entries with `user_specified_system`, this field is optional and defaults to an empty timestamp. + * `sqlDatabaseSystemSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec.t`, *default:* `nil`) - Specification that applies to a relational database system. Only settable when `user_specified_system` is equal to `SQL_DATABASE` + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the entry. For details, see [`EntryType`](#entrytype). + * `usageSignal` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageSignal.t`, *default:* `nil`) - Resource usage statistics. + * `userSpecifiedSystem` (*type:* `String.t`, *default:* `nil`) - Indicates the entry's source system that Data Catalog doesn't automatically integrate with. The `user_specified_system` string has the following limitations: * Is case insensitive. * Must begin with a letter or underscore. * Can only contain letters, numbers, and underscores. * Must be at least 1 character and at most 64 characters long. + * `userSpecifiedType` (*type:* `String.t`, *default:* `nil`) - Custom entry type that doesn't match any of the values allowed for input and listed in the `EntryType` enum. When creating an entry, first check the type values in the enum. If there are no appropriate types for the new entry, provide a custom value, for example, `my_special_type`. The `user_specified_type` string has the following limitations: * Is case insensitive. * Must begin with a letter or underscore. * Can only contain letters, numbers, and underscores. * Must be at least 1 character and at most 64 characters long. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bigqueryDateShardedSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryDateShardedSpec.t() + | nil, + :bigqueryTableSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec.t() + | nil, + :businessContext => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BusinessContext.t() | nil, + :cloudBigtableSystemSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec.t() + | nil, + :dataSource => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSource.t() | nil, + :dataSourceConnectionSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSourceConnectionSpec.t() + | nil, + :databaseTableSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec.t() + | nil, + :datasetSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatasetSpec.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :featureOnlineStoreSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec.t() + | nil, + :filesetSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FilesetSpec.t() | nil, + :fullyQualifiedName => String.t() | nil, + :gcsFilesetSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFilesetSpec.t() | nil, + :integratedSystem => String.t() | nil, + :labels => map() | nil, + :linkedResource => String.t() | nil, + :lookerSystemSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec.t() | nil, + :modelSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ModelSpec.t() | nil, + :name => String.t() | nil, + :personalDetails => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PersonalDetails.t() | nil, + :routineSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpec.t() | nil, + :schema => GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Schema.t() | nil, + :serviceSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ServiceSpec.t() | nil, + :sourceSystemTimestamps => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps.t() | nil, + :sqlDatabaseSystemSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec.t() + | nil, + :type => String.t() | nil, + :usageSignal => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageSignal.t() | nil, + :userSpecifiedSystem => String.t() | nil, + :userSpecifiedType => String.t() | nil + } + + field(:bigqueryDateShardedSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryDateShardedSpec + ) + + field(:bigqueryTableSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryTableSpec + ) + + field(:businessContext, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BusinessContext + ) + + field(:cloudBigtableSystemSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableSystemSpec + ) + + field(:dataSource, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSource) + + field(:dataSourceConnectionSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataSourceConnectionSpec + ) + + field(:databaseTableSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatabaseTableSpec + ) + + field(:datasetSpec, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DatasetSpec) + field(:description) + field(:displayName) + + field(:featureOnlineStoreSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec + ) + + field(:filesetSpec, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FilesetSpec) + field(:fullyQualifiedName) + + field(:gcsFilesetSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFilesetSpec + ) + + field(:integratedSystem) + field(:labels, type: :map) + field(:linkedResource) + + field(:lookerSystemSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec + ) + + field(:modelSpec, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ModelSpec) + field(:name) + + field(:personalDetails, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PersonalDetails + ) + + field(:routineSpec, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpec) + field(:schema, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Schema) + field(:serviceSpec, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ServiceSpec) + + field(:sourceSystemTimestamps, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps + ) + + field(:sqlDatabaseSystemSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec + ) + + field(:type) + field(:usageSignal, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageSignal) + field(:userSpecifiedSystem) + field(:userSpecifiedType) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Entry do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Entry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Entry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_entry_overview.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_entry_overview.ex new file mode 100644 index 0000000000..0d01661d2e --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_entry_overview.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1EntryOverview do + @moduledoc """ + Entry overview fields for rich text descriptions of entries. + + ## Attributes + + * `overview` (*type:* `String.t`, *default:* `nil`) - Entry overview with support for rich text. The overview must only contain Unicode characters, and should be formatted using HTML. The maximum length is 10 MiB as this value holds HTML descriptions including encoded images. The maximum length of the text without images is 100 KiB. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :overview => String.t() | nil + } + + field(:overview) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1EntryOverview do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1EntryOverview.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1EntryOverview do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_feature_online_store_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_feature_online_store_spec.ex new file mode 100644 index 0000000000..8a17951b2a --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_feature_online_store_spec.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec do + @moduledoc """ + Detail description of the source information of a Vertex Feature Online Store. + + ## Attributes + + * `storageType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of underelaying storage for the FeatureOnlineStore. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :storageType => String.t() | nil + } + + field(:storageType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FeatureOnlineStoreSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_fileset_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_fileset_spec.ex new file mode 100644 index 0000000000..0216cbaa1a --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_fileset_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FilesetSpec do + @moduledoc """ + Specification that applies to a fileset. Valid only for entries with the 'FILESET' type. + + ## Attributes + + * `dataplexFileset` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexFilesetSpec.t`, *default:* `nil`) - Fields specific to a Dataplex fileset and present only in the Dataplex fileset entries. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataplexFileset => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexFilesetSpec.t() + | nil + } + + field(:dataplexFileset, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1DataplexFilesetSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FilesetSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FilesetSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1FilesetSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_gcs_file_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_gcs_file_spec.ex new file mode 100644 index 0000000000..f4b355dd8c --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_gcs_file_spec.ex @@ -0,0 +1,59 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFileSpec do + @moduledoc """ + Specification of a single file in Cloud Storage. + + ## Attributes + + * `filePath` (*type:* `String.t`, *default:* `nil`) - Required. Full file path. Example: `gs://bucket_name/a/b.txt`. + * `gcsTimestamps` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps.t`, *default:* `nil`) - Output only. Creation, modification, and expiration timestamps of a Cloud Storage file. + * `sizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. File size in bytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :filePath => String.t() | nil, + :gcsTimestamps => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps.t() | nil, + :sizeBytes => String.t() | nil + } + + field(:filePath) + + field(:gcsTimestamps, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps + ) + + field(:sizeBytes) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFileSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFileSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFileSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_gcs_fileset_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_gcs_fileset_spec.ex new file mode 100644 index 0000000000..314605c008 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_gcs_fileset_spec.ex @@ -0,0 +1,60 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFilesetSpec do + @moduledoc """ + Describes a Cloud Storage fileset entry. + + ## Attributes + + * `filePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Required. Patterns to identify a set of files in Google Cloud Storage. For more information, see [Wildcard Names] (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). Note: Currently, bucket wildcards are not supported. Examples of valid `file_patterns`: * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` directory * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` and all subdirectories * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match the `a/*/b` pattern, such as `a/c/b`, `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` You can combine wildcards to match complex sets of files, for example: `gs://bucket_name/[a-m]??.j*g` + * `sampleGcsFileSpecs` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFileSpec.t)`, *default:* `nil`) - Output only. Sample files contained in this fileset, not all files contained in this fileset are represented here. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :filePatterns => list(String.t()) | nil, + :sampleGcsFileSpecs => + list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFileSpec.t()) + | nil + } + + field(:filePatterns, type: :list) + + field(:sampleGcsFileSpecs, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFileSpec, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFilesetSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFilesetSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1GcsFilesetSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_import_entries_metadata.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_import_entries_metadata.ex new file mode 100644 index 0000000000..875ef13b99 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_import_entries_metadata.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ImportEntriesMetadata do + @moduledoc """ + Metadata message for long-running operation returned by the ImportEntries. + + ## Attributes + + * `errors` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.Status.t)`, *default:* `nil`) - Partial errors that are encountered during the ImportEntries operation. There is no guarantee that all the encountered errors are reported. However, if no errors are reported, it means that no errors were encountered. + * `state` (*type:* `String.t`, *default:* `nil`) - State of the import operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errors => list(GoogleApi.DataCatalog.V1beta1.Model.Status.t()) | nil, + :state => String.t() | nil + } + + field(:errors, as: GoogleApi.DataCatalog.V1beta1.Model.Status, type: :list) + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ImportEntriesMetadata do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ImportEntriesMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ImportEntriesMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_import_entries_response.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_import_entries_response.ex new file mode 100644 index 0000000000..1eddae7e3a --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_import_entries_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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ImportEntriesResponse do + @moduledoc """ + Response message for long-running operation returned by the ImportEntries. + + ## Attributes + + * `deletedEntriesCount` (*type:* `String.t`, *default:* `nil`) - Number of entries deleted as a result of import operation. + * `upsertedEntriesCount` (*type:* `String.t`, *default:* `nil`) - Cumulative number of entries created and entries updated as a result of import operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deletedEntriesCount => String.t() | nil, + :upsertedEntriesCount => String.t() | nil + } + + field(:deletedEntriesCount) + field(:upsertedEntriesCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ImportEntriesResponse do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ImportEntriesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ImportEntriesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_looker_system_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_looker_system_spec.ex new file mode 100644 index 0000000000..fc747a7499 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_looker_system_spec.ex @@ -0,0 +1,66 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do + @moduledoc """ + Specification that applies to entries that are part `LOOKER` system (user_specified_type) + + ## Attributes + + * `parentInstanceDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent Looker Instance. Empty if it does not exist. + * `parentInstanceId` (*type:* `String.t`, *default:* `nil`) - ID of the parent Looker Instance. Empty if it does not exist. Example value: `someinstance.looker.com` + * `parentModelDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent Model. Empty if it does not exist. + * `parentModelId` (*type:* `String.t`, *default:* `nil`) - ID of the parent Model. Empty if it does not exist. + * `parentViewDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent View. Empty if it does not exist. + * `parentViewId` (*type:* `String.t`, *default:* `nil`) - ID of the parent View. Empty if it does not exist. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parentInstanceDisplayName => String.t() | nil, + :parentInstanceId => String.t() | nil, + :parentModelDisplayName => String.t() | nil, + :parentModelId => String.t() | nil, + :parentViewDisplayName => String.t() | nil, + :parentViewId => String.t() | nil + } + + field(:parentInstanceDisplayName) + field(:parentInstanceId) + field(:parentModelDisplayName) + field(:parentModelId) + field(:parentViewDisplayName) + field(:parentViewId) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_model_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_model_spec.ex new file mode 100644 index 0000000000..e353d7c2ed --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_model_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ModelSpec do + @moduledoc """ + Specification that applies to a model. Valid only for entries with the `MODEL` type. + + ## Attributes + + * `vertexModelSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSpec.t`, *default:* `nil`) - Specification for vertex model resources. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :vertexModelSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSpec.t() | nil + } + + field(:vertexModelSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSpec + ) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ModelSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ModelSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_personal_details.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_personal_details.ex new file mode 100644 index 0000000000..3b89b130fb --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_personal_details.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PersonalDetails do + @moduledoc """ + Entry metadata relevant only to the user and private to them. + + ## Attributes + + * `starTime` (*type:* `DateTime.t`, *default:* `nil`) - Set if the entry is starred; unset otherwise. + * `starred` (*type:* `boolean()`, *default:* `nil`) - True if the entry is starred by the user; false otherwise. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :starTime => DateTime.t() | nil, + :starred => boolean() | nil + } + + field(:starTime, as: DateTime) + field(:starred) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PersonalDetails do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PersonalDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PersonalDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema.ex new file mode 100644 index 0000000000..e12cb5419f --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema.ex @@ -0,0 +1,95 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchema do + @moduledoc """ + Native schema used by a resource represented as an entry. Used by query engines for deserializing and parsing source data. + + ## Attributes + + * `avro` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema.t`, *default:* `nil`) - Schema in Avro JSON format. + * `csv` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema.t`, *default:* `nil`) - Marks a CSV-encoded data source. + * `orc` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema.t`, *default:* `nil`) - Marks an ORC-encoded data source. + * `parquet` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema.t`, *default:* `nil`) - Marks a Parquet-encoded data source. + * `protobuf` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema.t`, *default:* `nil`) - Schema in protocol buffer format. + * `thrift` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema.t`, *default:* `nil`) - Schema in Thrift format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :avro => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema.t() + | nil, + :csv => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema.t() + | nil, + :orc => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema.t() + | nil, + :parquet => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema.t() + | nil, + :protobuf => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema.t() + | nil, + :thrift => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema.t() + | nil + } + + field(:avro, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema + ) + + field(:csv, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema + ) + + field(:orc, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema + ) + + field(:parquet, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema + ) + + field(:protobuf, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema + ) + + field(:thrift, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_avro_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_avro_schema.ex new file mode 100644 index 0000000000..00f31972cc --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_avro_schema.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema do + @moduledoc """ + Schema in Avro JSON format. + + ## Attributes + + * `text` (*type:* `String.t`, *default:* `nil`) - JSON source of the Avro schema. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :text => String.t() | nil + } + + field(:text) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_csv_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_csv_schema.ex new file mode 100644 index 0000000000..f63f263da9 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_csv_schema.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema do + @moduledoc """ + Marks a CSV-encoded data source. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_orc_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_orc_schema.ex new file mode 100644 index 0000000000..33d5f03dbe --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_orc_schema.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema do + @moduledoc """ + Marks an ORC-encoded data source. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_parquet_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_parquet_schema.ex new file mode 100644 index 0000000000..f888e9cf9d --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_parquet_schema.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema do + @moduledoc """ + Marks a Parquet-encoded data source. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_protobuf_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_protobuf_schema.ex new file mode 100644 index 0000000000..6857e65b7f --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_protobuf_schema.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema do + @moduledoc """ + Schema in protocol buffer format. + + ## Attributes + + * `text` (*type:* `String.t`, *default:* `nil`) - Protocol buffer source of the schema. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :text => String.t() | nil + } + + field(:text) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_thrift_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_thrift_schema.ex new file mode 100644 index 0000000000..d5210bc7a3 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_physical_schema_thrift_schema.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema do + @moduledoc """ + Schema in Thrift format. + + ## Attributes + + * `text` (*type:* `String.t`, *default:* `nil`) - Thrift IDL source of the schema. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :text => String.t() | nil + } + + field(:text) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_reconcile_tags_metadata.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_reconcile_tags_metadata.ex new file mode 100644 index 0000000000..2531437dab --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_reconcile_tags_metadata.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ReconcileTagsMetadata do + @moduledoc """ + Long-running operation metadata message returned by the ReconcileTags. + + ## Attributes + + * `errors` (*type:* `%{optional(String.t) => GoogleApi.DataCatalog.V1beta1.Model.Status.t}`, *default:* `nil`) - Maps the name of each tagged column (or empty string for a sole entry) to tagging operation status. + * `state` (*type:* `String.t`, *default:* `nil`) - State of the reconciliation operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errors => + %{optional(String.t()) => GoogleApi.DataCatalog.V1beta1.Model.Status.t()} | nil, + :state => String.t() | nil + } + + field(:errors, as: GoogleApi.DataCatalog.V1beta1.Model.Status, type: :map) + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ReconcileTagsMetadata do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ReconcileTagsMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ReconcileTagsMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_reconcile_tags_response.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_reconcile_tags_response.ex new file mode 100644 index 0000000000..6ee1926c4c --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_reconcile_tags_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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ReconcileTagsResponse do + @moduledoc """ + Long-running operation response message returned by ReconcileTags. + + ## Attributes + + * `createdTagsCount` (*type:* `String.t`, *default:* `nil`) - Number of tags created in the request. + * `deletedTagsCount` (*type:* `String.t`, *default:* `nil`) - Number of tags deleted in the request. + * `updatedTagsCount` (*type:* `String.t`, *default:* `nil`) - Number of tags updated in the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createdTagsCount => String.t() | nil, + :deletedTagsCount => String.t() | nil, + :updatedTagsCount => String.t() | nil + } + + field(:createdTagsCount) + field(:deletedTagsCount) + field(:updatedTagsCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ReconcileTagsResponse do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ReconcileTagsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ReconcileTagsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_routine_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_routine_spec.ex new file mode 100644 index 0000000000..ded8a9a0bf --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_routine_spec.ex @@ -0,0 +1,77 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpec do + @moduledoc """ + Specification that applies to a routine. Valid only for entries with the `ROUTINE` type. + + ## Attributes + + * `bigqueryRoutineSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryRoutineSpec.t`, *default:* `nil`) - Fields specific for BigQuery routines. + * `definitionBody` (*type:* `String.t`, *default:* `nil`) - The body of the routine. + * `language` (*type:* `String.t`, *default:* `nil`) - The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are: * `SQL` * `JAVASCRIPT` + * `returnType` (*type:* `String.t`, *default:* `nil`) - Return type of the argument. The exact value depends on the source system and the language. + * `routineArguments` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpecArgument.t)`, *default:* `nil`) - Arguments of the routine. + * `routineType` (*type:* `String.t`, *default:* `nil`) - The type of the routine. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bigqueryRoutineSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryRoutineSpec.t() + | nil, + :definitionBody => String.t() | nil, + :language => String.t() | nil, + :returnType => String.t() | nil, + :routineArguments => + list( + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpecArgument.t() + ) + | nil, + :routineType => String.t() | nil + } + + field(:bigqueryRoutineSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1BigQueryRoutineSpec + ) + + field(:definitionBody) + field(:language) + field(:returnType) + + field(:routineArguments, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpecArgument, + type: :list + ) + + field(:routineType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_routine_spec_argument.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_routine_spec_argument.ex new file mode 100644 index 0000000000..4eb7a1be4b --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_routine_spec_argument.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpecArgument do + @moduledoc """ + Input or output argument of a function or stored procedure. + + ## Attributes + + * `mode` (*type:* `String.t`, *default:* `nil`) - Specifies whether the argument is input or output. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the argument. A return argument of a function might not have a name. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the argument. The exact value depends on the source system and the language. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mode => String.t() | nil, + :name => String.t() | nil, + :type => String.t() | nil + } + + field(:mode) + field(:name) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpecArgument do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpecArgument.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1RoutineSpecArgument do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_schema.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_schema.ex new file mode 100644 index 0000000000..32fd1e56e5 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_schema.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Schema do + @moduledoc """ + Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema. + + ## Attributes + + * `columns` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema.t)`, *default:* `nil`) - The unified GoogleSQL-like schema of columns. The overall maximum number of columns and nested columns is 10,000. The maximum nested depth is 15 levels. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columns => + list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema.t()) + | nil + } + + field(:columns, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ColumnSchema, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Schema do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Schema.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Schema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_service_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_service_spec.ex new file mode 100644 index 0000000000..7e530e0969 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_service_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ServiceSpec do + @moduledoc """ + Specification that applies to a Service resource. Valid only for entries with the `SERVICE` type. + + ## Attributes + + * `cloudBigtableInstanceSpec` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec.t`, *default:* `nil`) - Specification that applies to Instance entries of `CLOUD_BIGTABLE` system. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudBigtableInstanceSpec => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec.t() + | nil + } + + field(:cloudBigtableInstanceSpec, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CloudBigtableInstanceSpec + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ServiceSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ServiceSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ServiceSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_sql_database_system_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_sql_database_system_spec.ex new file mode 100644 index 0000000000..7a5f89bf4c --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_sql_database_system_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec do + @moduledoc """ + Specification that applies to entries that are part `SQL_DATABASE` system (user_specified_type) + + ## Attributes + + * `databaseVersion` (*type:* `String.t`, *default:* `nil`) - Version of the database engine. + * `instanceHost` (*type:* `String.t`, *default:* `nil`) - Host of the SQL database enum InstanceHost { UNDEFINED = 0; SELF_HOSTED = 1; CLOUD_SQL = 2; AMAZON_RDS = 3; AZURE_SQL = 4; } Host of the enclousing database instance. + * `sqlEngine` (*type:* `String.t`, *default:* `nil`) - SQL Database Engine. enum SqlEngine { UNDEFINED = 0; MY_SQL = 1; POSTGRE_SQL = 2; SQL_SERVER = 3; } Engine of the enclosing database instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :databaseVersion => String.t() | nil, + :instanceHost => String.t() | nil, + :sqlEngine => String.t() | nil + } + + field(:databaseVersion) + field(:instanceHost) + field(:sqlEngine) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SqlDatabaseSystemSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_storage_properties.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_storage_properties.ex new file mode 100644 index 0000000000..062b1132be --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_storage_properties.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1StorageProperties do + @moduledoc """ + Details the properties of the underlying storage. + + ## Attributes + + * `filePattern` (*type:* `list(String.t)`, *default:* `nil`) - Patterns to identify a set of files for this fileset. Examples of a valid `file_pattern`: * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` directory * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` and all subdirectories recursively * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match the `a/*/b` pattern, such as `a/c/b`, `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + * `fileType` (*type:* `String.t`, *default:* `nil`) - File type in MIME format, for example, `text/plain`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :filePattern => list(String.t()) | nil, + :fileType => String.t() | nil + } + + field(:filePattern, type: :list) + field(:fileType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1StorageProperties do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1StorageProperties.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1StorageProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_system_timestamps.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_system_timestamps.ex new file mode 100644 index 0000000000..f49b283fc8 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_system_timestamps.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps do + @moduledoc """ + Timestamps associated with this resource in a particular system. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Creation timestamp of the resource within the given system. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Expiration timestamp of the resource within the given system. Currently only applicable to BigQuery resources. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp of the last modification of the resource or its metadata within a given system. Note: Depending on the source system, not every modification updates this timestamp. For example, BigQuery timestamps every metadata modification but not data or permission changes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :expireTime => DateTime.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:createTime, as: DateTime) + field(:expireTime, as: DateTime) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1SystemTimestamps do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_table_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_table_spec.ex new file mode 100644 index 0000000000..431220887d --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_table_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TableSpec do + @moduledoc """ + Normal BigQuery table specification. + + ## Attributes + + * `groupedEntry` (*type:* `String.t`, *default:* `nil`) - Output only. If the table is date-sharded, that is, it matches the `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource name of the date-sharded grouped entry. For example: `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. Otherwise, `grouped_entry` is empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :groupedEntry => String.t() | nil + } + + field(:groupedEntry) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TableSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TableSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TableSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag.ex new file mode 100644 index 0000000000..c55be26ee4 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag.ex @@ -0,0 +1,68 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag do + @moduledoc """ + Tags contain custom metadata and are attached to Data Catalog resources. Tags conform with the specification of their tag template. See [Data Catalog IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information on the permissions needed to create or view tags. + + ## Attributes + + * `column` (*type:* `String.t`, *default:* `nil`) - Resources like entry can have schemas associated with them. This scope allows you to attach tags to an individual column based on that schema. To attach a tag to a nested column, separate column names with a dot (`.`). Example: `column.nested_column`. + * `fields` (*type:* `%{optional(String.t) => GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagField.t}`, *default:* `nil`) - Required. Maps the ID of a tag field to its value and additional information about that field. Tag template defines valid field IDs. A tag must have at least 1 field and at most 500 fields. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name. + * `template` (*type:* `String.t`, *default:* `nil`) - Required. The resource name of the tag template this tag uses. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}` This field cannot be modified after creation. + * `templateDisplayName` (*type:* `String.t`, *default:* `nil`) - Output only. The display name of the tag template. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :column => String.t() | nil, + :fields => + %{ + optional(String.t()) => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagField.t() + } + | nil, + :name => String.t() | nil, + :template => String.t() | nil, + :templateDisplayName => String.t() | nil + } + + field(:column) + + field(:fields, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagField, + type: :map + ) + + field(:name) + field(:template) + field(:templateDisplayName) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag_field.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag_field.ex new file mode 100644 index 0000000000..e18d3ee4e9 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag_field.ex @@ -0,0 +1,73 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagField do + @moduledoc """ + Contains the value and additional information on a field within a Tag. + + ## Attributes + + * `boolValue` (*type:* `boolean()`, *default:* `nil`) - The value of a tag field with a boolean type. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Output only. The display name of this field. + * `doubleValue` (*type:* `float()`, *default:* `nil`) - The value of a tag field with a double type. + * `enumValue` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagFieldEnumValue.t`, *default:* `nil`) - The value of a tag field with an enum type. This value must be one of the allowed values listed in this enum. + * `order` (*type:* `integer()`, *default:* `nil`) - Output only. The order of this field with respect to other fields in this tag. Can be set by Tag. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag don't have to be sequential. + * `richtextValue` (*type:* `String.t`, *default:* `nil`) - The value of a tag field with a rich text type. The maximum length is 10 MiB as this value holds HTML descriptions including encoded images. The maximum length of the text without images is 100 KiB. + * `stringValue` (*type:* `String.t`, *default:* `nil`) - The value of a tag field with a string type. The maximum length is 2000 UTF-8 characters. + * `timestampValue` (*type:* `DateTime.t`, *default:* `nil`) - The value of a tag field with a timestamp type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boolValue => boolean() | nil, + :displayName => String.t() | nil, + :doubleValue => float() | nil, + :enumValue => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagFieldEnumValue.t() + | nil, + :order => integer() | nil, + :richtextValue => String.t() | nil, + :stringValue => String.t() | nil, + :timestampValue => DateTime.t() | nil + } + + field(:boolValue) + field(:displayName) + field(:doubleValue) + + field(:enumValue, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagFieldEnumValue + ) + + field(:order) + field(:richtextValue) + field(:stringValue) + field(:timestampValue, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagField do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagField.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag_field_enum_value.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag_field_enum_value.ex new file mode 100644 index 0000000000..53be931f72 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tag_field_enum_value.ex @@ -0,0 +1,51 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagFieldEnumValue do + @moduledoc """ + An enum value. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the enum value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil + } + + field(:displayName) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagFieldEnumValue do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagFieldEnumValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TagFieldEnumValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tagged_entry.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tagged_entry.ex new file mode 100644 index 0000000000..ae4a2a1540 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_tagged_entry.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TaggedEntry do + @moduledoc """ + Wrapper containing Entry and information about Tags that should and should not be attached to it. + + ## Attributes + + * `absentTags` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag.t)`, *default:* `nil`) - Optional. Tags that should be deleted from the Data Catalog. Caller should populate template name and column only. + * `presentTags` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag.t)`, *default:* `nil`) - Optional. Tags that should be ingested into the Data Catalog. Caller should populate template name, column and fields. + * `v1Entry` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Entry.t`, *default:* `nil`) - Non-encrypted Data Catalog v1 Entry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :absentTags => + list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag.t()) | nil, + :presentTags => + list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag.t()) | nil, + :v1Entry => GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Entry.t() | nil + } + + field(:absentTags, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag, + type: :list + ) + + field(:presentTags, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Tag, + type: :list + ) + + field(:v1Entry, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1Entry) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TaggedEntry do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TaggedEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1TaggedEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_usage_signal.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_usage_signal.ex new file mode 100644 index 0000000000..a2a4203e74 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_usage_signal.ex @@ -0,0 +1,75 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageSignal do + @moduledoc """ + The set of all usage signals that Data Catalog stores. Note: Usually, these signals are updated daily. In rare cases, an update may fail but will be performed again on the next day. + + ## Attributes + + * `commonUsageWithinTimeRange` (*type:* `%{optional(String.t) => GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CommonUsageStats.t}`, *default:* `nil`) - Common usage statistics over each of the predefined time ranges. Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`. + * `favoriteCount` (*type:* `String.t`, *default:* `nil`) - Favorite count in the source system. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - The end timestamp of the duration of usage statistics. + * `usageWithinTimeRange` (*type:* `%{optional(String.t) => GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageStats.t}`, *default:* `nil`) - Output only. BigQuery usage statistics over each of the predefined time ranges. Supported time ranges are `{"24H", "7D", "30D"}`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :commonUsageWithinTimeRange => + %{ + optional(String.t()) => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CommonUsageStats.t() + } + | nil, + :favoriteCount => String.t() | nil, + :updateTime => DateTime.t() | nil, + :usageWithinTimeRange => + %{ + optional(String.t()) => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageStats.t() + } + | nil + } + + field(:commonUsageWithinTimeRange, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1CommonUsageStats, + type: :map + ) + + field(:favoriteCount) + field(:updateTime, as: DateTime) + + field(:usageWithinTimeRange, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageStats, + type: :map + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageSignal do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageSignal.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageSignal do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_usage_stats.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_usage_stats.ex new file mode 100644 index 0000000000..6c5b391db6 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_usage_stats.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageStats do + @moduledoc """ + Detailed statistics on the entry's usage. Usage statistics have the following limitations: - Only BigQuery tables have them. - They only include BigQuery query jobs. - They might be underestimated because wildcard table references are not yet counted. For more information, see [Querying multiple tables using a wildcard table] (https://cloud.google.com/bigquery/docs/querying-wildcard-tables) + + ## Attributes + + * `totalCancellations` (*type:* `number()`, *default:* `nil`) - The number of cancelled attempts to use the underlying entry. + * `totalCompletions` (*type:* `number()`, *default:* `nil`) - The number of successful uses of the underlying entry. + * `totalExecutionTimeForCompletionsMillis` (*type:* `number()`, *default:* `nil`) - Total time spent only on successful uses, in milliseconds. + * `totalFailures` (*type:* `number()`, *default:* `nil`) - The number of failed attempts to use the underlying entry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :totalCancellations => number() | nil, + :totalCompletions => number() | nil, + :totalExecutionTimeForCompletionsMillis => number() | nil, + :totalFailures => number() | nil + } + + field(:totalCancellations) + field(:totalCompletions) + field(:totalExecutionTimeForCompletionsMillis) + field(:totalFailures) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageStats do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageStats.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1UsageStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_dataset_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_dataset_spec.ex new file mode 100644 index 0000000000..731e86fb9f --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_dataset_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec do + @moduledoc """ + Specification for vertex dataset resources. + + ## Attributes + + * `dataItemCount` (*type:* `String.t`, *default:* `nil`) - The number of DataItems in this Dataset. Only apply for non-structured Dataset. + * `dataType` (*type:* `String.t`, *default:* `nil`) - Type of the dataset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataItemCount => String.t() | nil, + :dataType => String.t() | nil + } + + field(:dataItemCount) + field(:dataType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexDatasetSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_model_source_info.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_model_source_info.ex new file mode 100644 index 0000000000..c99220f437 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_model_source_info.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo do + @moduledoc """ + Detail description of the source information of a Vertex model. + + ## Attributes + + * `copy` (*type:* `boolean()`, *default:* `nil`) - If this Model is copy of another Model. If true then source_type pertains to the original. + * `sourceType` (*type:* `String.t`, *default:* `nil`) - Type of the model source. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :copy => boolean() | nil, + :sourceType => String.t() | nil + } + + field(:copy) + field(:sourceType) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_model_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_model_spec.ex new file mode 100644 index 0000000000..f4ef80476f --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_vertex_model_spec.ex @@ -0,0 +1,68 @@ +# 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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSpec do + @moduledoc """ + Specification for vertex model resources. + + ## Attributes + + * `containerImageUri` (*type:* `String.t`, *default:* `nil`) - URI of the Docker image to be used as the custom container for serving predictions. + * `versionAliases` (*type:* `list(String.t)`, *default:* `nil`) - User provided version aliases so that a model version can be referenced via alias + * `versionDescription` (*type:* `String.t`, *default:* `nil`) - The description of this version. + * `versionId` (*type:* `String.t`, *default:* `nil`) - The version ID of the model. + * `vertexModelSourceInfo` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo.t`, *default:* `nil`) - Source of a Vertex model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :containerImageUri => String.t() | nil, + :versionAliases => list(String.t()) | nil, + :versionDescription => String.t() | nil, + :versionId => String.t() | nil, + :vertexModelSourceInfo => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo.t() + | nil + } + + field(:containerImageUri) + field(:versionAliases, type: :list) + field(:versionDescription) + field(:versionId) + + field(:vertexModelSourceInfo, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSourceInfo + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSpec.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1VertexModelSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_view_spec.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_view_spec.ex new file mode 100644 index 0000000000..b38b9a838e --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1_view_spec.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ViewSpec do + @moduledoc """ + Table view specification. + + ## Attributes + + * `viewQuery` (*type:* `String.t`, *default:* `nil`) - Output only. The query that defines the table view. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :viewQuery => String.t() | nil + } + + field(:viewQuery) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ViewSpec do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ViewSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1ViewSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_policy_tag.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_policy_tag.ex index 998a4a73d8..16d2a7ea01 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_policy_tag.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_policy_tag.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1Polic * `childPolicyTags` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Resource names of child policy tags of this policy tag. * `description` (*type:* `String.t`, *default:* `nil`) - Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description. * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". * `parentPolicyTag` (*type:* `String.t`, *default:* `nil`) - Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string. """ diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request_scope.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request_scope.ex index 3212be4a15..6a185b1933 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request_scope.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_request_scope.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1Searc ## Attributes - * `includeGcpPublicDatasets` (*type:* `boolean()`, *default:* `nil`) - If `true`, include Google Cloud Platform (GCP) public datasets in the search results. Info on GCP public datasets is available at https://cloud.google.com/public-datasets/. By default, GCP public datasets are excluded. + * `includeGcpPublicDatasets` (*type:* `boolean()`, *default:* `nil`) - If `true`, include Google Cloud public datasets in the search results. Info on Google Cloud public datasets is available at https://cloud.google.com/public-datasets/. By default, Google Cloud public datasets are excluded. * `includeOrgIds` (*type:* `list(String.t)`, *default:* `nil`) - The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization. * `includeProjectIds` (*type:* `list(String.t)`, *default:* `nil`) - The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects. * `restrictedLocations` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of locations to search within. 1. If empty, search will be performed in all locations; 2. If any of the locations are NOT in the valid locations list, error will be returned; 3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the `SearchCatalogResponse.unreachable` field, users can repeat the search request with this parameter set to get additional information on the error. Valid locations: * asia-east1 * asia-east2 * asia-northeast1 * asia-northeast2 * asia-northeast3 * asia-south1 * asia-southeast1 * australia-southeast1 * eu * europe-north1 * europe-west1 * europe-west2 * europe-west3 * europe-west4 * europe-west6 * global * northamerica-northeast1 * southamerica-east1 * us * us-central1 * us-east1 * us-east4 * us-west1 * us-west2 diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_response.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_response.ex index ebd90035d9..eaff5de58a 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_response.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_search_catalog_response.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1Searc * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token that can be used to retrieve the next page of results. * `results` (*type:* `list(GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1SearchCatalogResult.t)`, *default:* `nil`) - Search results. + * `totalSize` (*type:* `integer()`, *default:* `nil`) - The approximate total number of entries matched by the query. * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Unreachable locations. Search result does not include data from those locations. Users can get additional information on the error by repeating the search request with a more restrictive parameter -- setting the value for `SearchDataCatalogRequest.scope.restricted_locations`. """ @@ -35,6 +36,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1Searc GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1SearchCatalogResult.t() ) | nil, + :totalSize => integer() | nil, :unreachable => list(String.t()) | nil } @@ -45,6 +47,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1Searc type: :list ) + field(:totalSize) field(:unreachable, type: :list) end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag_template.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag_template.ex index 506ba80950..1b82cc9afa 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag_template.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_tag_template.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1TagTemplate do @moduledoc """ - A tag template defines a tag, which can have one or more typed fields. The template is used to create and attach the tag to GCP resources. [Tag template roles](https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) provide permissions to create, edit, and use the template. See, for example, the [TagTemplate User](https://cloud.google.com/data-catalog/docs/how-to/template-user) role, which includes permission to use the tag template to tag resources. + A tag template defines a tag, which can have one or more typed fields. The template is used to create and attach the tag to Google Cloud resources. [Tag template roles](https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) provide permissions to create, edit, and use the template. See, for example, the [TagTemplate User](https://cloud.google.com/data-catalog/docs/how-to/template-user) role, which includes permission to use the tag template to tag resources. ## Attributes diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy.ex index 0a3eb13c68..44bef1ac94 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy.ex @@ -24,8 +24,9 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1Taxon * `activatedPolicyTypes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of this taxonomy. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. User defined name of this taxonomy. It must: contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8. The taxonomy display name must be unique within an organization. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". * `policyTagCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of policy tags contained in this taxonomy. + * `service` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1TaxonomyService.t`, *default:* `nil`) - Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only 'DATAPLEX' is supported. * `taxonomyTimestamps` (*type:* `GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1SystemTimestamps.t`, *default:* `nil`) - Output only. Timestamps about this taxonomy. Only create_time and update_time are used. """ @@ -37,6 +38,9 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1Taxon :displayName => String.t() | nil, :name => String.t() | nil, :policyTagCount => integer() | nil, + :service => + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1TaxonomyService.t() + | nil, :taxonomyTimestamps => GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1SystemTimestamps.t() | nil @@ -48,6 +52,10 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1Taxon field(:name) field(:policyTagCount) + field(:service, + as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1TaxonomyService + ) + field(:taxonomyTimestamps, as: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1SystemTimestamps ) diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy_service.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy_service.ex new file mode 100644 index 0000000000..04dd093598 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_taxonomy_service.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.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1TaxonomyService do + @moduledoc """ + The source system of the Taxonomy. + + ## Attributes + + * `identity` (*type:* `String.t`, *default:* `nil`) - The service agent for the service. + * `name` (*type:* `String.t`, *default:* `nil`) - The Google Cloud service name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :identity => String.t() | nil, + :name => String.t() | nil + } + + field(:identity) + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1TaxonomyService do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1TaxonomyService.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1beta1TaxonomyService do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/policy.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/policy.ex index 8fada5ece8..2bf2fa1efc 100644 --- a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/policy.ex +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.DataCatalog.V1beta1.Model.Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/status.ex b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/status.ex new file mode 100644 index 0000000000..2f85b53730 --- /dev/null +++ b/clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/status.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.DataCatalog.V1beta1.Model.Status do + @moduledoc """ + The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + + ## Attributes + + * `code` (*type:* `integer()`, *default:* `nil`) - The status code, which should be an enum value of google.rpc.Code. + * `details` (*type:* `list(map())`, *default:* `nil`) - A list of messages that carry the error details. There is a common set of message types for APIs to use. + * `message` (*type:* `String.t`, *default:* `nil`) - A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => integer() | nil, + :details => list(map()) | nil, + :message => String.t() | nil + } + + field(:code) + field(:details, type: :list) + field(:message) +end + +defimpl Poison.Decoder, for: GoogleApi.DataCatalog.V1beta1.Model.Status do + def decode(value, options) do + GoogleApi.DataCatalog.V1beta1.Model.Status.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.DataCatalog.V1beta1.Model.Status do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end