Skip to content

Commit 2bebe59

Browse files
feat: Automated regeneration of BigtableAdmin client (#13063)
Auto-created at 2025-02-28 13:20:11 +0000 using the toys pull request generator.
1 parent 9780c65 commit 2bebe59

File tree

4 files changed

+221
-3
lines changed

4 files changed

+221
-3
lines changed

clients/bigtable_admin/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_bigtable_admin, "~> 0.30"}]
14+
[{:google_api_bigtable_admin, "~> 0.31"}]
1515
end
1616
```
1717

clients/bigtable_admin/lib/google_api/bigtable_admin/v2/api/projects.ex

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,6 +2188,224 @@ defmodule GoogleApi.BigtableAdmin.V2.Api.Projects do
21882188
)
21892189
end
21902190

2191+
@doc """
2192+
Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set.
2193+
2194+
## Parameters
2195+
2196+
* `connection` (*type:* `GoogleApi.BigtableAdmin.V2.Connection.t`) - Connection to server
2197+
* `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.
2198+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2199+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2200+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2201+
* `:alt` (*type:* `String.t`) - Data format for response.
2202+
* `:callback` (*type:* `String.t`) - JSONP
2203+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2204+
* `: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.
2205+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2206+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2207+
* `: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.
2208+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2209+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2210+
* `:body` (*type:* `GoogleApi.BigtableAdmin.V2.Model.GetIamPolicyRequest.t`) -
2211+
* `opts` (*type:* `keyword()`) - Call options
2212+
2213+
## Returns
2214+
2215+
* `{:ok, %GoogleApi.BigtableAdmin.V2.Model.Policy{}}` on success
2216+
* `{:error, info}` on failure
2217+
"""
2218+
@spec bigtableadmin_projects_instances_materialized_views_get_iam_policy(
2219+
Tesla.Env.client(),
2220+
String.t(),
2221+
keyword(),
2222+
keyword()
2223+
) ::
2224+
{:ok, GoogleApi.BigtableAdmin.V2.Model.Policy.t()}
2225+
| {:ok, Tesla.Env.t()}
2226+
| {:ok, list()}
2227+
| {:error, any()}
2228+
def bigtableadmin_projects_instances_materialized_views_get_iam_policy(
2229+
connection,
2230+
resource,
2231+
optional_params \\ [],
2232+
opts \\ []
2233+
) do
2234+
optional_params_config = %{
2235+
:"$.xgafv" => :query,
2236+
:access_token => :query,
2237+
:alt => :query,
2238+
:callback => :query,
2239+
:fields => :query,
2240+
:key => :query,
2241+
:oauth_token => :query,
2242+
:prettyPrint => :query,
2243+
:quotaUser => :query,
2244+
:uploadType => :query,
2245+
:upload_protocol => :query,
2246+
:body => :body
2247+
}
2248+
2249+
request =
2250+
Request.new()
2251+
|> Request.method(:post)
2252+
|> Request.url("/v2/{+resource}:getIamPolicy", %{
2253+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
2254+
})
2255+
|> Request.add_optional_params(optional_params_config, optional_params)
2256+
|> Request.library_version(@library_version)
2257+
2258+
connection
2259+
|> Connection.execute(request)
2260+
|> Response.decode(opts ++ [struct: %GoogleApi.BigtableAdmin.V2.Model.Policy{}])
2261+
end
2262+
2263+
@doc """
2264+
Sets the access control policy on an instance resource. Replaces any existing policy.
2265+
2266+
## Parameters
2267+
2268+
* `connection` (*type:* `GoogleApi.BigtableAdmin.V2.Connection.t`) - Connection to server
2269+
* `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.
2270+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2271+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2272+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2273+
* `:alt` (*type:* `String.t`) - Data format for response.
2274+
* `:callback` (*type:* `String.t`) - JSONP
2275+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2276+
* `: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.
2277+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2278+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2279+
* `: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.
2280+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2281+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2282+
* `:body` (*type:* `GoogleApi.BigtableAdmin.V2.Model.SetIamPolicyRequest.t`) -
2283+
* `opts` (*type:* `keyword()`) - Call options
2284+
2285+
## Returns
2286+
2287+
* `{:ok, %GoogleApi.BigtableAdmin.V2.Model.Policy{}}` on success
2288+
* `{:error, info}` on failure
2289+
"""
2290+
@spec bigtableadmin_projects_instances_materialized_views_set_iam_policy(
2291+
Tesla.Env.client(),
2292+
String.t(),
2293+
keyword(),
2294+
keyword()
2295+
) ::
2296+
{:ok, GoogleApi.BigtableAdmin.V2.Model.Policy.t()}
2297+
| {:ok, Tesla.Env.t()}
2298+
| {:ok, list()}
2299+
| {:error, any()}
2300+
def bigtableadmin_projects_instances_materialized_views_set_iam_policy(
2301+
connection,
2302+
resource,
2303+
optional_params \\ [],
2304+
opts \\ []
2305+
) do
2306+
optional_params_config = %{
2307+
:"$.xgafv" => :query,
2308+
:access_token => :query,
2309+
:alt => :query,
2310+
:callback => :query,
2311+
:fields => :query,
2312+
:key => :query,
2313+
:oauth_token => :query,
2314+
:prettyPrint => :query,
2315+
:quotaUser => :query,
2316+
:uploadType => :query,
2317+
:upload_protocol => :query,
2318+
:body => :body
2319+
}
2320+
2321+
request =
2322+
Request.new()
2323+
|> Request.method(:post)
2324+
|> Request.url("/v2/{+resource}:setIamPolicy", %{
2325+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
2326+
})
2327+
|> Request.add_optional_params(optional_params_config, optional_params)
2328+
|> Request.library_version(@library_version)
2329+
2330+
connection
2331+
|> Connection.execute(request)
2332+
|> Response.decode(opts ++ [struct: %GoogleApi.BigtableAdmin.V2.Model.Policy{}])
2333+
end
2334+
2335+
@doc """
2336+
Returns permissions that the caller has on the specified instance resource.
2337+
2338+
## Parameters
2339+
2340+
* `connection` (*type:* `GoogleApi.BigtableAdmin.V2.Connection.t`) - Connection to server
2341+
* `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.
2342+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2343+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2344+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2345+
* `:alt` (*type:* `String.t`) - Data format for response.
2346+
* `:callback` (*type:* `String.t`) - JSONP
2347+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2348+
* `: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.
2349+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2350+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2351+
* `: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.
2352+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2353+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2354+
* `:body` (*type:* `GoogleApi.BigtableAdmin.V2.Model.TestIamPermissionsRequest.t`) -
2355+
* `opts` (*type:* `keyword()`) - Call options
2356+
2357+
## Returns
2358+
2359+
* `{:ok, %GoogleApi.BigtableAdmin.V2.Model.TestIamPermissionsResponse{}}` on success
2360+
* `{:error, info}` on failure
2361+
"""
2362+
@spec bigtableadmin_projects_instances_materialized_views_test_iam_permissions(
2363+
Tesla.Env.client(),
2364+
String.t(),
2365+
keyword(),
2366+
keyword()
2367+
) ::
2368+
{:ok, GoogleApi.BigtableAdmin.V2.Model.TestIamPermissionsResponse.t()}
2369+
| {:ok, Tesla.Env.t()}
2370+
| {:ok, list()}
2371+
| {:error, any()}
2372+
def bigtableadmin_projects_instances_materialized_views_test_iam_permissions(
2373+
connection,
2374+
resource,
2375+
optional_params \\ [],
2376+
opts \\ []
2377+
) do
2378+
optional_params_config = %{
2379+
:"$.xgafv" => :query,
2380+
:access_token => :query,
2381+
:alt => :query,
2382+
:callback => :query,
2383+
:fields => :query,
2384+
:key => :query,
2385+
:oauth_token => :query,
2386+
:prettyPrint => :query,
2387+
:quotaUser => :query,
2388+
:uploadType => :query,
2389+
:upload_protocol => :query,
2390+
:body => :body
2391+
}
2392+
2393+
request =
2394+
Request.new()
2395+
|> Request.method(:post)
2396+
|> Request.url("/v2/{+resource}:testIamPermissions", %{
2397+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
2398+
})
2399+
|> Request.add_optional_params(optional_params_config, optional_params)
2400+
|> Request.library_version(@library_version)
2401+
2402+
connection
2403+
|> Connection.execute(request)
2404+
|> Response.decode(
2405+
opts ++ [struct: %GoogleApi.BigtableAdmin.V2.Model.TestIamPermissionsResponse{}]
2406+
)
2407+
end
2408+
21912409
@doc """
21922410
Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
21932411

clients/bigtable_admin/lib/google_api/bigtable_admin/v2/metadata.ex

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

23-
@discovery_revision "20250131"
23+
@discovery_revision "20250224"
2424

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

clients/bigtable_admin/mix.exs

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

21-
@version "0.30.3"
21+
@version "0.31.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)