From 000832065c65bfd3c6e4367a447ec70be7272d81 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 9 Dec 2024 13:18:22 +0000 Subject: [PATCH] feat: Automated regeneration of Dataform client --- clients/dataform/README.md | 2 +- .../dataform/v1beta1/api/projects.ex | 506 ------------------ .../google_api/dataform/v1beta1/metadata.ex | 2 +- clients/dataform/mix.exs | 2 +- 4 files changed, 3 insertions(+), 509 deletions(-) diff --git a/clients/dataform/README.md b/clients/dataform/README.md index 0e16d36aa0..20806926fb 100644 --- a/clients/dataform/README.md +++ b/clients/dataform/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_dataform, "~> 0.6"}] + [{:google_api_dataform, "~> 0.7"}] end ``` diff --git a/clients/dataform/lib/google_api/dataform/v1beta1/api/projects.ex b/clients/dataform/lib/google_api/dataform/v1beta1/api/projects.ex index ce8098e85f..9a615e1612 100644 --- a/clients/dataform/lib/google_api/dataform/v1beta1/api/projects.ex +++ b/clients/dataform/lib/google_api/dataform/v1beta1/api/projects.ex @@ -292,224 +292,6 @@ defmodule GoogleApi.Dataform.V1beta1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.Dataform.V1beta1.Model.Config{}]) 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.Dataform.V1beta1.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.Dataform.V1beta1.Model.Policy{}}` on success - * `{:error, info}` on failure - """ - @spec dataform_projects_locations_collections_get_iam_policy( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.Dataform.V1beta1.Model.Policy.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def dataform_projects_locations_collections_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("/v1beta1/{+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.Dataform.V1beta1.Model.Policy{}]) - 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.Dataform.V1beta1.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.Dataform.V1beta1.Model.SetIamPolicyRequest.t`) - - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.Dataform.V1beta1.Model.Policy{}}` on success - * `{:error, info}` on failure - """ - @spec dataform_projects_locations_collections_set_iam_policy( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.Dataform.V1beta1.Model.Policy.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def dataform_projects_locations_collections_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("/v1beta1/{+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.Dataform.V1beta1.Model.Policy{}]) - 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.Dataform.V1beta1.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.Dataform.V1beta1.Model.TestIamPermissionsRequest.t`) - - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.Dataform.V1beta1.Model.TestIamPermissionsResponse{}}` on success - * `{:error, info}` on failure - """ - @spec dataform_projects_locations_collections_test_iam_permissions( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.Dataform.V1beta1.Model.TestIamPermissionsResponse.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def dataform_projects_locations_collections_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("/v1beta1/{+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.Dataform.V1beta1.Model.TestIamPermissionsResponse{}] - ) - end - @doc """ Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`. @@ -1550,294 +1332,6 @@ defmodule GoogleApi.Dataform.V1beta1.Api.Projects do ) 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.Dataform.V1beta1.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.Dataform.V1beta1.Model.Policy{}}` on success - * `{:error, info}` on failure - """ - @spec dataform_projects_locations_repositories_comment_threads_get_iam_policy( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.Dataform.V1beta1.Model.Policy.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def dataform_projects_locations_repositories_comment_threads_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("/v1beta1/{+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.Dataform.V1beta1.Model.Policy{}]) - 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.Dataform.V1beta1.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.Dataform.V1beta1.Model.SetIamPolicyRequest.t`) - - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.Dataform.V1beta1.Model.Policy{}}` on success - * `{:error, info}` on failure - """ - @spec dataform_projects_locations_repositories_comment_threads_set_iam_policy( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.Dataform.V1beta1.Model.Policy.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def dataform_projects_locations_repositories_comment_threads_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("/v1beta1/{+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.Dataform.V1beta1.Model.Policy{}]) - 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.Dataform.V1beta1.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.Dataform.V1beta1.Model.Policy{}}` on success - * `{:error, info}` on failure - """ - @spec dataform_projects_locations_repositories_comment_threads_comments_get_iam_policy( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.Dataform.V1beta1.Model.Policy.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def dataform_projects_locations_repositories_comment_threads_comments_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("/v1beta1/{+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.Dataform.V1beta1.Model.Policy{}]) - 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.Dataform.V1beta1.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.Dataform.V1beta1.Model.SetIamPolicyRequest.t`) - - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.Dataform.V1beta1.Model.Policy{}}` on success - * `{:error, info}` on failure - """ - @spec dataform_projects_locations_repositories_comment_threads_comments_set_iam_policy( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.Dataform.V1beta1.Model.Policy.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def dataform_projects_locations_repositories_comment_threads_comments_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("/v1beta1/{+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.Dataform.V1beta1.Model.Policy{}]) - end - @doc """ Creates a new CompilationResult in a given project and location. diff --git a/clients/dataform/lib/google_api/dataform/v1beta1/metadata.ex b/clients/dataform/lib/google_api/dataform/v1beta1/metadata.ex index acbcb45489..1251418296 100644 --- a/clients/dataform/lib/google_api/dataform/v1beta1/metadata.ex +++ b/clients/dataform/lib/google_api/dataform/v1beta1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Dataform.V1beta1 do API client metadata for GoogleApi.Dataform.V1beta1. """ - @discovery_revision "20241108" + @discovery_revision "20241203" def discovery_revision(), do: @discovery_revision end diff --git a/clients/dataform/mix.exs b/clients/dataform/mix.exs index 270026a4c2..70721f2f5b 100644 --- a/clients/dataform/mix.exs +++ b/clients/dataform/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Dataform.Mixfile do use Mix.Project - @version "0.6.1" + @version "0.7.0" def project() do [