Skip to content

Commit 7e0dc5a

Browse files
feat: Automated regeneration of BigtableAdmin client (googleapis#13109)
Auto-created at 2025-03-06 13:18:38 +0000 using the toys pull request generator.
1 parent e787bc1 commit 7e0dc5a

13 files changed

+566
-5
lines changed

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

Lines changed: 219 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,6 +2212,224 @@ defmodule GoogleApi.BigtableAdmin.V2.Api.Projects do
22122212
22132213
## Returns
22142214
2215+
* `{:ok, %GoogleApi.BigtableAdmin.V2.Model.Policy{}}` on success
2216+
* `{:error, info}` on failure
2217+
"""
2218+
@spec bigtableadmin_projects_instances_logical_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_logical_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_logical_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_logical_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_logical_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_logical_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+
2409+
@doc """
2410+
Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set.
2411+
2412+
## Parameters
2413+
2414+
* `connection` (*type:* `GoogleApi.BigtableAdmin.V2.Connection.t`) - Connection to server
2415+
* `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.
2416+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2417+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2418+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2419+
* `:alt` (*type:* `String.t`) - Data format for response.
2420+
* `:callback` (*type:* `String.t`) - JSONP
2421+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2422+
* `: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.
2423+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2424+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2425+
* `: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.
2426+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2427+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2428+
* `:body` (*type:* `GoogleApi.BigtableAdmin.V2.Model.GetIamPolicyRequest.t`) -
2429+
* `opts` (*type:* `keyword()`) - Call options
2430+
2431+
## Returns
2432+
22152433
* `{:ok, %GoogleApi.BigtableAdmin.V2.Model.Policy{}}` on success
22162434
* `{:error, info}` on failure
22172435
"""
@@ -3079,7 +3297,7 @@ defmodule GoogleApi.BigtableAdmin.V2.Api.Projects do
30793297
* `: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.
30803298
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
30813299
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
3082-
* `:updateMask` (*type:* `String.t`) - Required. The list of fields to update. A mask specifying which fields (e.g. `change_stream_config`) in the `table` field should be updated. This mask is relative to the `table` field, not to the request message. The wildcard (*) path is currently not supported. Currently UpdateTable is only supported for the following fields: * `change_stream_config` * `change_stream_config.retention_period` * `deletion_protection` * `automated_backup_policy` * `automated_backup_policy.retention_period` * `automated_backup_policy.frequency` If `column_families` is set in `update_mask`, it will return an UNIMPLEMENTED error.
3300+
* `:updateMask` (*type:* `String.t`) - Required. The list of fields to update. A mask specifying which fields (e.g. `change_stream_config`) in the `table` field should be updated. This mask is relative to the `table` field, not to the request message. The wildcard (*) path is currently not supported. Currently UpdateTable is only supported for the following fields: * `change_stream_config` * `change_stream_config.retention_period` * `deletion_protection` * `automated_backup_policy` * `automated_backup_policy.retention_period` * `automated_backup_policy.frequency` * `row_key_schema` If `column_families` is set in `update_mask`, it will return an UNIMPLEMENTED error.
30833301
* `:body` (*type:* `GoogleApi.BigtableAdmin.V2.Model.Table.t`) -
30843302
* `opts` (*type:* `keyword()`) - Call options
30853303

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 "20250224"
23+
@discovery_revision "20250227"
2424

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

clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/google_bigtable_admin_v2_type_bytes_encoding_raw.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ defmodule GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeBytesEncodin
2121
2222
## Attributes
2323
24+
* `escapeNulls` (*type:* `boolean()`, *default:* `nil`) - If set, allows NULL values to be encoded as the empty string "". The actual empty string, or any value which only contains the null byte 0x00, has one more null byte appended.
2425
"""
2526

2627
use GoogleApi.Gax.ModelBase
2728

28-
@type t :: %__MODULE__{}
29+
@type t :: %__MODULE__{
30+
:escapeNulls => boolean() | nil
31+
}
32+
33+
field(:escapeNulls)
2934
end
3035

3136
defimpl Poison.Decoder,

clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/google_bigtable_admin_v2_type_int64_encoding.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,27 @@ defmodule GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64Encodin
2222
## Attributes
2323
2424
* `bigEndianBytes` (*type:* `GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingBigEndianBytes.t`, *default:* `nil`) - Use `BigEndianBytes` encoding.
25+
* `orderedCodeBytes` (*type:* `GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingOrderedCodeBytes.t`, *default:* `nil`) - Use `OrderedCodeBytes` encoding.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
3031
:bigEndianBytes =>
3132
GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingBigEndianBytes.t()
33+
| nil,
34+
:orderedCodeBytes =>
35+
GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingOrderedCodeBytes.t()
3236
| nil
3337
}
3438

3539
field(:bigEndianBytes,
3640
as: GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingBigEndianBytes
3741
)
42+
43+
field(:orderedCodeBytes,
44+
as: GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingOrderedCodeBytes
45+
)
3846
end
3947

4048
defimpl Poison.Decoder,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingOrderedCodeBytes do
19+
@moduledoc """
20+
Encodes the value in a variable length binary format of up to 10 bytes. Values that are closer to zero use fewer bytes. Sorted mode: all values are supported. Distinct mode: all values are supported.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder,
32+
for: GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingOrderedCodeBytes do
33+
def decode(value, options) do
34+
GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingOrderedCodeBytes.decode(
35+
value,
36+
options
37+
)
38+
end
39+
end
40+
41+
defimpl Poison.Encoder,
42+
for: GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeInt64EncodingOrderedCodeBytes do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/google_bigtable_admin_v2_type_string_encoding_utf8_bytes.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ defmodule GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeStringEncodi
2121
2222
## Attributes
2323
24+
* `nullEscapeChar` (*type:* `String.t`, *default:* `nil`) - Single-character escape sequence used to support NULL values. If set, allows NULL values to be encoded as the empty string "". The actual empty string, or any value where every character equals `null_escape_char`, has one more `null_escape_char` appended. If `null_escape_char` is set and does not equal the ASCII null character 0x00, then the encoding will not support sorted mode. .
2425
"""
2526

2627
use GoogleApi.Gax.ModelBase
2728

28-
@type t :: %__MODULE__{}
29+
@type t :: %__MODULE__{
30+
:nullEscapeChar => String.t() | nil
31+
}
32+
33+
field(:nullEscapeChar)
2934
end
3035

3136
defimpl Poison.Decoder,

clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/google_bigtable_admin_v2_type_struct.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,21 @@ defmodule GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeStruct do
2121
2222
## Attributes
2323
24+
* `encoding` (*type:* `GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeStructEncoding.t`, *default:* `nil`) - The encoding to use when converting to or from lower level types.
2425
* `fields` (*type:* `list(GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeStructField.t)`, *default:* `nil`) - The names and types of the fields in this struct.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
31+
:encoding =>
32+
GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeStructEncoding.t() | nil,
3033
:fields =>
3134
list(GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeStructField.t()) | nil
3235
}
3336

37+
field(:encoding, as: GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeStructEncoding)
38+
3439
field(:fields,
3540
as: GoogleApi.BigtableAdmin.V2.Model.GoogleBigtableAdminV2TypeStructField,
3641
type: :list

0 commit comments

Comments
 (0)