Skip to content

Commit 280315a

Browse files
feat: Automated regeneration of IDS client (googleapis#13120)
Auto-created at 2025-03-08 13:11:27 +0000 using the toys pull request generator.
1 parent a5403e3 commit 280315a

File tree

12 files changed

+3
-620
lines changed

12 files changed

+3
-620
lines changed

clients/ids/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_ids, "~> 0.5"}]
14+
[{:google_api_ids, "~> 0.6"}]
1515
end
1616
```
1717

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

Lines changed: 0 additions & 216 deletions
Original file line numberDiff line numberDiff line change
@@ -354,78 +354,6 @@ defmodule GoogleApi.IDS.V1.Api.Projects do
354354
|> Response.decode(opts ++ [struct: %GoogleApi.IDS.V1.Model.Endpoint{}])
355355
end
356356

357-
@doc """
358-
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
359-
360-
## Parameters
361-
362-
* `connection` (*type:* `GoogleApi.IDS.V1.Connection.t`) - Connection to server
363-
* `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.
364-
* `optional_params` (*type:* `keyword()`) - Optional parameters
365-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
366-
* `:access_token` (*type:* `String.t`) - OAuth access token.
367-
* `:alt` (*type:* `String.t`) - Data format for response.
368-
* `:callback` (*type:* `String.t`) - JSONP
369-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
370-
* `: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.
371-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
372-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
373-
* `: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.
374-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
375-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
376-
* `:"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).
377-
* `opts` (*type:* `keyword()`) - Call options
378-
379-
## Returns
380-
381-
* `{:ok, %GoogleApi.IDS.V1.Model.Policy{}}` on success
382-
* `{:error, info}` on failure
383-
"""
384-
@spec ids_projects_locations_endpoints_get_iam_policy(
385-
Tesla.Env.client(),
386-
String.t(),
387-
keyword(),
388-
keyword()
389-
) ::
390-
{:ok, GoogleApi.IDS.V1.Model.Policy.t()}
391-
| {:ok, Tesla.Env.t()}
392-
| {:ok, list()}
393-
| {:error, any()}
394-
def ids_projects_locations_endpoints_get_iam_policy(
395-
connection,
396-
resource,
397-
optional_params \\ [],
398-
opts \\ []
399-
) do
400-
optional_params_config = %{
401-
:"$.xgafv" => :query,
402-
:access_token => :query,
403-
:alt => :query,
404-
:callback => :query,
405-
:fields => :query,
406-
:key => :query,
407-
:oauth_token => :query,
408-
:prettyPrint => :query,
409-
:quotaUser => :query,
410-
:uploadType => :query,
411-
:upload_protocol => :query,
412-
:"options.requestedPolicyVersion" => :query
413-
}
414-
415-
request =
416-
Request.new()
417-
|> Request.method(:get)
418-
|> Request.url("/v1/{+resource}:getIamPolicy", %{
419-
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
420-
})
421-
|> Request.add_optional_params(optional_params_config, optional_params)
422-
|> Request.library_version(@library_version)
423-
424-
connection
425-
|> Connection.execute(request)
426-
|> Response.decode(opts ++ [struct: %GoogleApi.IDS.V1.Model.Policy{}])
427-
end
428-
429357
@doc """
430358
Lists Endpoints in a given project and location.
431359
@@ -570,150 +498,6 @@ defmodule GoogleApi.IDS.V1.Api.Projects do
570498
|> Response.decode(opts ++ [struct: %GoogleApi.IDS.V1.Model.Operation{}])
571499
end
572500

573-
@doc """
574-
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
575-
576-
## Parameters
577-
578-
* `connection` (*type:* `GoogleApi.IDS.V1.Connection.t`) - Connection to server
579-
* `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.
580-
* `optional_params` (*type:* `keyword()`) - Optional parameters
581-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
582-
* `:access_token` (*type:* `String.t`) - OAuth access token.
583-
* `:alt` (*type:* `String.t`) - Data format for response.
584-
* `:callback` (*type:* `String.t`) - JSONP
585-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
586-
* `: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.
587-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
588-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
589-
* `: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.
590-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
591-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
592-
* `:body` (*type:* `GoogleApi.IDS.V1.Model.SetIamPolicyRequest.t`) -
593-
* `opts` (*type:* `keyword()`) - Call options
594-
595-
## Returns
596-
597-
* `{:ok, %GoogleApi.IDS.V1.Model.Policy{}}` on success
598-
* `{:error, info}` on failure
599-
"""
600-
@spec ids_projects_locations_endpoints_set_iam_policy(
601-
Tesla.Env.client(),
602-
String.t(),
603-
keyword(),
604-
keyword()
605-
) ::
606-
{:ok, GoogleApi.IDS.V1.Model.Policy.t()}
607-
| {:ok, Tesla.Env.t()}
608-
| {:ok, list()}
609-
| {:error, any()}
610-
def ids_projects_locations_endpoints_set_iam_policy(
611-
connection,
612-
resource,
613-
optional_params \\ [],
614-
opts \\ []
615-
) do
616-
optional_params_config = %{
617-
:"$.xgafv" => :query,
618-
:access_token => :query,
619-
:alt => :query,
620-
:callback => :query,
621-
:fields => :query,
622-
:key => :query,
623-
:oauth_token => :query,
624-
:prettyPrint => :query,
625-
:quotaUser => :query,
626-
:uploadType => :query,
627-
:upload_protocol => :query,
628-
:body => :body
629-
}
630-
631-
request =
632-
Request.new()
633-
|> Request.method(:post)
634-
|> Request.url("/v1/{+resource}:setIamPolicy", %{
635-
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
636-
})
637-
|> Request.add_optional_params(optional_params_config, optional_params)
638-
|> Request.library_version(@library_version)
639-
640-
connection
641-
|> Connection.execute(request)
642-
|> Response.decode(opts ++ [struct: %GoogleApi.IDS.V1.Model.Policy{}])
643-
end
644-
645-
@doc """
646-
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.
647-
648-
## Parameters
649-
650-
* `connection` (*type:* `GoogleApi.IDS.V1.Connection.t`) - Connection to server
651-
* `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.
652-
* `optional_params` (*type:* `keyword()`) - Optional parameters
653-
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
654-
* `:access_token` (*type:* `String.t`) - OAuth access token.
655-
* `:alt` (*type:* `String.t`) - Data format for response.
656-
* `:callback` (*type:* `String.t`) - JSONP
657-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
658-
* `: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.
659-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
660-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
661-
* `: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.
662-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
663-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
664-
* `:body` (*type:* `GoogleApi.IDS.V1.Model.TestIamPermissionsRequest.t`) -
665-
* `opts` (*type:* `keyword()`) - Call options
666-
667-
## Returns
668-
669-
* `{:ok, %GoogleApi.IDS.V1.Model.TestIamPermissionsResponse{}}` on success
670-
* `{:error, info}` on failure
671-
"""
672-
@spec ids_projects_locations_endpoints_test_iam_permissions(
673-
Tesla.Env.client(),
674-
String.t(),
675-
keyword(),
676-
keyword()
677-
) ::
678-
{:ok, GoogleApi.IDS.V1.Model.TestIamPermissionsResponse.t()}
679-
| {:ok, Tesla.Env.t()}
680-
| {:ok, list()}
681-
| {:error, any()}
682-
def ids_projects_locations_endpoints_test_iam_permissions(
683-
connection,
684-
resource,
685-
optional_params \\ [],
686-
opts \\ []
687-
) do
688-
optional_params_config = %{
689-
:"$.xgafv" => :query,
690-
:access_token => :query,
691-
:alt => :query,
692-
:callback => :query,
693-
:fields => :query,
694-
:key => :query,
695-
:oauth_token => :query,
696-
:prettyPrint => :query,
697-
:quotaUser => :query,
698-
:uploadType => :query,
699-
:upload_protocol => :query,
700-
:body => :body
701-
}
702-
703-
request =
704-
Request.new()
705-
|> Request.method(:post)
706-
|> Request.url("/v1/{+resource}:testIamPermissions", %{
707-
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
708-
})
709-
|> Request.add_optional_params(optional_params_config, optional_params)
710-
|> Request.library_version(@library_version)
711-
712-
connection
713-
|> Connection.execute(request)
714-
|> Response.decode(opts ++ [struct: %GoogleApi.IDS.V1.Model.TestIamPermissionsResponse{}])
715-
end
716-
717501
@doc """
718502
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
719503

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

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

23-
@discovery_revision "20250214"
23+
@discovery_revision "20250304"
2424

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

clients/ids/lib/google_api/ids/v1/model/audit_config.ex

Lines changed: 0 additions & 49 deletions
This file was deleted.

clients/ids/lib/google_api/ids/v1/model/audit_log_config.ex

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)