Skip to content

Commit 8a34bff

Browse files
feat: Automated regeneration of Eventarc client (googleapis#12785)
Auto-created at 2025-01-08 13:14:49 +0000 using the toys pull request generator.
1 parent 896bb5d commit 8a34bff

File tree

4 files changed

+221
-3
lines changed

4 files changed

+221
-3
lines changed

clients/eventarc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_eventarc, "~> 0.17"}]
14+
[{:google_api_eventarc, "~> 0.18"}]
1515
end
1616
```
1717

clients/eventarc/lib/google_api/eventarc/v1/api/projects.ex

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,6 +2607,224 @@ defmodule GoogleApi.Eventarc.V1.Api.Projects do
26072607
)
26082608
end
26092609

2610+
@doc """
2611+
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2612+
2613+
## Parameters
2614+
2615+
* `connection` (*type:* `GoogleApi.Eventarc.V1.Connection.t`) - Connection to server
2616+
* `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.
2617+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2618+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2619+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2620+
* `:alt` (*type:* `String.t`) - Data format for response.
2621+
* `:callback` (*type:* `String.t`) - JSONP
2622+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2623+
* `: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.
2624+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2625+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2626+
* `: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.
2627+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2628+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2629+
* `:"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).
2630+
* `opts` (*type:* `keyword()`) - Call options
2631+
2632+
## Returns
2633+
2634+
* `{:ok, %GoogleApi.Eventarc.V1.Model.Policy{}}` on success
2635+
* `{:error, info}` on failure
2636+
"""
2637+
@spec eventarc_projects_locations_kafka_sources_get_iam_policy(
2638+
Tesla.Env.client(),
2639+
String.t(),
2640+
keyword(),
2641+
keyword()
2642+
) ::
2643+
{:ok, GoogleApi.Eventarc.V1.Model.Policy.t()}
2644+
| {:ok, Tesla.Env.t()}
2645+
| {:ok, list()}
2646+
| {:error, any()}
2647+
def eventarc_projects_locations_kafka_sources_get_iam_policy(
2648+
connection,
2649+
resource,
2650+
optional_params \\ [],
2651+
opts \\ []
2652+
) do
2653+
optional_params_config = %{
2654+
:"$.xgafv" => :query,
2655+
:access_token => :query,
2656+
:alt => :query,
2657+
:callback => :query,
2658+
:fields => :query,
2659+
:key => :query,
2660+
:oauth_token => :query,
2661+
:prettyPrint => :query,
2662+
:quotaUser => :query,
2663+
:uploadType => :query,
2664+
:upload_protocol => :query,
2665+
:"options.requestedPolicyVersion" => :query
2666+
}
2667+
2668+
request =
2669+
Request.new()
2670+
|> Request.method(:get)
2671+
|> Request.url("/v1/{+resource}:getIamPolicy", %{
2672+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
2673+
})
2674+
|> Request.add_optional_params(optional_params_config, optional_params)
2675+
|> Request.library_version(@library_version)
2676+
2677+
connection
2678+
|> Connection.execute(request)
2679+
|> Response.decode(opts ++ [struct: %GoogleApi.Eventarc.V1.Model.Policy{}])
2680+
end
2681+
2682+
@doc """
2683+
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
2684+
2685+
## Parameters
2686+
2687+
* `connection` (*type:* `GoogleApi.Eventarc.V1.Connection.t`) - Connection to server
2688+
* `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.
2689+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2690+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2691+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2692+
* `:alt` (*type:* `String.t`) - Data format for response.
2693+
* `:callback` (*type:* `String.t`) - JSONP
2694+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2695+
* `: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.
2696+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2697+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2698+
* `: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.
2699+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2700+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2701+
* `:body` (*type:* `GoogleApi.Eventarc.V1.Model.SetIamPolicyRequest.t`) -
2702+
* `opts` (*type:* `keyword()`) - Call options
2703+
2704+
## Returns
2705+
2706+
* `{:ok, %GoogleApi.Eventarc.V1.Model.Policy{}}` on success
2707+
* `{:error, info}` on failure
2708+
"""
2709+
@spec eventarc_projects_locations_kafka_sources_set_iam_policy(
2710+
Tesla.Env.client(),
2711+
String.t(),
2712+
keyword(),
2713+
keyword()
2714+
) ::
2715+
{:ok, GoogleApi.Eventarc.V1.Model.Policy.t()}
2716+
| {:ok, Tesla.Env.t()}
2717+
| {:ok, list()}
2718+
| {:error, any()}
2719+
def eventarc_projects_locations_kafka_sources_set_iam_policy(
2720+
connection,
2721+
resource,
2722+
optional_params \\ [],
2723+
opts \\ []
2724+
) do
2725+
optional_params_config = %{
2726+
:"$.xgafv" => :query,
2727+
:access_token => :query,
2728+
:alt => :query,
2729+
:callback => :query,
2730+
:fields => :query,
2731+
:key => :query,
2732+
:oauth_token => :query,
2733+
:prettyPrint => :query,
2734+
:quotaUser => :query,
2735+
:uploadType => :query,
2736+
:upload_protocol => :query,
2737+
:body => :body
2738+
}
2739+
2740+
request =
2741+
Request.new()
2742+
|> Request.method(:post)
2743+
|> Request.url("/v1/{+resource}:setIamPolicy", %{
2744+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
2745+
})
2746+
|> Request.add_optional_params(optional_params_config, optional_params)
2747+
|> Request.library_version(@library_version)
2748+
2749+
connection
2750+
|> Connection.execute(request)
2751+
|> Response.decode(opts ++ [struct: %GoogleApi.Eventarc.V1.Model.Policy{}])
2752+
end
2753+
2754+
@doc """
2755+
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.
2756+
2757+
## Parameters
2758+
2759+
* `connection` (*type:* `GoogleApi.Eventarc.V1.Connection.t`) - Connection to server
2760+
* `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.
2761+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2762+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2763+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2764+
* `:alt` (*type:* `String.t`) - Data format for response.
2765+
* `:callback` (*type:* `String.t`) - JSONP
2766+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2767+
* `: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.
2768+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2769+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2770+
* `: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.
2771+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2772+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2773+
* `:body` (*type:* `GoogleApi.Eventarc.V1.Model.TestIamPermissionsRequest.t`) -
2774+
* `opts` (*type:* `keyword()`) - Call options
2775+
2776+
## Returns
2777+
2778+
* `{:ok, %GoogleApi.Eventarc.V1.Model.TestIamPermissionsResponse{}}` on success
2779+
* `{:error, info}` on failure
2780+
"""
2781+
@spec eventarc_projects_locations_kafka_sources_test_iam_permissions(
2782+
Tesla.Env.client(),
2783+
String.t(),
2784+
keyword(),
2785+
keyword()
2786+
) ::
2787+
{:ok, GoogleApi.Eventarc.V1.Model.TestIamPermissionsResponse.t()}
2788+
| {:ok, Tesla.Env.t()}
2789+
| {:ok, list()}
2790+
| {:error, any()}
2791+
def eventarc_projects_locations_kafka_sources_test_iam_permissions(
2792+
connection,
2793+
resource,
2794+
optional_params \\ [],
2795+
opts \\ []
2796+
) do
2797+
optional_params_config = %{
2798+
:"$.xgafv" => :query,
2799+
:access_token => :query,
2800+
:alt => :query,
2801+
:callback => :query,
2802+
:fields => :query,
2803+
:key => :query,
2804+
:oauth_token => :query,
2805+
:prettyPrint => :query,
2806+
:quotaUser => :query,
2807+
:uploadType => :query,
2808+
:upload_protocol => :query,
2809+
:body => :body
2810+
}
2811+
2812+
request =
2813+
Request.new()
2814+
|> Request.method(:post)
2815+
|> Request.url("/v1/{+resource}:testIamPermissions", %{
2816+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
2817+
})
2818+
|> Request.add_optional_params(optional_params_config, optional_params)
2819+
|> Request.library_version(@library_version)
2820+
2821+
connection
2822+
|> Connection.execute(request)
2823+
|> Response.decode(
2824+
opts ++ [struct: %GoogleApi.Eventarc.V1.Model.TestIamPermissionsResponse{}]
2825+
)
2826+
end
2827+
26102828
@doc """
26112829
Create a new MessageBus in a particular project and location.
26122830

clients/eventarc/lib/google_api/eventarc/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Eventarc.V1 do
2020
API client metadata for GoogleApi.Eventarc.V1.
2121
"""
2222

23-
@discovery_revision "20241203"
23+
@discovery_revision "20250103"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/eventarc/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Eventarc.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.17.1"
21+
@version "0.18.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)