From 0c4b260c5a9a020710c961317b4502f9d5f047ef Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 01:36:21 +0000 Subject: [PATCH] feat: Automated regeneration of Dataplex client --- clients/dataplex/README.md | 2 +- .../google_api/dataplex/v1/api/projects.ex | 2369 ++++++++++++++++- .../lib/google_api/dataplex/v1/metadata.ex | 2 +- ..._cloud_dataplex_v1_asset_discovery_spec.ex | 2 +- ...e_cloud_dataplex_v1_asset_resource_spec.ex | 3 + ...cloud_dataplex_v1_asset_resource_status.ex | 3 + ...ogle_cloud_dataplex_v1_data_access_spec.ex | 46 + ...google_cloud_dataplex_v1_data_attribute.ex | 85 + ...loud_dataplex_v1_data_attribute_binding.ex | 83 + ...dataplex_v1_data_attribute_binding_path.ex | 54 + ...e_cloud_dataplex_v1_data_profile_result.ex | 14 +- ...profile_result_post_scan_actions_result.ex | 56 + ..._actions_result_big_query_export_result.ex | 56 + ...dataplex_v1_data_profile_result_profile.ex | 4 +- ...ex_v1_data_profile_result_profile_field.ex | 8 +- ...ofile_result_profile_field_profile_info.ex | 14 +- ...le_field_profile_info_double_field_info.ex | 12 +- ...e_field_profile_info_integer_field_info.ex | 12 +- ...le_field_profile_info_string_field_info.ex | 8 +- ..._profile_field_profile_info_top_n_value.ex | 9 +- ...gle_cloud_dataplex_v1_data_profile_spec.ex | 34 +- ..._v1_data_profile_spec_post_scan_actions.ex | 56 + ...spec_post_scan_actions_big_query_export.ex | 53 + ...ex_v1_data_profile_spec_selected_fields.ex | 51 + ..._dataplex_v1_data_quality_column_result.ex | 54 + ...loud_dataplex_v1_data_quality_dimension.ex | 46 + ...taplex_v1_data_quality_dimension_result.ex | 11 +- ...e_cloud_dataplex_v1_data_quality_result.ex | 25 +- ...quality_result_post_scan_actions_result.ex | 56 + ..._actions_result_big_query_export_result.ex | 56 + ...gle_cloud_dataplex_v1_data_quality_rule.ex | 28 +- ..._v1_data_quality_rule_range_expectation.ex | 4 +- ..._v1_data_quality_rule_regex_expectation.ex | 2 +- ...ud_dataplex_v1_data_quality_rule_result.ex | 10 +- ..._quality_rule_row_condition_expectation.ex | 4 +- ...ex_v1_data_quality_rule_set_expectation.ex | 2 +- ...uality_rule_statistic_range_expectation.ex | 10 +- ...uality_rule_table_condition_expectation.ex | 4 +- ...taplex_v1_data_quality_scan_rule_result.ex | 84 + ...gle_cloud_dataplex_v1_data_quality_spec.ex | 18 +- ..._v1_data_quality_spec_post_scan_actions.ex | 65 + ...spec_post_scan_actions_big_query_export.ex | 53 + ..._spec_post_scan_actions_job_end_trigger.ex | 48 + ...c_post_scan_actions_job_failure_trigger.ex | 48 + ...c_post_scan_actions_notification_report.ex | 84 + ...ality_spec_post_scan_actions_recipients.ex | 51 + ...st_scan_actions_score_threshold_trigger.ex | 53 + .../google_cloud_dataplex_v1_data_scan.ex | 17 +- ...oogle_cloud_dataplex_v1_data_scan_event.ex | 31 +- ...scan_event_data_profile_applied_configs.ex | 57 + ...scan_event_data_quality_applied_configs.ex | 54 + ..._v1_data_scan_event_data_quality_result.ex | 11 +- ...ata_scan_event_post_scan_actions_result.ex | 56 + ..._actions_result_big_query_export_result.ex | 56 + ...ud_dataplex_v1_data_scan_execution_spec.ex | 4 +- ..._dataplex_v1_data_scan_execution_status.ex | 54 + .../google_cloud_dataplex_v1_data_scan_job.ex | 4 +- .../google_cloud_dataplex_v1_data_source.ex | 7 +- .../google_cloud_dataplex_v1_data_taxonomy.ex | 73 + .../model/google_cloud_dataplex_v1_entity.ex | 8 +- ...cloud_dataplex_v1_environment_endpoints.ex | 2 +- ...ud_dataplex_v1_environment_session_spec.ex | 2 +- ..._dataplex_v1_environment_session_status.ex | 2 +- ...ogle_cloud_dataplex_v1_governance_event.ex | 53 + ...oud_dataplex_v1_governance_event_entity.ex | 51 + .../v1/model/google_cloud_dataplex_v1_job.ex | 10 + .../google_cloud_dataplex_v1_job_event.ex | 3 + ...1_list_data_attribute_bindings_response.ex | 62 + ...taplex_v1_list_data_attributes_response.ex | 62 + ...ataplex_v1_list_data_scan_jobs_response.ex | 2 +- ...ud_dataplex_v1_list_data_scans_response.ex | 2 +- ...taplex_v1_list_data_taxonomies_response.ex | 62 + ..._cloud_dataplex_v1_resource_access_spec.ex | 52 + ...loud_dataplex_v1_run_data_scan_response.ex | 2 +- ...ogle_cloud_dataplex_v1_run_task_request.ex | 49 + ...gle_cloud_dataplex_v1_run_task_response.ex | 46 + ...aplex_v1_scanned_data_incremental_field.ex | 6 +- .../model/google_cloud_dataplex_v1_session.ex | 2 +- ...google_cloud_dataplex_v1_storage_access.ex | 46 + ...google_cloud_dataplex_v1_storage_format.ex | 6 + ...aplex_v1_storage_format_iceberg_options.ex | 51 + ...gle_cloud_dataplex_v1_task_trigger_spec.ex | 2 +- .../model/google_cloud_dataplex_v1_trigger.ex | 2 +- ...gle_cloud_dataplex_v1_trigger_on_demand.ex | 2 +- ...ogle_cloud_dataplex_v1_trigger_schedule.ex | 2 +- ...e_cloud_dataplex_v1_zone_discovery_spec.ex | 2 +- .../model/google_cloud_location_location.ex | 2 +- .../v1/model/google_iam_v1_binding.ex | 4 +- .../v1/model/google_longrunning_operation.ex | 2 +- clients/dataplex/mix.exs | 2 +- 90 files changed, 4637 insertions(+), 240 deletions(-) create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_access_spec.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute_binding.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute_binding_path.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_post_scan_actions_result.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_post_scan_actions_result_big_query_export_result.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_post_scan_actions.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_post_scan_actions_big_query_export.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_selected_fields.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_column_result.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_dimension.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result_post_scan_actions_result.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result_post_scan_actions_result_big_query_export_result.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_scan_rule_result.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_big_query_export.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_job_end_trigger.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_job_failure_trigger.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_notification_report.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_recipients.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_score_threshold_trigger.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_profile_applied_configs.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_quality_applied_configs.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_post_scan_actions_result.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_post_scan_actions_result_big_query_export_result.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_execution_status.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_taxonomy.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_governance_event.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_governance_event_entity.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_attribute_bindings_response.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_attributes_response.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_taxonomies_response.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_resource_access_spec.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_task_request.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_task_response.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_access.ex create mode 100644 clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_format_iceberg_options.ex diff --git a/clients/dataplex/README.md b/clients/dataplex/README.md index d45c7132ce..647e723263 100644 --- a/clients/dataplex/README.md +++ b/clients/dataplex/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_dataplex, "~> 0.7"}] + [{:google_api_dataplex, "~> 0.8"}] end ``` diff --git a/clients/dataplex/lib/google_api/dataplex/v1/api/projects.ex b/clients/dataplex/lib/google_api/dataplex/v1/api/projects.ex index 329b8342d4..f1be154ac2 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/api/projects.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/api/projects.ex @@ -179,6 +179,448 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do ## Returns + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_aspect_types_get_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_aspect_types_get_iam_policy( + connection, + resource, + 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, + :"options.requestedPolicyVersion" => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+resource}:getIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1Policy{}]) + end + + @doc """ + Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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.Dataplex.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_aspect_types_set_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_aspect_types_set_iam_policy( + connection, + resource, + 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/{+resource}:setIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1Policy{}]) + end + + @doc """ + Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_aspect_types_test_iam_permissions( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_aspect_types_test_iam_permissions( + connection, + resource, + 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/{+resource}:testIamPermissions", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}] + ) + end + + @doc """ + Create a DataAttributeBinding resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:dataAttributeBindingId` (*type:* `String.t`) - Required. DataAttributeBinding identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the Location. + * `:validateOnly` (*type:* `boolean()`) - Optional. Only validate the request, but do not perform mutations. The default is false. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_attribute_bindings_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_attribute_bindings_create( + connection, + parent, + 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, + :dataAttributeBindingId => :query, + :validateOnly => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/dataAttributeBindings", %{ + "parent" => URI.encode(parent, &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.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Deletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the DataAttributeBinding: projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:etag` (*type:* `String.t`) - Required. If the client provided etag value does not match the current etag value, the DeleteDataAttributeBindingRequest method returns an ABORTED error response. Etags must be used when calling the DeleteDataAttributeBinding. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_attribute_bindings_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_attribute_bindings_delete( + connection, + name, + 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, + :etag => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Retrieves a DataAttributeBinding resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the DataAttributeBinding: projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_attribute_bindings_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_attribute_bindings_get( + connection, + name, + 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/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding{}] + ) + end + + @doc """ + Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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"). + * `:"options.requestedPolicyVersion"` (*type:* `integer()`) - Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ @@ -188,13 +630,1600 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do keyword(), keyword() ) :: - {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_attribute_bindings_get_iam_policy( + connection, + resource, + 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, + :"options.requestedPolicyVersion" => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+resource}:getIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1Policy{}]) + end + + @doc """ + Lists DataAttributeBinding resources in a project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the Location: projects/{project_number}/locations/{location_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. Filter request. Filter using resource: filter=resource:"resource-name" Filter using attribute: filter=attributes:"attribute-name" Filter using attribute in paths list: filter=paths.attributes:"attribute-name" + * `:orderBy` (*type:* `String.t`) - Optional. Order by fields for the result. + * `:pageSize` (*type:* `integer()`) - Optional. Maximum number of DataAttributeBindings to return. The service may return fewer than this value. If unspecified, at most 10 DataAttributeBindings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - Optional. Page token received from a previous ListDataAttributeBindings call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataAttributeBindings must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributeBindingsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_attribute_bindings_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributeBindingsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_attribute_bindings_list( + connection, + parent, + 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, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/dataAttributeBindings", %{ + "parent" => URI.encode(parent, &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.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributeBindingsResponse{} + ] + ) + end + + @doc """ + Updates a DataAttributeBinding resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Output only. The relative resource name of the Data Attribute Binding, of the form: projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Required. Mask of fields to update. + * `:validateOnly` (*type:* `boolean()`) - Optional. Only validate the request, but do not perform mutations. The default is false. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_attribute_bindings_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_attribute_bindings_patch( + connection, + name, + 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, + :updateMask => :query, + :validateOnly => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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.Dataplex.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_attribute_bindings_set_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_attribute_bindings_set_iam_policy( + connection, + resource, + 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/{+resource}:setIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1Policy{}]) + end + + @doc """ + Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_attribute_bindings_test_iam_permissions( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_attribute_bindings_test_iam_permissions( + connection, + resource, + 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/{+resource}:testIamPermissions", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}] + ) + end + + @doc """ + Creates a DataScan resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the parent location: projects/{project}/locations/{location_id} where project refers to a project_id or project_number and location_id refers to a GCP region. + * `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"). + * `:dataScanId` (*type:* `String.t`) - Required. DataScan identifier. Must contain only lowercase letters, numbers and hyphens. Must start with a letter. Must end with a number or a letter. Must be between 1-63 characters. Must be unique within the customer project / location. + * `:validateOnly` (*type:* `boolean()`) - Optional. Only validate the request, but do not perform mutations. The default is false. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_create( + connection, + parent, + 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, + :dataScanId => :query, + :validateOnly => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/dataScans", %{ + "parent" => URI.encode(parent, &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.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Deletes a DataScan resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the dataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where project refers to a project_id or project_number and location_id refers to a GCP region. + * `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.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_delete( + connection, + name, + 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/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Gets a DataScan resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the dataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where project refers to a project_id or project_number and location_id refers to a GCP region. + * `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"). + * `:view` (*type:* `String.t`) - Optional. Select the DataScan view to return. Defaults to BASIC. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_get( + connection, + name, + 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, + :view => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan{}] + ) + end + + @doc """ + Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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"). + * `:"options.requestedPolicyVersion"` (*type:* `integer()`) - Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_get_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_get_iam_policy( + connection, + resource, + 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, + :"options.requestedPolicyVersion" => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+resource}:getIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1Policy{}]) + end + + @doc """ + Lists DataScans. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the parent location: projects/{project}/locations/{location_id} where project refers to a project_id or project_number and location_id refers to a GCP region. + * `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`) - Optional. Filter request. + * `:orderBy` (*type:* `String.t`) - Optional. Order by fields (name or create_time) for the result. If not specified, the ordering is undefined. + * `:pageSize` (*type:* `integer()`) - Optional. Maximum number of dataScans to return. The service may return fewer than this value. If unspecified, at most 500 scans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - Optional. Page token received from a previous ListDataScans call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataScans must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScansResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScansResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_list( + connection, + parent, + 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, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/dataScans", %{ + "parent" => URI.encode(parent, &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.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScansResponse{}] + ) + end + + @doc """ + Updates a DataScan resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a GCP region. + * `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"). + * `:updateMask` (*type:* `String.t`) - Required. Mask of fields to update. + * `:validateOnly` (*type:* `boolean()`) - Optional. Only validate the request, but do not perform mutations. The default is false. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_patch( + connection, + name, + 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, + :updateMask => :query, + :validateOnly => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Runs an on-demand execution of a DataScan + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the DataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. where project refers to a project_id or project_number and location_id refers to a GCP region.Only OnDemand data scans are allowed. + * `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.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_run( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_run( + connection, + name, + 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/{+name}:run", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanResponse{}] + ) + end + + @doc """ + Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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.Dataplex.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_set_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_set_iam_policy( + connection, + resource, + 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/{+resource}:setIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1Policy{}]) + end + + @doc """ + Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_test_iam_permissions( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_test_iam_permissions( + connection, + resource, + 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/{+resource}:testIamPermissions", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}] + ) + end + + @doc """ + Gets a DataScanJob resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the DataScanJob: projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id} where project refers to a project_id or project_number and location_id refers to a GCP region. + * `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"). + * `:view` (*type:* `String.t`) - Optional. Select the DataScanJob view to return. Defaults to BASIC. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_jobs_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_jobs_get( + connection, + name, + 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, + :view => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob{}] + ) + end + + @doc """ + Lists DataScanJobs under the given DataScan. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the parent environment: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where project refers to a project_id or project_number and location_id refers to a GCP region. + * `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`) - Optional. An expression for filtering the results of the ListDataScanJobs request.If unspecified, all datascan jobs will be returned. Multiple filters can be applied (with AND, OR logical operators). Filters are case-sensitive.Allowed fields are: start_time end_timestart_time and end_time expect RFC-3339 formatted strings (e.g. 2018-10-08T18:30:00-07:00).For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between specified start and end times. + * `:pageSize` (*type:* `integer()`) - Optional. Maximum number of DataScanJobs to return. The service may return fewer than this value. If unspecified, at most 10 DataScanJobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - Optional. Page token received from a previous ListDataScanJobs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataScanJobs must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScanJobsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_scans_jobs_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScanJobsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_scans_jobs_list( + connection, + parent, + 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/{+parent}/jobs", %{ + "parent" => URI.encode(parent, &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.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScanJobsResponse{}] + ) + end + + @doc """ + Create a DataTaxonomy resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the data taxonomy location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region. + * `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"). + * `:dataTaxonomyId` (*type:* `String.t`) - Required. DataTaxonomy identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the Project. + * `:validateOnly` (*type:* `boolean()`) - Optional. Only validate the request, but do not perform mutations. The default is false. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_taxonomies_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_taxonomies_create( + connection, + parent, + 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, + :dataTaxonomyId => :query, + :validateOnly => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/dataTaxonomies", %{ + "parent" => URI.encode(parent, &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.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:etag` (*type:* `String.t`) - Optional. If the client provided etag value does not match the current etag value,the DeleteDataTaxonomy method returns an ABORTED error. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_taxonomies_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_taxonomies_delete( + connection, + name, + 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, + :etag => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) + end + + @doc """ + Retrieves a DataTaxonomy resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_taxonomies_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_taxonomies_get( + connection, + name, + 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/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy{}] + ) + end + + @doc """ + Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `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"). + * `:"options.requestedPolicyVersion"` (*type:* `integer()`) - Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_taxonomies_get_iam_policy( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_taxonomies_get_iam_policy( + connection, + resource, + 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, + :"options.requestedPolicyVersion" => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+resource}:getIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleIamV1Policy{}]) + end + + @doc """ + Lists DataTaxonomy resources in a project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The resource name of the DataTaxonomy location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region. + * `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`) - Optional. Filter request. + * `:orderBy` (*type:* `String.t`) - Optional. Order by fields for the result. + * `:pageSize` (*type:* `integer()`) - Optional. Maximum number of DataTaxonomies to return. The service may return fewer than this value. If unspecified, at most 10 DataTaxonomies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - Optional. Page token received from a previous ListDataTaxonomies call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataTaxonomies must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataTaxonomiesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_taxonomies_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataTaxonomiesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_data_taxonomies_list( + connection, + parent, + 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, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/dataTaxonomies", %{ + "parent" => URI.encode(parent, &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.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataTaxonomiesResponse{}] + ) + end + + @doc """ + Updates a DataTaxonomy resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Output only. The relative resource name of the DataTaxonomy, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Required. Mask of fields to update. + * `:validateOnly` (*type:* `boolean()`) - Optional. Only validate the request, but do not perform mutations. The default is false. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_data_taxonomies_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_attribute_bindings_get_iam_policy( + def dataplex_projects_locations_data_taxonomies_patch( connection, - resource, + name, optional_params \\ [], opts \\ [] ) do @@ -210,21 +2239,25 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :"options.requestedPolicyVersion" => :query + :updateMask => :query, + :validateOnly => :query, + :body => :body } request = Request.new() - |> Request.method(:get) - |> Request.url("/v1/{+resource}:getIamPolicy", %{ - "resource" => URI.encode(resource, &URI.char_unreserved?/1) + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleIamV1Policy{}]) + |> Response.decode( + opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}] + ) end @doc """ @@ -254,7 +2287,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_attribute_bindings_set_iam_policy( + @spec dataplex_projects_locations_data_taxonomies_set_iam_policy( Tesla.Env.client(), String.t(), keyword(), @@ -264,7 +2297,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_attribute_bindings_set_iam_policy( + def dataplex_projects_locations_data_taxonomies_set_iam_policy( connection, resource, optional_params \\ [], @@ -326,7 +2359,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_attribute_bindings_test_iam_permissions( + @spec dataplex_projects_locations_data_taxonomies_test_iam_permissions( Tesla.Env.client(), String.t(), keyword(), @@ -336,7 +2369,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_attribute_bindings_test_iam_permissions( + def dataplex_projects_locations_data_taxonomies_test_iam_permissions( connection, resource, optional_params \\ [], @@ -374,12 +2407,12 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do end @doc """ - Creates a dataScan resource. + Create a DataAttribute resource. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The resource name of the parent location: projects/{project}/locations/{location_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `parent` (*type:* `String.t`) - Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -392,8 +2425,9 @@ defmodule GoogleApi.Dataplex.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"). - * `:dataScanId` (*type:* `String.t`) - Required. DataScan identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must end with a number or a letter. * Must be between 1-63 characters. * Must be unique within the customer project / location. - * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan.t`) - + * `:dataAttributeId` (*type:* `String.t`) - Required. DataAttribute identifier. * Must contain only lowercase letters, numbers and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the DataTaxonomy. + * `:validateOnly` (*type:* `boolean()`) - Optional. Only validate the request, but do not perform mutations. The default is false. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -401,7 +2435,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_create( + @spec dataplex_projects_locations_data_taxonomies_attributes_create( Tesla.Env.client(), String.t(), keyword(), @@ -411,7 +2445,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_create( + def dataplex_projects_locations_data_taxonomies_attributes_create( connection, parent, optional_params \\ [], @@ -429,14 +2463,15 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :dataScanId => :query, + :dataAttributeId => :query, + :validateOnly => :query, :body => :body } request = Request.new() |> Request.method(:post) - |> Request.url("/v1/{+parent}/dataScans", %{ + |> Request.url("/v1/{+parent}/attributes", %{ "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -450,12 +2485,12 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do end @doc """ - Delete the dataScan resource. + Deletes a Data Attribute resource. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The resource name of the dataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `name` (*type:* `String.t`) - Required. The resource name of the DataAttribute: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -468,6 +2503,7 @@ defmodule GoogleApi.Dataplex.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"). + * `:etag` (*type:* `String.t`) - Optional. If the client provided etag value does not match the current etag value, the DeleteDataAttribute method returns an ABORTED error response. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -475,7 +2511,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_delete( + @spec dataplex_projects_locations_data_taxonomies_attributes_delete( Tesla.Env.client(), String.t(), keyword(), @@ -485,7 +2521,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_delete( + def dataplex_projects_locations_data_taxonomies_attributes_delete( connection, name, optional_params \\ [], @@ -502,7 +2538,8 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :etag => :query } request = @@ -522,12 +2559,12 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do end @doc """ - Get dataScan resource. + Retrieves a Data Attribute resource. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The resource name of the dataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `name` (*type:* `String.t`) - Required. The resource name of the dataAttribute: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -540,25 +2577,24 @@ defmodule GoogleApi.Dataplex.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"). - * `:view` (*type:* `String.t`) - Optional. Used to select the subset of DataScan information to return. Defaults to BASIC. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan{}}` on success + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_get( + @spec dataplex_projects_locations_data_taxonomies_attributes_get( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan.t()} + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_get( + def dataplex_projects_locations_data_taxonomies_attributes_get( connection, name, optional_params \\ [], @@ -575,8 +2611,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query, - :view => :query + :upload_protocol => :query } request = @@ -591,7 +2626,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan{}] + opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute{}] ) end @@ -622,7 +2657,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_get_iam_policy( + @spec dataplex_projects_locations_data_taxonomies_attributes_get_iam_policy( Tesla.Env.client(), String.t(), keyword(), @@ -632,7 +2667,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_get_iam_policy( + def dataplex_projects_locations_data_taxonomies_attributes_get_iam_policy( connection, resource, optional_params \\ [], @@ -668,12 +2703,12 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do end @doc """ - Lists dataScans. + Lists Data Attribute resources in a DataTaxonomy. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. projects/{project}/locations/{location_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `parent` (*type:* `String.t`) - Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -687,27 +2722,27 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `: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`) - Optional. Filter request. - * `:orderBy` (*type:* `String.t`) - Optional. Order by fields (name or create_time) for the result. If not specified, the ordering is undefined. - * `:pageSize` (*type:* `integer()`) - Optional. Maximum number of dataScans to return. The service may return fewer than this value. If unspecified, at most 10 scans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. - * `:pageToken` (*type:* `String.t`) - Optional. Page token received from a previous ListDataScans call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataScans must match the call that provided the page token. + * `:orderBy` (*type:* `String.t`) - Optional. Order by fields for the result. + * `:pageSize` (*type:* `integer()`) - Optional. Maximum number of DataAttributes to return. The service may return fewer than this value. If unspecified, at most 10 dataAttributes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - Optional. Page token received from a previous ListDataAttributes call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataAttributes must match the call that provided the page token. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScansResponse{}}` on success + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributesResponse{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_list( + @spec dataplex_projects_locations_data_taxonomies_attributes_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScansResponse.t()} + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributesResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_list( + def dataplex_projects_locations_data_taxonomies_attributes_list( connection, parent, optional_params \\ [], @@ -734,7 +2769,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do request = Request.new() |> Request.method(:get) - |> Request.url("/v1/{+parent}/dataScans", %{ + |> Request.url("/v1/{+parent}/attributes", %{ "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -743,17 +2778,18 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScansResponse{}] + opts ++ + [struct: %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributesResponse{}] ) end @doc """ - Update the dataScan resource. + Updates a DataAttribute resource. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `name` (*type:* `String.t`) - Output only. The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -767,7 +2803,8 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `: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"). * `:updateMask` (*type:* `String.t`) - Required. Mask of fields to update. - * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan.t`) - + * `:validateOnly` (*type:* `boolean()`) - Optional. Only validate the request, but do not perform mutations. The default is false. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -775,7 +2812,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_patch( + @spec dataplex_projects_locations_data_taxonomies_attributes_patch( Tesla.Env.client(), String.t(), keyword(), @@ -785,7 +2822,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_patch( + def dataplex_projects_locations_data_taxonomies_attributes_patch( connection, name, optional_params \\ [], @@ -804,6 +2841,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do :uploadType => :query, :upload_protocol => :query, :updateMask => :query, + :validateOnly => :query, :body => :body } @@ -824,12 +2862,12 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do end @doc """ - Run an on demand execution of a DataScan. + Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The resource name of the DataScan: projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region. Only on-demand DataScans are allowed. + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -842,27 +2880,27 @@ defmodule GoogleApi.Dataplex.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"). - * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanRequest.t`) - + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanResponse{}}` on success + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_run( + @spec dataplex_projects_locations_data_taxonomies_attributes_set_iam_policy( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanResponse.t()} + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_run( + def dataplex_projects_locations_data_taxonomies_attributes_set_iam_policy( connection, - name, + resource, optional_params \\ [], opts \\ [] ) do @@ -884,26 +2922,24 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do request = Request.new() |> Request.method(:post) - |> Request.url("/v1/{+name}:run", %{ - "name" => URI.encode(name, &URI.char_unreserved?/1) + |> Request.url("/v1/{+resource}:setIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanResponse{}] - ) + |> Response.decode(opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}]) end @doc """ - Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. + Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -916,25 +2952,25 @@ defmodule GoogleApi.Dataplex.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"). - * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) - + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_set_iam_policy( + @spec dataplex_projects_locations_data_taxonomies_attributes_test_iam_permissions( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_set_iam_policy( + def dataplex_projects_locations_data_taxonomies_attributes_test_iam_permissions( connection, resource, optional_params \\ [], @@ -958,7 +2994,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do request = Request.new() |> Request.method(:post) - |> Request.url("/v1/{+resource}:setIamPolicy", %{ + |> Request.url("/v1/{+resource}:testIamPermissions", %{ "resource" => URI.encode(resource, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -966,16 +3002,18 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}]) + |> Response.decode( + opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}] + ) end @doc """ - Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. + Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -988,25 +3026,25 @@ defmodule GoogleApi.Dataplex.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"). - * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsRequest.t`) - + * `:"options.requestedPolicyVersion"` (*type:* `integer()`) - Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_test_iam_permissions( + @spec dataplex_projects_locations_entry_groups_get_iam_policy( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse.t()} + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_test_iam_permissions( + def dataplex_projects_locations_entry_groups_get_iam_policy( connection, resource, optional_params \\ [], @@ -1024,13 +3062,13 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :body => :body + :"options.requestedPolicyVersion" => :query } request = Request.new() - |> Request.method(:post) - |> Request.url("/v1/{+resource}:testIamPermissions", %{ + |> Request.method(:get) + |> Request.url("/v1/{+resource}:getIamPolicy", %{ "resource" => URI.encode(resource, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -1038,18 +3076,16 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do connection |> Connection.execute(request) - |> Response.decode( - opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}] - ) + |> Response.decode(opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}]) end @doc """ - Get DataScanJob resource. + Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The resource name of the DataScanJob: projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1062,27 +3098,27 @@ defmodule GoogleApi.Dataplex.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"). - * `:view` (*type:* `String.t`) - Optional. Used to select the subset of DataScan information to return. Defaults to BASIC. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob{}}` on success + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_jobs_get( + @spec dataplex_projects_locations_entry_groups_set_iam_policy( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob.t()} + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_jobs_get( + def dataplex_projects_locations_entry_groups_set_iam_policy( connection, - name, + resource, optional_params \\ [], opts \\ [] ) do @@ -1098,32 +3134,30 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :view => :query + :body => :body } request = Request.new() - |> Request.method(:get) - |> Request.url("/v1/{+name}", %{ - "name" => URI.encode(name, &URI.char_unreserved?/1) + |> Request.method(:post) + |> Request.url("/v1/{+resource}:setIamPolicy", %{ + "resource" => URI.encode(resource, &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.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob{}] - ) + |> Response.decode(opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}]) end @doc """ - Lists DataScanJobs under the given dataScan. + Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. ## Parameters * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The resource name of the parent environment: projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1136,28 +3170,27 @@ defmodule GoogleApi.Dataplex.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"). - * `:pageSize` (*type:* `integer()`) - Optional. Maximum number of DataScanJobs to return. The service may return fewer than this value. If unspecified, at most 10 DataScanJobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. - * `:pageToken` (*type:* `String.t`) - Optional. Page token received from a previous ListDataScanJobs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListDataScanJobs must match the call that provided the page token. + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScanJobsResponse{}}` on success + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_scans_jobs_list( + @spec dataplex_projects_locations_entry_groups_test_iam_permissions( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScanJobsResponse.t()} + {:ok, GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_scans_jobs_list( + def dataplex_projects_locations_entry_groups_test_iam_permissions( connection, - parent, + resource, optional_params \\ [], opts \\ [] ) do @@ -1173,15 +3206,14 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :pageSize => :query, - :pageToken => :query + :body => :body } request = Request.new() - |> Request.method(:get) - |> Request.url("/v1/{+parent}/jobs", %{ - "parent" => URI.encode(parent, &URI.char_unreserved?/1) + |> Request.method(:post) + |> Request.url("/v1/{+resource}:testIamPermissions", %{ + "resource" => URI.encode(resource, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -1189,8 +3221,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ - [struct: %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScanJobsResponse{}] + opts ++ [struct: %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}] ) end @@ -1221,7 +3252,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_taxonomies_get_iam_policy( + @spec dataplex_projects_locations_entry_types_get_iam_policy( Tesla.Env.client(), String.t(), keyword(), @@ -1231,7 +3262,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_taxonomies_get_iam_policy( + def dataplex_projects_locations_entry_types_get_iam_policy( connection, resource, optional_params \\ [], @@ -1293,7 +3324,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_taxonomies_set_iam_policy( + @spec dataplex_projects_locations_entry_types_set_iam_policy( Tesla.Env.client(), String.t(), keyword(), @@ -1303,7 +3334,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_taxonomies_set_iam_policy( + def dataplex_projects_locations_entry_types_set_iam_policy( connection, resource, optional_params \\ [], @@ -1365,7 +3396,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_taxonomies_test_iam_permissions( + @spec dataplex_projects_locations_entry_types_test_iam_permissions( Tesla.Env.client(), String.t(), keyword(), @@ -1375,7 +3406,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_taxonomies_test_iam_permissions( + def dataplex_projects_locations_entry_types_test_iam_permissions( connection, resource, optional_params \\ [], @@ -1439,7 +3470,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_taxonomies_attributes_get_iam_policy( + @spec dataplex_projects_locations_governance_rules_get_iam_policy( Tesla.Env.client(), String.t(), keyword(), @@ -1449,7 +3480,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_taxonomies_attributes_get_iam_policy( + def dataplex_projects_locations_governance_rules_get_iam_policy( connection, resource, optional_params \\ [], @@ -1511,7 +3542,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1Policy{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_taxonomies_attributes_set_iam_policy( + @spec dataplex_projects_locations_governance_rules_set_iam_policy( Tesla.Env.client(), String.t(), keyword(), @@ -1521,7 +3552,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_taxonomies_attributes_set_iam_policy( + def dataplex_projects_locations_governance_rules_set_iam_policy( connection, resource, optional_params \\ [], @@ -1583,7 +3614,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success * `{:error, info}` on failure """ - @spec dataplex_projects_locations_data_taxonomies_attributes_test_iam_permissions( + @spec dataplex_projects_locations_governance_rules_test_iam_permissions( Tesla.Env.client(), String.t(), keyword(), @@ -1593,7 +3624,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def dataplex_projects_locations_data_taxonomies_attributes_test_iam_permissions( + def dataplex_projects_locations_governance_rules_test_iam_permissions( connection, resource, optional_params \\ [], @@ -4607,6 +6638,80 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do ) end + @doc """ + Run an on demand execution of a Task. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Dataplex.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name of the task: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskResponse{}}` on success + * `{:error, info}` on failure + """ + @spec dataplex_projects_locations_lakes_tasks_run( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def dataplex_projects_locations_lakes_tasks_run( + connection, + name, + 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/{+name}:run", %{ + "name" => URI.encode(name, &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.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskResponse{}] + ) + end + @doc """ Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. @@ -7208,7 +9313,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do end @doc """ - Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id. + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. ## Parameters diff --git a/clients/dataplex/lib/google_api/dataplex/v1/metadata.ex b/clients/dataplex/lib/google_api/dataplex/v1/metadata.ex index cbc68015f8..f4247fa0b8 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/metadata.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Dataplex.V1 do API client metadata for GoogleApi.Dataplex.V1. """ - @discovery_revision "20221113" + @discovery_revision "20240304" def discovery_revision(), do: @discovery_revision end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_discovery_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_discovery_spec.ex index 819982d391..d8622a5f4b 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_discovery_spec.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_discovery_spec.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1AssetDiscoverySpec do * `excludePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names. * `includePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names. * `jsonOptions` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions.t`, *default:* `nil`) - Optional. Configuration for Json data. - * `schedule` (*type:* `String.t`, *default:* `nil`) - Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *". + * `schedule` (*type:* `String.t`, *default:* `nil`) - Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_resource_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_resource_spec.ex index 95b3d56998..75a681454a 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_resource_spec.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_resource_spec.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1AssetResourceSpec do ## Attributes * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id} + * `readAccessMode` (*type:* `String.t`, *default:* `nil`) - Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. * `type` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. Type of resource. """ @@ -29,10 +30,12 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1AssetResourceSpec do @type t :: %__MODULE__{ :name => String.t() | nil, + :readAccessMode => String.t() | nil, :type => String.t() | nil } field(:name) + field(:readAccessMode) field(:type) end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_resource_status.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_resource_status.ex index bce690bda4..d67ef9907c 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_resource_status.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_resource_status.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1AssetResourceStatus d ## Attributes + * `managedAccessIdentity` (*type:* `String.t`, *default:* `nil`) - Output only. Service account associated with the BigQuery Connection. * `message` (*type:* `String.t`, *default:* `nil`) - Additional information about the current state. * `state` (*type:* `String.t`, *default:* `nil`) - The current state of the managed resource. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Last update time of the status. @@ -29,11 +30,13 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1AssetResourceStatus d use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :managedAccessIdentity => String.t() | nil, :message => String.t() | nil, :state => String.t() | nil, :updateTime => DateTime.t() | nil } + field(:managedAccessIdentity) field(:message) field(:state) field(:updateTime, as: DateTime) diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_access_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_access_spec.ex new file mode 100644 index 0000000000..755fd3b801 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_access_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.Dataplex.V1.Model.GoogleCloudDataplexV1DataAccessSpec do + @moduledoc """ + DataAccessSpec holds the access control configuration to be enforced on data stored within resources (eg: rows, columns in BigQuery Tables). When associated with data, the data is only accessible to principals explicitly granted access through the DataAccessSpec. Principals with access to the containing resource are not implicitly granted access. + + ## Attributes + + * `readers` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on data stored within resources. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :readers => list(String.t()) | nil + } + + field(:readers, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAccessSpec do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAccessSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAccessSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute.ex new file mode 100644 index 0000000000..545b282bb0 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute.ex @@ -0,0 +1,85 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute do + @moduledoc """ + Denotes one dataAttribute in a dataTaxonomy, for example, PII. DataAttribute resources can be defined in a hierarchy. A single dataAttribute resource can contain specs of multiple types PII - ResourceAccessSpec : - readers :foo@bar.com - DataAccessSpec : - readers :bar@foo.com + + ## Attributes + + * `attributeCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of child attributes present for this attribute. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the DataAttribute was created. + * `dataAccessSpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAccessSpec.t`, *default:* `nil`) - Optional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables). + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the DataAttribute. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. User friendly display name. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. User-defined labels for the DataAttribute. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. + * `parentId` (*type:* `String.t`, *default:* `nil`) - Optional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4 + * `resourceAccessSpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ResourceAccessSpec.t`, *default:* `nil`) - Optional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table). + * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the DataAttribute was last updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributeCount => integer() | nil, + :createTime => DateTime.t() | nil, + :dataAccessSpec => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAccessSpec.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :etag => String.t() | nil, + :labels => map() | nil, + :name => String.t() | nil, + :parentId => String.t() | nil, + :resourceAccessSpec => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ResourceAccessSpec.t() | nil, + :uid => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:attributeCount) + field(:createTime, as: DateTime) + field(:dataAccessSpec, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAccessSpec) + field(:description) + field(:displayName) + field(:etag) + field(:labels, type: :map) + field(:name) + field(:parentId) + + field(:resourceAccessSpec, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ResourceAccessSpec + ) + + field(:uid) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute_binding.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute_binding.ex new file mode 100644 index 0000000000..6cf37e0dfb --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute_binding.ex @@ -0,0 +1,83 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding do + @moduledoc """ + DataAttributeBinding represents binding of attributes to resources. Eg: Bind 'CustomerInfo' entity with 'PII' attribute. + + ## Attributes + + * `attributes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. List of attributes to be associated with the resource, provided in the form: projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the DataAttributeBinding was created. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the DataAttributeBinding. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. User friendly display name. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. Etags must be used when calling the DeleteDataAttributeBinding and the UpdateDataAttributeBinding method. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. User-defined labels for the DataAttributeBinding. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the Data Attribute Binding, of the form: projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} + * `paths` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBindingPath.t)`, *default:* `nil`) - Optional. The list of paths for items within the associated resource (eg. columns and partitions within a table) along with attribute bindings. + * `resource` (*type:* `String.t`, *default:* `nil`) - Optional. Immutable. The resource name of the resource that is associated to attributes. Presently, only entity resource is supported in the form: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id} Must belong in the same project and region as the attribute binding, and there can only exist one active binding for a resource. + * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System generated globally unique ID for the DataAttributeBinding. This ID will be different if the DataAttributeBinding is deleted and re-created with the same name. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the DataAttributeBinding was last updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributes => list(String.t()) | nil, + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :etag => String.t() | nil, + :labels => map() | nil, + :name => String.t() | nil, + :paths => + list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBindingPath.t()) + | nil, + :resource => String.t() | nil, + :uid => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:attributes, type: :list) + field(:createTime, as: DateTime) + field(:description) + field(:displayName) + field(:etag) + field(:labels, type: :map) + field(:name) + + field(:paths, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBindingPath, + type: :list + ) + + field(:resource) + field(:uid) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute_binding_path.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute_binding_path.ex new file mode 100644 index 0000000000..290f406330 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_attribute_binding_path.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBindingPath do + @moduledoc """ + Represents a subresource of the given resource, and associated bindings with it. Currently supported subresources are column and partition schema fields within a table. + + ## Attributes + + * `attributes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. List of attributes to be associated with the path of the resource, provided in the form: projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name identifier of the path. Nested columns should be of the form: 'address.city'. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributes => list(String.t()) | nil, + :name => String.t() | nil + } + + field(:attributes, type: :list) + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBindingPath do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBindingPath.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBindingPath do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result.ex index 66347fc864..261db67a98 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result.ex @@ -21,20 +21,28 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResult do ## Attributes - * `profile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfile.t`, *default:* `nil`) - This represents the profile information per field. - * `rowCount` (*type:* `String.t`, *default:* `nil`) - The count of all rows in the sampled data. Return 0, if zero rows. - * `scannedData` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedData.t`, *default:* `nil`) - The data scanned for this profile. + * `postScanActionsResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResult.t`, *default:* `nil`) - Output only. The result of post scan actions. + * `profile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfile.t`, *default:* `nil`) - The profile information per field. + * `rowCount` (*type:* `String.t`, *default:* `nil`) - The count of rows scanned. + * `scannedData` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedData.t`, *default:* `nil`) - The data scanned for this result. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :postScanActionsResult => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResult.t() + | nil, :profile => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfile.t() | nil, :rowCount => String.t() | nil, :scannedData => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedData.t() | nil } + field(:postScanActionsResult, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResult + ) + field(:profile, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfile) field(:rowCount) field(:scannedData, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedData) diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_post_scan_actions_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_post_scan_actions_result.ex new file mode 100644 index 0000000000..e8ee715959 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_post_scan_actions_result.ex @@ -0,0 +1,56 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResult do + @moduledoc """ + The result of post scan actions of DataProfileScan job. + + ## Attributes + + * `bigqueryExportResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult.t`, *default:* `nil`) - Output only. The result of BigQuery export post scan action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bigqueryExportResult => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult.t() + | nil + } + + field(:bigqueryExportResult, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResult do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_post_scan_actions_result_big_query_export_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_post_scan_actions_result_big_query_export_result.ex new file mode 100644 index 0000000000..5ef89f5b19 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_post_scan_actions_result_big_query_export_result.ex @@ -0,0 +1,56 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult do + @moduledoc """ + The result of BigQuery export post scan action. + + ## Attributes + + * `message` (*type:* `String.t`, *default:* `nil`) - Output only. Additional information about the BigQuery exporting. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Execution state for the BigQuery exporting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => String.t() | nil, + :state => String.t() | nil + } + + field(:message) + field(:state) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile.ex index efac3013ad..1bd5a6bc82 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfile do @moduledoc """ - Profile information describing the structure and layout of the data and contains the profile info. + Contains name, type, mode and field type specific profile information. ## Attributes - * `fields` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileField.t)`, *default:* `nil`) - The sequence of fields describing data in table entities. + * `fields` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileField.t)`, *default:* `nil`) - List of fields with structural and profile information for each field. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field.ex index 3dfca79310..5818b05d74 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field.ex @@ -17,14 +17,14 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileField do @moduledoc """ - Represents a column field within a table schema. + A field within a table. ## Attributes - * `mode` (*type:* `String.t`, *default:* `nil`) - The mode of the field. Its value will be: REQUIRED, if it is a required field. NULLABLE, if it is an optional field. REPEATED, if it is a repeated field. + * `mode` (*type:* `String.t`, *default:* `nil`) - The mode of the field. Possible values include: REQUIRED, if it is a required field. NULLABLE, if it is an optional field. REPEATED, if it is a repeated field. * `name` (*type:* `String.t`, *default:* `nil`) - The name of the field. - * `profile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo.t`, *default:* `nil`) - The profile information for the corresponding field. - * `type` (*type:* `String.t`, *default:* `nil`) - The field data type. Possible values include: STRING BYTE INT64 INT32 INT16 DOUBLE FLOAT DECIMAL BOOLEAN BINARY TIMESTAMP DATE TIME NULL RECORD + * `profile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo.t`, *default:* `nil`) - Profile information for the corresponding field. + * `type` (*type:* `String.t`, *default:* `nil`) - The data type retrieved from the schema of the data source. For instance, for a BigQuery native table, it is the BigQuery Table Schema (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). For a Dataplex Entity, it is the Entity Schema (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info.ex index 2611203db4..f0bdadca7d 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info.ex @@ -17,16 +17,16 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo do @moduledoc """ - ProfileInfo defines the profile information for each schema field type. + The profile information for each field type. ## Attributes - * `distinctRatio` (*type:* `float()`, *default:* `nil`) - The ratio of rows that are distinct against the rows in the sampled data. - * `doubleProfile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo.t`, *default:* `nil`) - The corresponding double field profile. - * `integerProfile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo.t`, *default:* `nil`) - The corresponding integer field profile. - * `nullRatio` (*type:* `float()`, *default:* `nil`) - The ratio of null rows against the rows in the sampled data. - * `stringProfile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo.t`, *default:* `nil`) - The corresponding string field profile. - * `topNValues` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue.t)`, *default:* `nil`) - The array of top N values of the field in the sampled data. Currently N is set as 10 or equal to distinct values in the field, whichever is smaller. This will be optional for complex non-groupable data-types such as JSON, ARRAY, JSON, STRUCT. + * `distinctRatio` (*type:* `float()`, *default:* `nil`) - Ratio of rows with distinct values against total scanned rows. Not available for complex non-groupable field type RECORD and fields with REPEATABLE mode. + * `doubleProfile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo.t`, *default:* `nil`) - Double type field information. + * `integerProfile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo.t`, *default:* `nil`) - Integer type field information. + * `nullRatio` (*type:* `float()`, *default:* `nil`) - Ratio of rows with null value against total scanned rows. + * `stringProfile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo.t`, *default:* `nil`) - String type field information. + * `topNValues` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue.t)`, *default:* `nil`) - The list of top N non-null values, frequency and ratio with which they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is smaller. Not available for complex non-groupable field type RECORD and fields with REPEATABLE mode. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_double_field_info.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_double_field_info.ex index e30ec8f9ba..cd69084345 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_double_field_info.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_double_field_info.ex @@ -17,15 +17,15 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo do @moduledoc """ - DoubleFieldInfo defines output for any double type field. + The profile information for a double type field. ## Attributes - * `average` (*type:* `float()`, *default:* `nil`) - The average of non-null values of double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. - * `max` (*type:* `float()`, *default:* `nil`) - The maximum value of a double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. - * `min` (*type:* `float()`, *default:* `nil`) - The minimum value of a double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. - * `quartiles` (*type:* `list(float())`, *default:* `nil`) - A quartile divide the numebr of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. So, here the quartiles is provided as an ordered list of quartile values, occurring in order Q1, median, Q3. - * `standardDeviation` (*type:* `float()`, *default:* `nil`) - The standard deviation of non-null of double field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. + * `average` (*type:* `float()`, *default:* `nil`) - Average of non-null values in the scanned data. NaN, if the field has a NaN. + * `max` (*type:* `float()`, *default:* `nil`) - Maximum of non-null values in the scanned data. NaN, if the field has a NaN. + * `min` (*type:* `float()`, *default:* `nil`) - Minimum of non-null values in the scanned data. NaN, if the field has a NaN. + * `quartiles` (*type:* `list(float())`, *default:* `nil`) - A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of quartile values for the scanned data, occurring in order Q1, median, Q3. + * `standardDeviation` (*type:* `float()`, *default:* `nil`) - Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_integer_field_info.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_integer_field_info.ex index aa46025a52..901a85cf19 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_integer_field_info.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_integer_field_info.ex @@ -17,15 +17,15 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo do @moduledoc """ - IntegerFieldInfo defines output for any integer type field. + The profile information for an integer type field. ## Attributes - * `average` (*type:* `float()`, *default:* `nil`) - The average of non-null values of integer field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. - * `max` (*type:* `String.t`, *default:* `nil`) - The maximum value of an integer field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. - * `min` (*type:* `String.t`, *default:* `nil`) - The minimum value of an integer field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. - * `quartiles` (*type:* `list(String.t)`, *default:* `nil`) - A quartile divide the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. So, here the quartiles is provided as an ordered list of quartile values, occurring in order Q1, median, Q3. - * `standardDeviation` (*type:* `float()`, *default:* `nil`) - The standard deviation of non-null of integer field in the sampled data. Return NaN, if the field has a NaN. Optional if zero non-null rows. + * `average` (*type:* `float()`, *default:* `nil`) - Average of non-null values in the scanned data. NaN, if the field has a NaN. + * `max` (*type:* `String.t`, *default:* `nil`) - Maximum of non-null values in the scanned data. NaN, if the field has a NaN. + * `min` (*type:* `String.t`, *default:* `nil`) - Minimum of non-null values in the scanned data. NaN, if the field has a NaN. + * `quartiles` (*type:* `list(String.t)`, *default:* `nil`) - A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of approximate quartile values for the scanned data, occurring in order Q1, median, Q3. + * `standardDeviation` (*type:* `float()`, *default:* `nil`) - Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_string_field_info.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_string_field_info.ex index a4f656dc8b..5c1fc34982 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_string_field_info.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_string_field_info.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo do @moduledoc """ - StringFieldInfo defines output info for any string type field. + The profile information for a string type field. ## Attributes - * `averageLength` (*type:* `float()`, *default:* `nil`) - The average length of a string field in the sampled data. Optional if zero non-null rows. - * `maxLength` (*type:* `String.t`, *default:* `nil`) - The maximum length of a string field in the sampled data. Optional if zero non-null rows. - * `minLength` (*type:* `String.t`, *default:* `nil`) - The minimum length of the string field in the sampled data. Optional if zero non-null rows. + * `averageLength` (*type:* `float()`, *default:* `nil`) - Average length of non-null values in the scanned data. + * `maxLength` (*type:* `String.t`, *default:* `nil`) - Maximum length of non-null values in the scanned data. + * `minLength` (*type:* `String.t`, *default:* `nil`) - Minimum length of non-null values in the scanned data. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_top_n_value.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_top_n_value.ex index 5c6dd28af6..8fb840faf9 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_top_n_value.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_result_profile_field_profile_info_top_n_value.ex @@ -17,22 +17,25 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue do @moduledoc """ - The TopNValue defines the structure of output of top N values of a field. + Top N non-null values in the scanned data. ## Attributes - * `count` (*type:* `String.t`, *default:* `nil`) - The frequency count of the corresponding value in the field. - * `value` (*type:* `String.t`, *default:* `nil`) - The value is the string value of the actual value from the field. + * `count` (*type:* `String.t`, *default:* `nil`) - Count of the corresponding value in the scanned data. + * `ratio` (*type:* `float()`, *default:* `nil`) - Ratio of the corresponding value in the field against the total number of rows in the scanned data. + * `value` (*type:* `String.t`, *default:* `nil`) - String value of a top N non-null value. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :count => String.t() | nil, + :ratio => float() | nil, :value => String.t() | nil } field(:count) + field(:ratio) field(:value) end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec.ex index f55289af99..119af095d8 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec.ex @@ -21,11 +21,43 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpec do ## Attributes + * `excludeFields` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields.t`, *default:* `nil`) - Optional. The fields to exclude from data profile.If specified, the fields will be excluded from data profile, regardless of include_fields value. + * `includeFields` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields.t`, *default:* `nil`) - Optional. The fields to include in data profile.If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields. + * `postScanActions` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActions.t`, *default:* `nil`) - Optional. Actions to take upon job completion.. + * `rowFilter` (*type:* `String.t`, *default:* `nil`) - Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10 + * `samplingPercent` (*type:* `number()`, *default:* `nil`) - Optional. The percentage of the records to be selected from the dataset for DataScan. Value can range between 0.0 and 100.0 with up to 3 significant decimal digits. Sampling is not applied if sampling_percent is not specified, 0 or 100. """ use GoogleApi.Gax.ModelBase - @type t :: %__MODULE__{} + @type t :: %__MODULE__{ + :excludeFields => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields.t() + | nil, + :includeFields => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields.t() + | nil, + :postScanActions => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActions.t() + | nil, + :rowFilter => String.t() | nil, + :samplingPercent => number() | nil + } + + field(:excludeFields, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields + ) + + field(:includeFields, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields + ) + + field(:postScanActions, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActions + ) + + field(:rowFilter) + field(:samplingPercent) end defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpec do diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_post_scan_actions.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_post_scan_actions.ex new file mode 100644 index 0000000000..639d0b847d --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_post_scan_actions.ex @@ -0,0 +1,56 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActions do + @moduledoc """ + The configuration of post scan actions of DataProfileScan job. + + ## Attributes + + * `bigqueryExport` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport.t`, *default:* `nil`) - Optional. If set, results will be exported to the provided BigQuery table. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bigqueryExport => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport.t() + | nil + } + + field(:bigqueryExport, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActions do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_post_scan_actions_big_query_export.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_post_scan_actions_big_query_export.ex new file mode 100644 index 0000000000..98bf063b90 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_post_scan_actions_big_query_export.ex @@ -0,0 +1,53 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport do + @moduledoc """ + The configuration of BigQuery export post scan action. + + ## Attributes + + * `resultsTable` (*type:* `String.t`, *default:* `nil`) - Optional. The BigQuery table to export DataProfileScan results to. Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resultsTable => String.t() | nil + } + + field(:resultsTable) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_selected_fields.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_selected_fields.ex new file mode 100644 index 0000000000..6259ae8961 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_profile_spec_selected_fields.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields do + @moduledoc """ + The specification for fields to include or exclude in data profile scan. + + ## Attributes + + * `fieldNames` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Expected input is a list of fully qualified names of fields as in the schema.Only top-level field names for nested fields are supported. For instance, if 'x' is of nested field type, listing 'x' is supported but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of 'x'. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fieldNames => list(String.t()) | nil + } + + field(:fieldNames, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpecSelectedFields do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_column_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_column_result.ex new file mode 100644 index 0000000000..ef2495aaf9 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_column_result.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityColumnResult do + @moduledoc """ + DataQualityColumnResult provides a more detailed, per-column view of the results. + + ## Attributes + + * `column` (*type:* `String.t`, *default:* `nil`) - Output only. The column specified in the DataQualityRule. + * `score` (*type:* `number()`, *default:* `nil`) - Output only. The column-level data quality score for this data scan job if and only if the 'column' field is set.The score ranges between between 0, 100 (up to two decimal points). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :column => String.t() | nil, + :score => number() | nil + } + + field(:column) + field(:score) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityColumnResult do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityColumnResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityColumnResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_dimension.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_dimension.ex new file mode 100644 index 0000000000..3e38d623ca --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_dimension.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimension do + @moduledoc """ + A dimension captures data quality intent about a defined subset of the rules specified. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The dimension name a rule belongs to. Supported dimensions are "COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil + } + + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimension do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimension.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_dimension_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_dimension_result.ex index 2e2d4f70aa..00681cb1b1 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_dimension_result.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_dimension_result.ex @@ -17,20 +17,27 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimensionResult do @moduledoc """ - DataQualityDimensionResult provides a more detailed, per-dimension level view of the results. + DataQualityDimensionResult provides a more detailed, per-dimension view of the results. ## Attributes + * `dimension` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimension.t`, *default:* `nil`) - Output only. The dimension config specified in the DataQualitySpec, as is. * `passed` (*type:* `boolean()`, *default:* `nil`) - Whether the dimension passed or failed. + * `score` (*type:* `number()`, *default:* `nil`) - Output only. The dimension-level data quality score for this data scan job if and only if the 'dimension' field is set.The score ranges between 0, 100 (up to two decimal points). """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :passed => boolean() | nil + :dimension => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimension.t() | nil, + :passed => boolean() | nil, + :score => number() | nil } + field(:dimension, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimension) field(:passed) + field(:score) end defimpl Poison.Decoder, diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result.ex index 670c1fff7c..2626dd8c11 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result.ex @@ -21,32 +21,52 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResult do ## Attributes - * `dimensions` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimensionResult.t)`, *default:* `nil`) - A list of results at the dimension-level. + * `columns` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityColumnResult.t)`, *default:* `nil`) - Output only. A list of results at the column level.A column will have a corresponding DataQualityColumnResult if and only if there is at least one rule with the 'column' field set to it. + * `dimensions` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimensionResult.t)`, *default:* `nil`) - A list of results at the dimension level.A dimension will have a corresponding DataQualityDimensionResult if and only if there is at least one rule with the 'dimension' field set to it. * `passed` (*type:* `boolean()`, *default:* `nil`) - Overall data quality result -- true if all rules passed. + * `postScanActionsResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResult.t`, *default:* `nil`) - Output only. The result of post scan actions. * `rowCount` (*type:* `String.t`, *default:* `nil`) - The count of rows processed. * `rules` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleResult.t)`, *default:* `nil`) - A list of all the rules in a job, and their results. * `scannedData` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedData.t`, *default:* `nil`) - The data scanned for this result. + * `score` (*type:* `number()`, *default:* `nil`) - Output only. The overall data quality score.The score ranges between 0, 100 (up to two decimal points). """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :columns => + list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityColumnResult.t()) + | nil, :dimensions => list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimensionResult.t()) | nil, :passed => boolean() | nil, + :postScanActionsResult => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResult.t() + | nil, :rowCount => String.t() | nil, :rules => list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleResult.t()) | nil, - :scannedData => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedData.t() | nil + :scannedData => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedData.t() | nil, + :score => number() | nil } + field(:columns, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityColumnResult, + type: :list + ) + field(:dimensions, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityDimensionResult, type: :list ) field(:passed) + + field(:postScanActionsResult, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResult + ) + field(:rowCount) field(:rules, @@ -55,6 +75,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResult do ) field(:scannedData, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedData) + field(:score) end defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResult do diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result_post_scan_actions_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result_post_scan_actions_result.ex new file mode 100644 index 0000000000..e426547974 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result_post_scan_actions_result.ex @@ -0,0 +1,56 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResult do + @moduledoc """ + The result of post scan actions of DataQualityScan job. + + ## Attributes + + * `bigqueryExportResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult.t`, *default:* `nil`) - Output only. The result of BigQuery export post scan action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bigqueryExportResult => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult.t() + | nil + } + + field(:bigqueryExportResult, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResult do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result_post_scan_actions_result_big_query_export_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result_post_scan_actions_result_big_query_export_result.ex new file mode 100644 index 0000000000..6c0930eabf --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_result_post_scan_actions_result_big_query_export_result.ex @@ -0,0 +1,56 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult do + @moduledoc """ + The result of BigQuery export post scan action. + + ## Attributes + + * `message` (*type:* `String.t`, *default:* `nil`) - Output only. Additional information about the BigQuery exporting. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Execution state for the BigQuery exporting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => String.t() | nil, + :state => String.t() | nil + } + + field(:message) + field(:state) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule.ex index f5f9407a3f..ab3ddb3851 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule.ex @@ -22,25 +22,29 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRule do ## Attributes * `column` (*type:* `String.t`, *default:* `nil`) - Optional. The unnested column which this rule is evaluated against. - * `dimension` (*type:* `String.t`, *default:* `nil`) - Required. The dimension a rule belongs to. Results are also aggregated at the dimension-level. Supported dimensions are "COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY" - * `ignoreNull` (*type:* `boolean()`, *default:* `nil`) - Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing. Only applicable to ColumnMap rules. - * `nonNullExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleNonNullExpectation.t`, *default:* `nil`) - ColumnMap rule which evaluates whether each column value is null. - * `rangeExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRangeExpectation.t`, *default:* `nil`) - ColumnMap rule which evaluates whether each column value lies between a specified range. - * `regexExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRegexExpectation.t`, *default:* `nil`) - ColumnMap rule which evaluates whether each column value matches a specified regex. - * `rowConditionExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation.t`, *default:* `nil`) - Table rule which evaluates whether each row passes the specified condition. - * `setExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleSetExpectation.t`, *default:* `nil`) - ColumnMap rule which evaluates whether each column value is contained by a specified set. - * `statisticRangeExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation.t`, *default:* `nil`) - ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range. - * `tableConditionExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation.t`, *default:* `nil`) - Table rule which evaluates whether the provided expression is true. - * `threshold` (*type:* `float()`, *default:* `nil`) - Optional. The minimum ratio of passing_rows / total_rows required to pass this rule. Default = 1.0 - * `uniquenessExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation.t`, *default:* `nil`) - ColumnAggregate rule which evaluates whether the column has duplicates. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the rule. The maximum length is 1,024 characters. + * `dimension` (*type:* `String.t`, *default:* `nil`) - Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are "COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY" + * `ignoreNull` (*type:* `boolean()`, *default:* `nil`) - Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid for the following type of rules: RangeExpectation RegexExpectation SetExpectation UniquenessExpectation + * `name` (*type:* `String.t`, *default:* `nil`) - Optional. A mutable name for the rule. The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum length is 63 characters. Must start with a letter. Must end with a number or a letter. + * `nonNullExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleNonNullExpectation.t`, *default:* `nil`) - Row-level rule which evaluates whether each column value is null. + * `rangeExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRangeExpectation.t`, *default:* `nil`) - Row-level rule which evaluates whether each column value lies between a specified range. + * `regexExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRegexExpectation.t`, *default:* `nil`) - Row-level rule which evaluates whether each column value matches a specified regex. + * `rowConditionExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation.t`, *default:* `nil`) - Row-level rule which evaluates whether each row in a table passes the specified condition. + * `setExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleSetExpectation.t`, *default:* `nil`) - Row-level rule which evaluates whether each column value is contained by a specified set. + * `statisticRangeExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation.t`, *default:* `nil`) - Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range. + * `tableConditionExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation.t`, *default:* `nil`) - Aggregate rule which evaluates whether the provided expression is true for a table. + * `threshold` (*type:* `float()`, *default:* `nil`) - Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for row-level type rules. + * `uniquenessExpectation` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation.t`, *default:* `nil`) - Row-level rule which evaluates whether each column value is unique. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :column => String.t() | nil, + :description => String.t() | nil, :dimension => String.t() | nil, :ignoreNull => boolean() | nil, + :name => String.t() | nil, :nonNullExpectation => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleNonNullExpectation.t() | nil, @@ -69,8 +73,10 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRule do } field(:column) + field(:description) field(:dimension) field(:ignoreNull) + field(:name) field(:nonNullExpectation, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleNonNullExpectation diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_range_expectation.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_range_expectation.ex index 2a4fcbcd29..9f80617614 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_range_expectation.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_range_expectation.ex @@ -23,8 +23,8 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRangeE * `maxValue` (*type:* `String.t`, *default:* `nil`) - Optional. The maximum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided. * `minValue` (*type:* `String.t`, *default:* `nil`) - Optional. The minimum column value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided. - * `strictMaxEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether each value needs to be strictly lesser than ('<') the maximum, or if equality is allowed. Only relevant if a max_value has been defined. Default = false. - * `strictMinEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether each value needs to be strictly greater than ('>') the minimum, or if equality is allowed. Only relevant if a min_value has been defined. Default = false. + * `strictMaxEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether each value needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false. + * `strictMinEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether each value needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_regex_expectation.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_regex_expectation.ex index bf692e053c..d45d0c3be4 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_regex_expectation.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_regex_expectation.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRegexE ## Attributes - * `regex` (*type:* `String.t`, *default:* `nil`) - + * `regex` (*type:* `String.t`, *default:* `nil`) - Optional. A regular expression the column value is expected to match. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_result.ex index 875c3df278..380b22fec2 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_result.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_result.ex @@ -17,16 +17,16 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleResult do @moduledoc """ - DataQualityRuleResult provides a more detailed, per-rule level view of the results. + DataQualityRuleResult provides a more detailed, per-rule view of the results. ## Attributes - * `evaluatedCount` (*type:* `String.t`, *default:* `nil`) - The number of rows a rule was evaluated against. This field is only valid for ColumnMap type rules. Evaluated count can be configured to either (1) include all rows (default) - with null rows automatically failing rule evaluation OR (2) exclude null rows from the evaluated_count, by setting ignore_nulls = true - * `failingRowsQuery` (*type:* `String.t`, *default:* `nil`) - The query to find rows that did not pass this rule. Only applies to ColumnMap and RowCondition rules. + * `evaluatedCount` (*type:* `String.t`, *default:* `nil`) - The number of rows a rule was evaluated against.This field is only valid for row-level type rules.Evaluated count can be configured to either include all rows (default) - with null rows automatically failing rule evaluation, or exclude null rows from the evaluated_count, by setting ignore_nulls = true. + * `failingRowsQuery` (*type:* `String.t`, *default:* `nil`) - The query to find rows that did not pass this rule.This field is only valid for row-level type rules. * `nullCount` (*type:* `String.t`, *default:* `nil`) - The number of rows with null values in the specified column. - * `passRatio` (*type:* `float()`, *default:* `nil`) - The ratio of passed_count / evaluated_count. This field is only valid for ColumnMap type rules. + * `passRatio` (*type:* `float()`, *default:* `nil`) - The ratio of passed_count / evaluated_count.This field is only valid for row-level type rules. * `passed` (*type:* `boolean()`, *default:* `nil`) - Whether the rule passed or failed. - * `passedCount` (*type:* `String.t`, *default:* `nil`) - The number of rows which passed a rule evaluation. This field is only valid for ColumnMap type rules. + * `passedCount` (*type:* `String.t`, *default:* `nil`) - The number of rows which passed a rule evaluation.This field is only valid for row-level type rules. * `rule` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRule.t`, *default:* `nil`) - The rule specified in the DataQualitySpec, as is. """ diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_row_condition_expectation.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_row_condition_expectation.ex index 8aa8caae22..772e547363 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_row_condition_expectation.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_row_condition_expectation.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation do @moduledoc """ - Evaluates whether each row passes the specified condition. The SQL expression needs to use BigQuery standard SQL syntax and should produce a boolean per row as the result. Example: col1 >= 0 AND col2 < 10 + Evaluates whether each row passes the specified condition.The SQL expression needs to use BigQuery standard SQL syntax and should produce a boolean value per row as the result.Example: col1 >= 0 AND col2 < 10 ## Attributes - * `sqlExpression` (*type:* `String.t`, *default:* `nil`) - + * `sqlExpression` (*type:* `String.t`, *default:* `nil`) - Optional. The SQL expression. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_set_expectation.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_set_expectation.ex index 9c46667ec4..bc45328dce 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_set_expectation.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_set_expectation.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleSetExp ## Attributes - * `values` (*type:* `list(String.t)`, *default:* `nil`) - + * `values` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Expected values for the column value. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_statistic_range_expectation.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_statistic_range_expectation.ex index ad7f5ce441..83458b0351 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_statistic_range_expectation.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_statistic_range_expectation.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleStatis ## Attributes - * `maxValue` (*type:* `String.t`, *default:* `nil`) - The maximum column statistic value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided. - * `minValue` (*type:* `String.t`, *default:* `nil`) - The minimum column statistic value allowed for a row to pass this validation. At least one of min_value and max_value need to be provided. - * `statistic` (*type:* `String.t`, *default:* `nil`) - - * `strictMaxEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether column statistic needs to be strictly lesser than ('<') the maximum, or if equality is allowed. Only relevant if a max_value has been defined. Default = false. - * `strictMinEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether column statistic needs to be strictly greater than ('>') the minimum, or if equality is allowed. Only relevant if a min_value has been defined. Default = false. + * `maxValue` (*type:* `String.t`, *default:* `nil`) - Optional. The maximum column statistic value allowed for a row to pass this validation.At least one of min_value and max_value need to be provided. + * `minValue` (*type:* `String.t`, *default:* `nil`) - Optional. The minimum column statistic value allowed for a row to pass this validation.At least one of min_value and max_value need to be provided. + * `statistic` (*type:* `String.t`, *default:* `nil`) - Optional. The aggregate metric to evaluate. + * `strictMaxEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether column statistic needs to be strictly lesser than ('<') the maximum, or if equality is allowed.Only relevant if a max_value has been defined. Default = false. + * `strictMinEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether column statistic needs to be strictly greater than ('>') the minimum, or if equality is allowed.Only relevant if a min_value has been defined. Default = false. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_table_condition_expectation.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_table_condition_expectation.ex index 61ac83f68e..1e39bd60be 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_table_condition_expectation.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_rule_table_condition_expectation.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation do @moduledoc """ - Evaluates whether the provided expression is true. The SQL expression needs to use BigQuery standard SQL syntax and should produce a scalar boolean result. Example: MIN(col1) >= 0 + Evaluates whether the provided expression is true.The SQL expression needs to use BigQuery standard SQL syntax and should produce a scalar boolean result.Example: MIN(col1) >= 0 ## Attributes - * `sqlExpression` (*type:* `String.t`, *default:* `nil`) - + * `sqlExpression` (*type:* `String.t`, *default:* `nil`) - Optional. The SQL expression. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_scan_rule_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_scan_rule_result.ex new file mode 100644 index 0000000000..bddd4630cd --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_scan_rule_result.ex @@ -0,0 +1,84 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityScanRuleResult do + @moduledoc """ + Information about the result of a data quality rule for data quality scan. The monitored resource is 'DataScan'. + + ## Attributes + + * `column` (*type:* `String.t`, *default:* `nil`) - The column which this rule is evaluated against. + * `dataSource` (*type:* `String.t`, *default:* `nil`) - The data source of the data scan (e.g. BigQuery table name). + * `evaluatedRowCount` (*type:* `String.t`, *default:* `nil`) - The number of rows evaluated against the data quality rule. This field is only valid for rules of PER_ROW evaluation type. + * `evalutionType` (*type:* `String.t`, *default:* `nil`) - The evaluation type of the data quality rule. + * `jobId` (*type:* `String.t`, *default:* `nil`) - Identifier of the specific data scan job this log entry is for. + * `nullRowCount` (*type:* `String.t`, *default:* `nil`) - The number of rows with null values in the specified column. + * `passedRowCount` (*type:* `String.t`, *default:* `nil`) - The number of rows which passed a rule evaluation. This field is only valid for rules of PER_ROW evaluation type. + * `result` (*type:* `String.t`, *default:* `nil`) - The result of the data quality rule. + * `ruleDimension` (*type:* `String.t`, *default:* `nil`) - The dimension of the data quality rule. + * `ruleName` (*type:* `String.t`, *default:* `nil`) - The name of the data quality rule. + * `ruleType` (*type:* `String.t`, *default:* `nil`) - The type of the data quality rule. + * `thresholdPercent` (*type:* `float()`, *default:* `nil`) - The passing threshold (0.0, 100.0) of the data quality rule. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :column => String.t() | nil, + :dataSource => String.t() | nil, + :evaluatedRowCount => String.t() | nil, + :evalutionType => String.t() | nil, + :jobId => String.t() | nil, + :nullRowCount => String.t() | nil, + :passedRowCount => String.t() | nil, + :result => String.t() | nil, + :ruleDimension => String.t() | nil, + :ruleName => String.t() | nil, + :ruleType => String.t() | nil, + :thresholdPercent => float() | nil + } + + field(:column) + field(:dataSource) + field(:evaluatedRowCount) + field(:evalutionType) + field(:jobId) + field(:nullRowCount) + field(:passedRowCount) + field(:result) + field(:ruleDimension) + field(:ruleName) + field(:ruleType) + field(:thresholdPercent) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityScanRuleResult do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityScanRuleResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityScanRuleResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec.ex index fc2289d501..f11d328592 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec.ex @@ -21,17 +21,31 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpec do ## Attributes - * `rules` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRule.t)`, *default:* `nil`) - The list of rules to evaluate against a data source. At least one rule is required. + * `postScanActions` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActions.t`, *default:* `nil`) - Optional. Actions to take upon job completion. + * `rowFilter` (*type:* `String.t`, *default:* `nil`) - Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10 + * `rules` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRule.t)`, *default:* `nil`) - Required. The list of rules to evaluate against a data source. At least one rule is required. + * `samplingPercent` (*type:* `number()`, *default:* `nil`) - Optional. The percentage of the records to be selected from the dataset for DataScan. Value can range between 0.0 and 100.0 with up to 3 significant decimal digits. Sampling is not applied if sampling_percent is not specified, 0 or 100. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :postScanActions => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActions.t() + | nil, + :rowFilter => String.t() | nil, :rules => - list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRule.t()) | nil + list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRule.t()) | nil, + :samplingPercent => number() | nil } + field(:postScanActions, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActions + ) + + field(:rowFilter) field(:rules, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityRule, type: :list) + field(:samplingPercent) end defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpec do diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions.ex new file mode 100644 index 0000000000..83bd8ec022 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActions do + @moduledoc """ + The configuration of post scan actions of DataQualityScan. + + ## Attributes + + * `bigqueryExport` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport.t`, *default:* `nil`) - Optional. If set, results will be exported to the provided BigQuery table. + * `notificationReport` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport.t`, *default:* `nil`) - Optional. If set, results will be sent to the provided notification receipts upon triggers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bigqueryExport => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport.t() + | nil, + :notificationReport => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport.t() + | nil + } + + field(:bigqueryExport, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport + ) + + field(:notificationReport, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActions do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_big_query_export.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_big_query_export.ex new file mode 100644 index 0000000000..11b8a26e7e --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_big_query_export.ex @@ -0,0 +1,53 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport do + @moduledoc """ + The configuration of BigQuery export post scan action. + + ## Attributes + + * `resultsTable` (*type:* `String.t`, *default:* `nil`) - Optional. The BigQuery table to export DataQualityScan results to. Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resultsTable => String.t() | nil + } + + field(:resultsTable) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_job_end_trigger.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_job_end_trigger.ex new file mode 100644 index 0000000000..b29be83acb --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_job_end_trigger.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger do + @moduledoc """ + This trigger is triggered whenever a scan job run ends, regardless of the result. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_job_failure_trigger.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_job_failure_trigger.ex new file mode 100644 index 0000000000..9470df6672 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_job_failure_trigger.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger do + @moduledoc """ + This trigger is triggered when the scan job itself fails, regardless of the result. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_notification_report.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_notification_report.ex new file mode 100644 index 0000000000..b7d3e218bf --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_notification_report.ex @@ -0,0 +1,84 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport do + @moduledoc """ + The configuration of notification report post scan action. + + ## Attributes + + * `jobEndTrigger` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger.t`, *default:* `nil`) - Optional. If set, report will be sent when a scan job ends. + * `jobFailureTrigger` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger.t`, *default:* `nil`) - Optional. If set, report will be sent when a scan job fails. + * `recipients` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients.t`, *default:* `nil`) - Required. The recipients who will receive the notification report. + * `scoreThresholdTrigger` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger.t`, *default:* `nil`) - Optional. If set, report will be sent when score threshold is met. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :jobEndTrigger => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger.t() + | nil, + :jobFailureTrigger => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger.t() + | nil, + :recipients => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients.t() + | nil, + :scoreThresholdTrigger => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger.t() + | nil + } + + field(:jobEndTrigger, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger + ) + + field(:jobFailureTrigger, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger + ) + + field(:recipients, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients + ) + + field(:scoreThresholdTrigger, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_recipients.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_recipients.ex new file mode 100644 index 0000000000..c7765635c2 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_recipients.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients do + @moduledoc """ + The individuals or groups who are designated to receive notifications upon triggers. + + ## Attributes + + * `emails` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The email recipients who will receive the DataQualityScan results report. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :emails => list(String.t()) | nil + } + + field(:emails, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_score_threshold_trigger.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_score_threshold_trigger.ex new file mode 100644 index 0000000000..b9dd930024 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_quality_spec_post_scan_actions_score_threshold_trigger.ex @@ -0,0 +1,53 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger do + @moduledoc """ + This trigger is triggered when the DQ score in the job result is less than a specified input score. + + ## Attributes + + * `scoreThreshold` (*type:* `number()`, *default:* `nil`) - Optional. The score range is in 0,100. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :scoreThreshold => number() | nil + } + + field(:scoreThreshold) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan.ex index c34982b3dd..c6e71b0664 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan do @moduledoc """ - Represents a user-visible job which provides the insights for the related data source. For examples: - Data Quality: generates queries based on the rules and run against the data to get data quality check results. - Data Profile: analyzes the data in table(s) and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc). + Represents a user-visible job which provides the insights for the related data source.For example: Data Quality: generates queries based on the rules and runs against the data to get data quality check results. Data Profile: analyzes the data in table(s) and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc). ## Attributes @@ -27,11 +27,12 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan do * `dataProfileSpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataProfileSpec.t`, *default:* `nil`) - DataProfileScan related setting. * `dataQualityResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualityResult.t`, *default:* `nil`) - Output only. The result of the data quality scan. * `dataQualitySpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpec.t`, *default:* `nil`) - DataQualityScan related setting. - * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the scan. * Must be between 1-1024 characters. - * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. User friendly display name. * Must be between 1-256 characters. - * `executionSpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionSpec.t`, *default:* `nil`) - Optional. DataScan execution settings. If not specified, the fields under it will use their default values. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the scan. Must be between 1-1024 characters. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. User friendly display name. Must be between 1-256 characters. + * `executionSpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionSpec.t`, *default:* `nil`) - Optional. DataScan execution settings.If not specified, the fields in it will use their default values. + * `executionStatus` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionStatus.t`, *default:* `nil`) - Output only. Status of the data scan execution. * `labels` (*type:* `map()`, *default:* `nil`) - Optional. User-defined labels for the scan. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the scan, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where project refers to a project_id or project_number and location_id refers to a GCP region. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Current state of the DataScan. * `type` (*type:* `String.t`, *default:* `nil`) - Output only. The type of DataScan. * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name. @@ -55,6 +56,8 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan do :displayName => String.t() | nil, :executionSpec => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionSpec.t() | nil, + :executionStatus => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionStatus.t() | nil, :labels => map() | nil, :name => String.t() | nil, :state => String.t() | nil, @@ -78,6 +81,10 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan do field(:executionSpec, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionSpec) + field(:executionStatus, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionStatus + ) + field(:labels, type: :map) field(:name) field(:state) diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event.ex index 3ad0f5898e..f7a3a795bf 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event.ex @@ -17,16 +17,20 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEvent do @moduledoc """ - These messages contain information about the execution of a datascan. The monitored resource is 'DataScan' + These messages contain information about the execution of a datascan. The monitored resource is 'DataScan' Next ID: 13 ## Attributes + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the data scan job was created. * `dataProfile` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileResult.t`, *default:* `nil`) - Data profile result for data profile type data scan. + * `dataProfileConfigs` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs.t`, *default:* `nil`) - Applied configs for data profile type data scan. * `dataQuality` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityResult.t`, *default:* `nil`) - Data quality result for data quality type data scan. + * `dataQualityConfigs` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs.t`, *default:* `nil`) - Applied configs for data quality type data scan. * `dataSource` (*type:* `String.t`, *default:* `nil`) - The data source of the data scan * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the data scan job finished. * `jobId` (*type:* `String.t`, *default:* `nil`) - The identifier of the specific data scan job this log entry is for. * `message` (*type:* `String.t`, *default:* `nil`) - The message describing the data scan job event. + * `postScanActionsResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResult.t`, *default:* `nil`) - The result of post scan actions. * `scope` (*type:* `String.t`, *default:* `nil`) - The scope of the data scan (e.g. full, incremental). * `specVersion` (*type:* `String.t`, *default:* `nil`) - A version identifier of the spec which was used to execute this job. * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the data scan job started to run. @@ -38,16 +42,26 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEvent do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, :dataProfile => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileResult.t() | nil, + :dataProfileConfigs => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs.t() + | nil, :dataQuality => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityResult.t() | nil, + :dataQualityConfigs => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs.t() + | nil, :dataSource => String.t() | nil, :endTime => DateTime.t() | nil, :jobId => String.t() | nil, :message => String.t() | nil, + :postScanActionsResult => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResult.t() + | nil, :scope => String.t() | nil, :specVersion => String.t() | nil, :startTime => DateTime.t() | nil, @@ -56,18 +70,33 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEvent do :type => String.t() | nil } + field(:createTime, as: DateTime) + field(:dataProfile, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileResult ) + field(:dataProfileConfigs, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs + ) + field(:dataQuality, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityResult ) + field(:dataQualityConfigs, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs + ) + field(:dataSource) field(:endTime, as: DateTime) field(:jobId) field(:message) + + field(:postScanActionsResult, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResult + ) + field(:scope) field(:specVersion) field(:startTime, as: DateTime) diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_profile_applied_configs.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_profile_applied_configs.ex new file mode 100644 index 0000000000..c97328e63d --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_profile_applied_configs.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs do + @moduledoc """ + Applied configs for data profile type data scan job. + + ## Attributes + + * `columnFilterApplied` (*type:* `boolean()`, *default:* `nil`) - Boolean indicating whether a column filter was applied in the DataScan job. + * `rowFilterApplied` (*type:* `boolean()`, *default:* `nil`) - Boolean indicating whether a row filter was applied in the DataScan job. + * `samplingPercent` (*type:* `number()`, *default:* `nil`) - The percentage of the records selected from the dataset for DataScan. Value ranges between 0.0 and 100.0. Value 0.0 or 100.0 imply that sampling was not applied. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnFilterApplied => boolean() | nil, + :rowFilterApplied => boolean() | nil, + :samplingPercent => number() | nil + } + + field(:columnFilterApplied) + field(:rowFilterApplied) + field(:samplingPercent) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_quality_applied_configs.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_quality_applied_configs.ex new file mode 100644 index 0000000000..a9713a3948 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_quality_applied_configs.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs do + @moduledoc """ + Applied configs for data quality type data scan job. + + ## Attributes + + * `rowFilterApplied` (*type:* `boolean()`, *default:* `nil`) - Boolean indicating whether a row filter was applied in the DataScan job. + * `samplingPercent` (*type:* `number()`, *default:* `nil`) - The percentage of the records selected from the dataset for DataScan. Value ranges between 0.0 and 100.0. Value 0.0 or 100.0 imply that sampling was not applied. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rowFilterApplied => boolean() | nil, + :samplingPercent => number() | nil + } + + field(:rowFilterApplied) + field(:samplingPercent) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_quality_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_quality_result.ex index b9b415ad59..299e6c5537 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_quality_result.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_data_quality_result.ex @@ -21,22 +21,31 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventDataQual ## Attributes + * `columnScore` (*type:* `map()`, *default:* `nil`) - The score of each column scanned in the data scan job. The key of the map is the name of the column. The value is the data quality score for the column.The score ranges between 0, 100 (up to two decimal points). * `dimensionPassed` (*type:* `map()`, *default:* `nil`) - The result of each dimension for data quality result. The key of the map is the name of the dimension. The value is the bool value depicting whether the dimension result was pass or not. + * `dimensionScore` (*type:* `map()`, *default:* `nil`) - The score of each dimension for data quality result. The key of the map is the name of the dimension. The value is the data quality score for the dimension.The score ranges between 0, 100 (up to two decimal points). * `passed` (*type:* `boolean()`, *default:* `nil`) - Whether the data quality result was pass or not. * `rowCount` (*type:* `String.t`, *default:* `nil`) - The count of rows processed in the data scan job. + * `score` (*type:* `number()`, *default:* `nil`) - The table-level data quality score for the data scan job.The data quality score ranges between 0, 100 (up to two decimal points). """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :columnScore => map() | nil, :dimensionPassed => map() | nil, + :dimensionScore => map() | nil, :passed => boolean() | nil, - :rowCount => String.t() | nil + :rowCount => String.t() | nil, + :score => number() | nil } + field(:columnScore, type: :map) field(:dimensionPassed, type: :map) + field(:dimensionScore, type: :map) field(:passed) field(:rowCount) + field(:score) end defimpl Poison.Decoder, diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_post_scan_actions_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_post_scan_actions_result.ex new file mode 100644 index 0000000000..086a4e8837 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_post_scan_actions_result.ex @@ -0,0 +1,56 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResult do + @moduledoc """ + Post scan actions result for data scan job. + + ## Attributes + + * `bigqueryExportResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult.t`, *default:* `nil`) - The result of BigQuery export post scan action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bigqueryExportResult => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult.t() + | nil + } + + field(:bigqueryExportResult, + as: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResult do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_post_scan_actions_result_big_query_export_result.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_post_scan_actions_result_big_query_export_result.ex new file mode 100644 index 0000000000..a5916d2d68 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_event_post_scan_actions_result_big_query_export_result.ex @@ -0,0 +1,56 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult do + @moduledoc """ + The result of BigQuery export post scan action. + + ## Attributes + + * `message` (*type:* `String.t`, *default:* `nil`) - Additional information about the BigQuery exporting. + * `state` (*type:* `String.t`, *default:* `nil`) - Execution state for the BigQuery exporting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => String.t() | nil, + :state => String.t() | nil + } + + field(:message) + field(:state) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_execution_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_execution_spec.ex index 029a15a824..be5857933b 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_execution_spec.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_execution_spec.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionSpec ## Attributes - * `field` (*type:* `String.t`, *default:* `nil`) - Immutable. The unnested field (Date or Timestamp) that contains values that monotonically increase over time. - * `trigger` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Trigger.t`, *default:* `nil`) - Optional. Spec related to how often and when a scan should be triggered. If not specified, the default is OnDemand, which means the scan will not run until the user calls RunDataScan API. + * `field` (*type:* `String.t`, *default:* `nil`) - Immutable. The unnested field (of type Date or Timestamp) that contains values which monotonically increase over time.If not specified, a data scan will run for all data in the table. + * `trigger` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Trigger.t`, *default:* `nil`) - Optional. Spec related to how often and when a scan should be triggered.If not specified, the default is OnDemand, which means the scan will not run until the user calls RunDataScan API. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_execution_status.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_execution_status.ex new file mode 100644 index 0000000000..15f25c63de --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_execution_status.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionStatus do + @moduledoc """ + Status of the data scan execution. + + ## Attributes + + * `latestJobEndTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the latest DataScanJob ended. + * `latestJobStartTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the latest DataScanJob started. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :latestJobEndTime => DateTime.t() | nil, + :latestJobStartTime => DateTime.t() | nil + } + + field(:latestJobEndTime, as: DateTime) + field(:latestJobStartTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionStatus do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionStatus.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanExecutionStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_job.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_job.ex index 3dc7070c05..2631d9d68a 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_job.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_scan_job.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob do @moduledoc """ - A DataScanJob represents an instance of a data scan. + A DataScanJob represents an instance of DataScan execution. ## Attributes @@ -27,7 +27,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob do * `dataQualitySpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataQualitySpec.t`, *default:* `nil`) - Output only. DataQualityScan related setting. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the DataScanJob ended. * `message` (*type:* `String.t`, *default:* `nil`) - Output only. Additional information about the current state. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the DataScanJob, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}. where {project} refers to a project_id or project_number and location_id refers to a GCP region. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the DataScanJob, of the form: projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}, where project refers to a project_id or project_number and location_id refers to a GCP region. * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the DataScanJob was started. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Execution state for the DataScanJob. * `type` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the parent DataScan. diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_source.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_source.ex index dbb9342aab..4ec70b7e79 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_source.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_source.ex @@ -21,16 +21,19 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataSource do ## Attributes - * `entity` (*type:* `String.t`, *default:* `nil`) - Immutable. The dataplex entity that contains the data for DataScan, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}. + * `entity` (*type:* `String.t`, *default:* `nil`) - Immutable. The Dataplex entity that represents the data source (e.g. BigQuery table) for DataScan, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}. + * `resource` (*type:* `String.t`, *default:* `nil`) - Immutable. The service-qualified full resource name of the cloud resource for a DataScan job to scan against. The field could be: BigQuery table of type "TABLE" for DataProfileScan/DataQualityScan Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :entity => String.t() | nil + :entity => String.t() | nil, + :resource => String.t() | nil } field(:entity) + field(:resource) end defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataSource do diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_taxonomy.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_taxonomy.ex new file mode 100644 index 0000000000..2410c3d005 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_taxonomy.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.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy do + @moduledoc """ + DataTaxonomy represents a set of hierarchical DataAttributes resources, grouped with a common theme Eg: 'SensitiveDataTaxonomy' can have attributes to manage PII data. It is defined at project level. + + ## Attributes + + * `attributeCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of attributes in the DataTaxonomy. + * `classCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of classes in the DataTaxonomy. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the DataTaxonomy was created. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the DataTaxonomy. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. User friendly display name. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. User-defined labels for the DataTaxonomy. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the DataTaxonomy, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. + * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System generated globally unique ID for the dataTaxonomy. This ID will be different if the DataTaxonomy is deleted and re-created with the same name. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the DataTaxonomy was last updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributeCount => integer() | nil, + :classCount => integer() | nil, + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :etag => String.t() | nil, + :labels => map() | nil, + :name => String.t() | nil, + :uid => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:attributeCount) + field(:classCount) + field(:createTime, as: DateTime) + field(:description) + field(:displayName) + field(:etag) + field(:labels, type: :map) + field(:name) + field(:uid) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_entity.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_entity.ex index caeb5a5d8c..176c29f412 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_entity.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_entity.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Entity do ## Attributes + * `access` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageAccess.t`, *default:* `nil`) - Output only. Identifies the access mechanism to the entity. Not user settable. * `asset` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The ID of the asset associated with the storage location containing the entity data. The entity must be with in the same zone with the asset. * `catalogEntry` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the associated Data Catalog entry. * `compatibility` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1EntityCompatibilityStatus.t`, *default:* `nil`) - Output only. Metadata stores that the entity is compatible with. @@ -31,17 +32,19 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Entity do * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Display name must be shorter than or equal to 256 characters. * `etag` (*type:* `String.t`, *default:* `nil`) - Optional. The etag associated with the entity, which can be retrieved with a GetEntity request. Required for update and delete requests. * `format` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormat.t`, *default:* `nil`) - Required. Identifies the storage format of the entity data. It does not apply to entities with data stored in BigQuery. - * `id` (*type:* `String.t`, *default:* `nil`) - Required. A user-provided entity ID. It is mutable, and will be used as the published table name. Specifying a new ID in an update entity request will override the existing value. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores. Must begin with a letter and consist of 256 or fewer characters. + * `id` (*type:* `String.t`, *default:* `nil`) - Required. A user-provided entity ID. It is mutable, and will be used as the published table name. Specifying a new ID in an update entity request will override the existing value. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores, and consist of 256 or fewer characters. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the entity, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}. * `schema` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Schema.t`, *default:* `nil`) - Required. The description of the data structure and layout. The schema is not included in list responses. It is only included in SCHEMA and FULL entity views of a GetEntity response. * `system` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. Identifies the storage system of the entity data. * `type` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The type of entity. + * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System generated unique ID for the Entity. This ID will be different if the Entity is deleted and re-created with the same name. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the entity was last updated. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :access => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageAccess.t() | nil, :asset => String.t() | nil, :catalogEntry => String.t() | nil, :compatibility => @@ -58,9 +61,11 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Entity do :schema => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Schema.t() | nil, :system => String.t() | nil, :type => String.t() | nil, + :uid => String.t() | nil, :updateTime => DateTime.t() | nil } + field(:access, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageAccess) field(:asset) field(:catalogEntry) @@ -80,6 +85,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Entity do field(:schema, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Schema) field(:system) field(:type) + field(:uid) field(:updateTime, as: DateTime) end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_endpoints.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_endpoints.ex index 642db93730..7f3a57342d 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_endpoints.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_endpoints.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1EnvironmentEndpoints do @moduledoc """ - + URI Endpoints to access sessions associated with the Environment. ## Attributes diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_session_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_session_spec.ex index 451837c080..6ac62cffd4 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_session_spec.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_session_spec.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1EnvironmentSessionSpec do @moduledoc """ - + Configuration for sessions created for this environment. ## Attributes diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_session_status.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_session_status.ex index b83d669495..b008e3f392 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_session_status.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_environment_session_status.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1EnvironmentSessionStatus do @moduledoc """ - + Status of sessions created for this environment. ## Attributes diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_governance_event.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_governance_event.ex new file mode 100644 index 0000000000..570a2f4232 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_governance_event.ex @@ -0,0 +1,53 @@ +# 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.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEvent do + @moduledoc """ + Payload associated with Governance related log events. + + ## Attributes + + * `entity` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEventEntity.t`, *default:* `nil`) - Entity resource information if the log event is associated with a specific entity. + * `eventType` (*type:* `String.t`, *default:* `nil`) - The type of the event. + * `message` (*type:* `String.t`, *default:* `nil`) - The log message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :entity => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEventEntity.t() | nil, + :eventType => String.t() | nil, + :message => String.t() | nil + } + + field(:entity, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEventEntity) + field(:eventType) + field(:message) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEvent do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_governance_event_entity.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_governance_event_entity.ex new file mode 100644 index 0000000000..a2f286d476 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_governance_event_entity.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.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEventEntity do + @moduledoc """ + Information about Entity resource that the log event is associated with. + + ## Attributes + + * `entity` (*type:* `String.t`, *default:* `nil`) - The Entity resource the log event is associated with. Format: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id} + * `entityType` (*type:* `String.t`, *default:* `nil`) - Type of entity. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :entity => String.t() | nil, + :entityType => String.t() | nil + } + + field(:entity) + field(:entityType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEventEntity do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEventEntity.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1GovernanceEventEntity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_job.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_job.ex index 827c13afbd..68de83abd4 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_job.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_job.ex @@ -22,6 +22,8 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Job do ## Attributes * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the job ended. + * `executionSpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TaskExecutionSpec.t`, *default:* `nil`) - Output only. Spec related to how a task is executed. + * `labels` (*type:* `map()`, *default:* `nil`) - Output only. User-defined labels for the task. * `message` (*type:* `String.t`, *default:* `nil`) - Output only. Additional information about the current state. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the job, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}. * `retryCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of times the job has been retried (excluding the initial attempt). @@ -29,6 +31,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Job do * `serviceJob` (*type:* `String.t`, *default:* `nil`) - Output only. The full resource name for the job run under a particular service. * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the job was started. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Execution state for the job. + * `trigger` (*type:* `String.t`, *default:* `nil`) - Output only. Job execution trigger. * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System generated globally unique ID for the job. """ @@ -36,6 +39,9 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Job do @type t :: %__MODULE__{ :endTime => DateTime.t() | nil, + :executionSpec => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TaskExecutionSpec.t() | nil, + :labels => map() | nil, :message => String.t() | nil, :name => String.t() | nil, :retryCount => integer() | nil, @@ -43,10 +49,13 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Job do :serviceJob => String.t() | nil, :startTime => DateTime.t() | nil, :state => String.t() | nil, + :trigger => String.t() | nil, :uid => String.t() | nil } field(:endTime, as: DateTime) + field(:executionSpec, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TaskExecutionSpec) + field(:labels, type: :map) field(:message) field(:name) field(:retryCount) @@ -54,6 +63,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Job do field(:serviceJob) field(:startTime, as: DateTime) field(:state) + field(:trigger) field(:uid) end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_job_event.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_job_event.ex index cfb8653d03..42cc5c4ab0 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_job_event.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_job_event.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1JobEvent do ## Attributes * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the job ended running. + * `executionTrigger` (*type:* `String.t`, *default:* `nil`) - Job execution trigger. * `jobId` (*type:* `String.t`, *default:* `nil`) - The unique id identifying the job. * `message` (*type:* `String.t`, *default:* `nil`) - The log message. * `retries` (*type:* `integer()`, *default:* `nil`) - The number of retries. @@ -36,6 +37,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1JobEvent do @type t :: %__MODULE__{ :endTime => DateTime.t() | nil, + :executionTrigger => String.t() | nil, :jobId => String.t() | nil, :message => String.t() | nil, :retries => integer() | nil, @@ -47,6 +49,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1JobEvent do } field(:endTime, as: DateTime) + field(:executionTrigger) field(:jobId) field(:message) field(:retries) diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_attribute_bindings_response.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_attribute_bindings_response.ex new file mode 100644 index 0000000000..0c5c74e569 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_attribute_bindings_response.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.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributeBindingsResponse do + @moduledoc """ + List DataAttributeBindings response. + + ## Attributes + + * `dataAttributeBindings` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding.t)`, *default:* `nil`) - DataAttributeBindings under the given parent Location. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Token to retrieve the next page of results, or empty if there are no more results in the list. + * `unreachableLocations` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataAttributeBindings => + list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding.t()) | nil, + :nextPageToken => String.t() | nil, + :unreachableLocations => list(String.t()) | nil + } + + field(:dataAttributeBindings, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttributeBinding, + type: :list + ) + + field(:nextPageToken) + field(:unreachableLocations, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributeBindingsResponse do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributeBindingsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributeBindingsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_attributes_response.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_attributes_response.ex new file mode 100644 index 0000000000..98f304c41f --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_attributes_response.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.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributesResponse do + @moduledoc """ + List DataAttributes response. + + ## Attributes + + * `dataAttributes` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute.t)`, *default:* `nil`) - DataAttributes under the given parent DataTaxonomy. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Token to retrieve the next page of results, or empty if there are no more results in the list. + * `unreachableLocations` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataAttributes => + list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute.t()) | nil, + :nextPageToken => String.t() | nil, + :unreachableLocations => list(String.t()) | nil + } + + field(:dataAttributes, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataAttribute, + type: :list + ) + + field(:nextPageToken) + field(:unreachableLocations, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributesResponse do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataAttributesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_scan_jobs_response.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_scan_jobs_response.ex index 12499691ab..8bc09e85f1 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_scan_jobs_response.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_scan_jobs_response.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScanJobsRespo ## Attributes - * `dataScanJobs` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob.t)`, *default:* `nil`) - DataScanJobs (metadata only) under a given dataScan. + * `dataScanJobs` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob.t)`, *default:* `nil`) - DataScanJobs (BASIC view only) under a given dataScan. * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Token to retrieve the next page of results, or empty if there are no more results in the list. """ diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_scans_response.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_scans_response.ex index 03386813db..6568659ac9 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_scans_response.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_scans_response.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataScansResponse ## Attributes - * `dataScans` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan.t)`, *default:* `nil`) - DataScans (metadata only) under the given parent location. + * `dataScans` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScan.t)`, *default:* `nil`) - DataScans (BASIC view only) under the given parent location. * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Token to retrieve the next page of results, or empty if there are no more results in the list. * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. """ diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_taxonomies_response.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_taxonomies_response.ex new file mode 100644 index 0000000000..406e3bdf12 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_list_data_taxonomies_response.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.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataTaxonomiesResponse do + @moduledoc """ + List DataTaxonomies response. + + ## Attributes + + * `dataTaxonomies` (*type:* `list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy.t)`, *default:* `nil`) - DataTaxonomies under the given parent location. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Token to retrieve the next page of results, or empty if there are no more results in the list. + * `unreachableLocations` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataTaxonomies => + list(GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy.t()) | nil, + :nextPageToken => String.t() | nil, + :unreachableLocations => list(String.t()) | nil + } + + field(:dataTaxonomies, + as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataTaxonomy, + type: :list + ) + + field(:nextPageToken) + field(:unreachableLocations, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataTaxonomiesResponse do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataTaxonomiesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ListDataTaxonomiesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_resource_access_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_resource_access_spec.ex new file mode 100644 index 0000000000..863437f586 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_resource_access_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.Dataplex.V1.Model.GoogleCloudDataplexV1ResourceAccessSpec do + @moduledoc """ + ResourceAccessSpec holds the access control configuration to be enforced on the resources, for example, Cloud Storage bucket, BigQuery dataset, BigQuery table. + + ## Attributes + + * `owners` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The set of principals to be granted owner role on the resource. + * `readers` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource. + * `writers` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The set of principals to be granted writer role on the resource. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :owners => list(String.t()) | nil, + :readers => list(String.t()) | nil, + :writers => list(String.t()) | nil + } + + field(:owners, type: :list) + field(:readers, type: :list) + field(:writers, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ResourceAccessSpec do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ResourceAccessSpec.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ResourceAccessSpec do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_data_scan_response.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_data_scan_response.ex index 313ae38210..9966a5205e 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_data_scan_response.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_data_scan_response.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunDataScanResponse d ## Attributes - * `job` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob.t`, *default:* `nil`) - DataScanJob created by RunDataScan API. + * `job` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataScanJob.t`, *default:* `nil`) - DataScanJob created by RunDataScan request. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_task_request.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_task_request.ex new file mode 100644 index 0000000000..98709bf06b --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_task_request.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.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskRequest do + @moduledoc """ + + + ## Attributes + + * `args` (*type:* `map()`, *default:* `nil`) - Optional. Execution spec arguments. If the map is left empty, the task will run with existing execution spec args from task definition. If the map contains an entry with a new key, the same will be added to existing set of args. If the map contains an entry with an existing arg key in task definition, the task will run with new arg value for that entry. Clearing an existing arg will require arg value to be explicitly set to a hyphen "-". The arg value cannot be empty. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. User-defined labels for the task. If the map is left empty, the task will run with existing labels from task definition. If the map contains an entry with a new key, the same will be added to existing set of labels. If the map contains an entry with an existing label key in task definition, the task will run with new label value for that entry. Clearing an existing label will require label value to be explicitly set to a hyphen "-". The label value cannot be empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :args => map() | nil, + :labels => map() | nil + } + + field(:args, type: :map) + field(:labels, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskRequest do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_task_response.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_task_response.ex new file mode 100644 index 0000000000..e98109e534 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_run_task_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskResponse do + @moduledoc """ + + + ## Attributes + + * `job` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Job.t`, *default:* `nil`) - Jobs created by RunTask API. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :job => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Job.t() | nil + } + + field(:job, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Job) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskResponse do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1RunTaskResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_scanned_data_incremental_field.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_scanned_data_incremental_field.ex index 3d2792548e..fbedfb4370 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_scanned_data_incremental_field.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_scanned_data_incremental_field.ex @@ -21,9 +21,9 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ScannedDataIncrementa ## Attributes - * `end` (*type:* `String.t`, *default:* `nil`) - Value that marks the end of the range - * `field` (*type:* `String.t`, *default:* `nil`) - The field that contains values which monotonically increases over time (e.g. timestamp). - * `start` (*type:* `String.t`, *default:* `nil`) - Value that marks the start of the range + * `end` (*type:* `String.t`, *default:* `nil`) - Value that marks the end of the range. + * `field` (*type:* `String.t`, *default:* `nil`) - The field that contains values which monotonically increases over time (e.g. a timestamp column). + * `start` (*type:* `String.t`, *default:* `nil`) - Value that marks the start of the range. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_session.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_session.ex index a9f355e626..43979945c8 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_session.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_session.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Session do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Session start time. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} - * `state` (*type:* `String.t`, *default:* `nil`) - + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of Session * `userId` (*type:* `String.t`, *default:* `nil`) - Output only. Email of user running the session. """ diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_access.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_access.ex new file mode 100644 index 0000000000..b5c0b875dc --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_access.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.Dataplex.V1.Model.GoogleCloudDataplexV1StorageAccess do + @moduledoc """ + Describes the access mechanism of the data within its storage location. + + ## Attributes + + * `read` (*type:* `String.t`, *default:* `nil`) - Output only. Describes the read access mechanism of the data. Not user settable. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :read => String.t() | nil + } + + field(:read) +end + +defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageAccess do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageAccess.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageAccess do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_format.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_format.ex index 3c03d6df67..f326e49a58 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_format.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_format.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormat do * `compressionFormat` (*type:* `String.t`, *default:* `nil`) - Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed. * `csv` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatCsvOptions.t`, *default:* `nil`) - Optional. Additional information about CSV formatted data. * `format` (*type:* `String.t`, *default:* `nil`) - Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type. + * `iceberg` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatIcebergOptions.t`, *default:* `nil`) - Optional. Additional information about iceberg tables. * `json` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatJsonOptions.t`, *default:* `nil`) - Optional. Additional information about CSV formatted data. * `mimeType` (*type:* `String.t`, *default:* `nil`) - Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values: application/x-parquet application/x-avro application/x-orc application/x-tfrecord application/x-parquet+iceberg application/x-avro+iceberg application/x-orc+iceberg application/json application/{subtypes} text/csv text/ image/{image subtype} video/{video subtype} audio/{audio subtype} """ @@ -35,6 +36,8 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormat do :csv => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatCsvOptions.t() | nil, :format => String.t() | nil, + :iceberg => + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatIcebergOptions.t() | nil, :json => GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatJsonOptions.t() | nil, :mimeType => String.t() | nil @@ -43,6 +46,9 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormat do field(:compressionFormat) field(:csv, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatCsvOptions) field(:format) + + field(:iceberg, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatIcebergOptions) + field(:json, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatJsonOptions) field(:mimeType) end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_format_iceberg_options.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_format_iceberg_options.ex new file mode 100644 index 0000000000..651674d038 --- /dev/null +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_storage_format_iceberg_options.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.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatIcebergOptions do + @moduledoc """ + Describes Iceberg data format. + + ## Attributes + + * `metadataLocation` (*type:* `String.t`, *default:* `nil`) - Optional. The location of where the iceberg metadata is present, must be within the table path + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :metadataLocation => String.t() | nil + } + + field(:metadataLocation) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatIcebergOptions do + def decode(value, options) do + GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatIcebergOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1StorageFormatIcebergOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_task_trigger_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_task_trigger_spec.ex index b0e1b95a66..642fdedb07 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_task_trigger_spec.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_task_trigger_spec.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TaskTriggerSpec do * `disabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Prevent the task from executing. This does not cancel already running tasks. It is intended to temporarily disable RECURRING tasks. * `maxRetries` (*type:* `integer()`, *default:* `nil`) - Optional. Number of retry attempts before aborting. Set to zero to never attempt to retry a failed task. - * `schedule` (*type:* `String.t`, *default:* `nil`) - Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *". This field is required for RECURRING tasks. + * `schedule` (*type:* `String.t`, *default:* `nil`) - Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *. This field is required for RECURRING tasks. * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING. * `type` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. Trigger type of the user-specified Task. """ diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger.ex index b95dee7f12..e3a275a2c9 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1Trigger do ## Attributes - * `onDemand` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TriggerOnDemand.t`, *default:* `nil`) - The scan runs one-time shortly after DataScan Creation. + * `onDemand` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TriggerOnDemand.t`, *default:* `nil`) - The scan runs once via RunDataScan API. * `schedule` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TriggerSchedule.t`, *default:* `nil`) - The scan is scheduled to run periodically. """ diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger_on_demand.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger_on_demand.ex index 8fb2f333af..a597f3facf 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger_on_demand.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger_on_demand.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TriggerOnDemand do @moduledoc """ - The scan runs one-time via RunDataScan API. + The scan runs once via RunDataScan API. ## Attributes diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger_schedule.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger_schedule.ex index deafca35a0..5339b8b64b 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger_schedule.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_trigger_schedule.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1TriggerSchedule do ## Attributes - * `cron` (*type:* `String.t`, *default:* `nil`) - Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running scans periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *". This field is required for Schedule scans. + * `cron` (*type:* `String.t`, *default:* `nil`) - Required. Cron (https://en.wikipedia.org/wiki/Cron) schedule for running scans periodically.To explicitly set a timezone in the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database (wikipedia (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.This field is required for Schedule scans. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_zone_discovery_spec.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_zone_discovery_spec.ex index 5767bce662..fa1c662207 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_zone_discovery_spec.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_zone_discovery_spec.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ZoneDiscoverySpec do * `excludePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names. * `includePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names. * `jsonOptions` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions.t`, *default:* `nil`) - Optional. Configuration for Json data. - * `schedule` (*type:* `String.t`, *default:* `nil`) - Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *". + * `schedule` (*type:* `String.t`, *default:* `nil`) - Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_location_location.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_location_location.ex index 868cbed803..d4629442de 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_location_location.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_location_location.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudLocationLocation do @moduledoc """ - A resource that represents Google Cloud Platform location. + A resource that represents a Google Cloud location. ## Attributes diff --git a/clients/dataplex/lib/google_api/dataplex/v1/model/google_iam_v1_binding.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_iam_v1_binding.ex index bdcc8b3f3b..6bb46d861d 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_iam_v1_binding.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_iam_v1_binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleIamV1Binding do ## Attributes * `condition` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleTypeExpr.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/dataplex/lib/google_api/dataplex/v1/model/google_longrunning_operation.ex b/clients/dataplex/lib/google_api/dataplex/v1/model/google_longrunning_operation.ex index 956ad7e419..e61ebae115 100644 --- a/clients/dataplex/lib/google_api/dataplex/v1/model/google_longrunning_operation.ex +++ b/clients/dataplex/lib/google_api/dataplex/v1/model/google_longrunning_operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleLongrunningOperation do * `error` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleRpcStatus.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 response of the operation in case of success. 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. + * `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 diff --git a/clients/dataplex/mix.exs b/clients/dataplex/mix.exs index a5336e6650..8653667dad 100644 --- a/clients/dataplex/mix.exs +++ b/clients/dataplex/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Dataplex.Mixfile do use Mix.Project - @version "0.7.0" + @version "0.8.0" def project() do [