Skip to content

Commit 812599b

Browse files
feat: Automated regeneration of iam v1 client (googleapis#23576)
Auto-created at 2025-06-29 10:29:46 +0000 using the toys pull request generator.
1 parent 2c0d8e5 commit 812599b

File tree

4 files changed

+168
-2
lines changed

4 files changed

+168
-2
lines changed

api_names_out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259945,6 +259945,8 @@
259945259945
"/iam:v1/iam.projects.locations.oauthClients.patch/updateMask": update_mask
259946259946
"/iam:v1/iam.projects.locations.oauthClients.undelete": undelete_oauth_client
259947259947
"/iam:v1/iam.projects.locations.oauthClients.undelete/name": name
259948+
"/iam:v1/iam.projects.locations.workloadIdentityPools.addAttestationRule": add_workload_identity_pool_attestation_rule
259949+
"/iam:v1/iam.projects.locations.workloadIdentityPools.addAttestationRule/resource": resource
259948259950
"/iam:v1/iam.projects.locations.workloadIdentityPools.create": create_project_location_workload_identity_pool
259949259951
"/iam:v1/iam.projects.locations.workloadIdentityPools.create/parent": parent
259950259952
"/iam:v1/iam.projects.locations.workloadIdentityPools.create/workloadIdentityPoolId": workload_identity_pool_id
@@ -259959,6 +259961,11 @@
259959259961
"/iam:v1/iam.projects.locations.workloadIdentityPools.list/pageToken": page_token
259960259962
"/iam:v1/iam.projects.locations.workloadIdentityPools.list/parent": parent
259961259963
"/iam:v1/iam.projects.locations.workloadIdentityPools.list/showDeleted": show_deleted
259964+
"/iam:v1/iam.projects.locations.workloadIdentityPools.listAttestationRules": list_project_location_workload_identity_pool_attestation_rules
259965+
"/iam:v1/iam.projects.locations.workloadIdentityPools.listAttestationRules/filter": filter
259966+
"/iam:v1/iam.projects.locations.workloadIdentityPools.listAttestationRules/pageSize": page_size
259967+
"/iam:v1/iam.projects.locations.workloadIdentityPools.listAttestationRules/pageToken": page_token
259968+
"/iam:v1/iam.projects.locations.workloadIdentityPools.listAttestationRules/resource": resource
259962259969
"/iam:v1/iam.projects.locations.workloadIdentityPools.namespaces.create": create_project_location_workload_identity_pool_namespace
259963259970
"/iam:v1/iam.projects.locations.workloadIdentityPools.namespaces.create/parent": parent
259964259971
"/iam:v1/iam.projects.locations.workloadIdentityPools.namespaces.create/workloadIdentityPoolNamespaceId": workload_identity_pool_namespace_id
@@ -260052,6 +260059,10 @@
260052260059
"/iam:v1/iam.projects.locations.workloadIdentityPools.providers.patch/updateMask": update_mask
260053260060
"/iam:v1/iam.projects.locations.workloadIdentityPools.providers.undelete": undelete_workload_identity_pool_provider
260054260061
"/iam:v1/iam.projects.locations.workloadIdentityPools.providers.undelete/name": name
260062+
"/iam:v1/iam.projects.locations.workloadIdentityPools.removeAttestationRule": remove_workload_identity_pool_attestation_rule
260063+
"/iam:v1/iam.projects.locations.workloadIdentityPools.removeAttestationRule/resource": resource
260064+
"/iam:v1/iam.projects.locations.workloadIdentityPools.setAttestationRules": set_workload_identity_pool_attestation_rules
260065+
"/iam:v1/iam.projects.locations.workloadIdentityPools.setAttestationRules/resource": resource
260055260066
"/iam:v1/iam.projects.locations.workloadIdentityPools.setIamPolicy": set_workload_identity_pool_iam_policy
260056260067
"/iam:v1/iam.projects.locations.workloadIdentityPools.setIamPolicy/resource": resource
260057260068
"/iam:v1/iam.projects.locations.workloadIdentityPools.testIamPermissions": test_workload_identity_pool_iam_permissions

generated/google-apis-iam_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-iam_v1
22

3+
### v0.71.0 (2025-06-29)
4+
5+
* Regenerated from discovery document revision 20250619
6+
37
### v0.70.0 (2025-06-22)
48

59
* Regenerated from discovery document revision 20250613

generated/google-apis-iam_v1/lib/google/apis/iam_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module IamV1
1818
# Version of the google-apis-iam_v1 gem
19-
GEM_VERSION = "0.70.0"
19+
GEM_VERSION = "0.71.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250613"
25+
REVISION = "20250619"
2626
end
2727
end
2828
end

generated/google-apis-iam_v1/lib/google/apis/iam_v1/service.rb

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,41 @@ def patch_project_location_oauth_client_credential(name, oauth_client_credential
18141814
execute_or_queue_command(command, &block)
18151815
end
18161816

1817+
# Add an AttestationRule on a WorkloadIdentityPoolManagedIdentity. The total
1818+
# attestation rules after addition must not exceed 50.
1819+
# @param [String] resource
1820+
# Required. The resource name of the managed identity or namespace resource to
1821+
# add an attestation rule to.
1822+
# @param [Google::Apis::IamV1::AddAttestationRuleRequest] add_attestation_rule_request_object
1823+
# @param [String] fields
1824+
# Selector specifying which fields to include in a partial response.
1825+
# @param [String] quota_user
1826+
# Available to use for quota purposes for server-side applications. Can be any
1827+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1828+
# @param [Google::Apis::RequestOptions] options
1829+
# Request-specific options
1830+
#
1831+
# @yield [result, err] Result & error if block supplied
1832+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
1833+
# @yieldparam err [StandardError] error object if request failed
1834+
#
1835+
# @return [Google::Apis::IamV1::Operation]
1836+
#
1837+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1838+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1839+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1840+
def add_workload_identity_pool_attestation_rule(resource, add_attestation_rule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1841+
command = make_simple_command(:post, 'v1/{+resource}:addAttestationRule', options)
1842+
command.request_representation = Google::Apis::IamV1::AddAttestationRuleRequest::Representation
1843+
command.request_object = add_attestation_rule_request_object
1844+
command.response_representation = Google::Apis::IamV1::Operation::Representation
1845+
command.response_class = Google::Apis::IamV1::Operation
1846+
command.params['resource'] = resource unless resource.nil?
1847+
command.query['fields'] = fields unless fields.nil?
1848+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1849+
execute_or_queue_command(command, &block)
1850+
end
1851+
18171852
# Creates a new WorkloadIdentityPool. You cannot reuse the name of a deleted
18181853
# pool until 30 days after deletion.
18191854
# @param [String] parent
@@ -1998,6 +2033,53 @@ def list_project_location_workload_identity_pools(parent, page_size: nil, page_t
19982033
execute_or_queue_command(command, &block)
19992034
end
20002035

2036+
# List all AttestationRule on a WorkloadIdentityPoolManagedIdentity.
2037+
# @param [String] resource
2038+
# Required. The resource name of the managed identity or namespace resource to
2039+
# list attestation rules of.
2040+
# @param [String] filter
2041+
# Optional. A query filter. Supports the following function: * `container_ids()`:
2042+
# Returns only the AttestationRules under the specific container ids. The
2043+
# function expects a comma-delimited list with only project numbers and must use
2044+
# the format `projects/`. For example: `container_ids(projects/, projects/,...)`.
2045+
# @param [Fixnum] page_size
2046+
# Optional. The maximum number of AttestationRules to return. If unspecified, at
2047+
# most 50 AttestationRules are returned. The maximum value is 100; values above
2048+
# 100 are truncated to 100.
2049+
# @param [String] page_token
2050+
# Optional. A page token, received from a previous `
2051+
# ListWorkloadIdentityPoolProviderKeys` call. Provide this to retrieve the
2052+
# subsequent page.
2053+
# @param [String] fields
2054+
# Selector specifying which fields to include in a partial response.
2055+
# @param [String] quota_user
2056+
# Available to use for quota purposes for server-side applications. Can be any
2057+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2058+
# @param [Google::Apis::RequestOptions] options
2059+
# Request-specific options
2060+
#
2061+
# @yield [result, err] Result & error if block supplied
2062+
# @yieldparam result [Google::Apis::IamV1::ListAttestationRulesResponse] parsed result object
2063+
# @yieldparam err [StandardError] error object if request failed
2064+
#
2065+
# @return [Google::Apis::IamV1::ListAttestationRulesResponse]
2066+
#
2067+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2068+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2069+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2070+
def list_project_location_workload_identity_pool_attestation_rules(resource, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2071+
command = make_simple_command(:get, 'v1/{+resource}:listAttestationRules', options)
2072+
command.response_representation = Google::Apis::IamV1::ListAttestationRulesResponse::Representation
2073+
command.response_class = Google::Apis::IamV1::ListAttestationRulesResponse
2074+
command.params['resource'] = resource unless resource.nil?
2075+
command.query['filter'] = filter unless filter.nil?
2076+
command.query['pageSize'] = page_size unless page_size.nil?
2077+
command.query['pageToken'] = page_token unless page_token.nil?
2078+
command.query['fields'] = fields unless fields.nil?
2079+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2080+
execute_or_queue_command(command, &block)
2081+
end
2082+
20012083
# Updates an existing WorkloadIdentityPool.
20022084
# @param [String] name
20032085
# Output only. The resource name of the pool.
@@ -2034,6 +2116,75 @@ def patch_project_location_workload_identity_pool(name, workload_identity_pool_o
20342116
execute_or_queue_command(command, &block)
20352117
end
20362118

2119+
# Remove an AttestationRule on a WorkloadIdentityPoolManagedIdentity.
2120+
# @param [String] resource
2121+
# Required. The resource name of the managed identity or namespace resource to
2122+
# remove an attestation rule from.
2123+
# @param [Google::Apis::IamV1::RemoveAttestationRuleRequest] remove_attestation_rule_request_object
2124+
# @param [String] fields
2125+
# Selector specifying which fields to include in a partial response.
2126+
# @param [String] quota_user
2127+
# Available to use for quota purposes for server-side applications. Can be any
2128+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2129+
# @param [Google::Apis::RequestOptions] options
2130+
# Request-specific options
2131+
#
2132+
# @yield [result, err] Result & error if block supplied
2133+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
2134+
# @yieldparam err [StandardError] error object if request failed
2135+
#
2136+
# @return [Google::Apis::IamV1::Operation]
2137+
#
2138+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2139+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2140+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2141+
def remove_workload_identity_pool_attestation_rule(resource, remove_attestation_rule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2142+
command = make_simple_command(:post, 'v1/{+resource}:removeAttestationRule', options)
2143+
command.request_representation = Google::Apis::IamV1::RemoveAttestationRuleRequest::Representation
2144+
command.request_object = remove_attestation_rule_request_object
2145+
command.response_representation = Google::Apis::IamV1::Operation::Representation
2146+
command.response_class = Google::Apis::IamV1::Operation
2147+
command.params['resource'] = resource unless resource.nil?
2148+
command.query['fields'] = fields unless fields.nil?
2149+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2150+
execute_or_queue_command(command, &block)
2151+
end
2152+
2153+
# Set all AttestationRule on a WorkloadIdentityPoolManagedIdentity. A maximum of
2154+
# 50 AttestationRules can be set.
2155+
# @param [String] resource
2156+
# Required. The resource name of the managed identity or namespace resource to
2157+
# add an attestation rule to.
2158+
# @param [Google::Apis::IamV1::SetAttestationRulesRequest] set_attestation_rules_request_object
2159+
# @param [String] fields
2160+
# Selector specifying which fields to include in a partial response.
2161+
# @param [String] quota_user
2162+
# Available to use for quota purposes for server-side applications. Can be any
2163+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2164+
# @param [Google::Apis::RequestOptions] options
2165+
# Request-specific options
2166+
#
2167+
# @yield [result, err] Result & error if block supplied
2168+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
2169+
# @yieldparam err [StandardError] error object if request failed
2170+
#
2171+
# @return [Google::Apis::IamV1::Operation]
2172+
#
2173+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2174+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2175+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2176+
def set_workload_identity_pool_attestation_rules(resource, set_attestation_rules_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2177+
command = make_simple_command(:post, 'v1/{+resource}:setAttestationRules', options)
2178+
command.request_representation = Google::Apis::IamV1::SetAttestationRulesRequest::Representation
2179+
command.request_object = set_attestation_rules_request_object
2180+
command.response_representation = Google::Apis::IamV1::Operation::Representation
2181+
command.response_class = Google::Apis::IamV1::Operation
2182+
command.params['resource'] = resource unless resource.nil?
2183+
command.query['fields'] = fields unless fields.nil?
2184+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2185+
execute_or_queue_command(command, &block)
2186+
end
2187+
20372188
# Sets the IAM policies on a WorkloadIdentityPool
20382189
# @param [String] resource
20392190
# REQUIRED: The resource for which the policy is being specified. See [Resource

0 commit comments

Comments
 (0)