@@ -1814,6 +1814,41 @@ def patch_project_location_oauth_client_credential(name, oauth_client_credential
1814
1814
execute_or_queue_command ( command , &block )
1815
1815
end
1816
1816
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
+
1817
1852
# Creates a new WorkloadIdentityPool. You cannot reuse the name of a deleted
1818
1853
# pool until 30 days after deletion.
1819
1854
# @param [String] parent
@@ -1998,6 +2033,53 @@ def list_project_location_workload_identity_pools(parent, page_size: nil, page_t
1998
2033
execute_or_queue_command ( command , &block )
1999
2034
end
2000
2035
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
+
2001
2083
# Updates an existing WorkloadIdentityPool.
2002
2084
# @param [String] name
2003
2085
# Output only. The resource name of the pool.
@@ -2034,6 +2116,75 @@ def patch_project_location_workload_identity_pool(name, workload_identity_pool_o
2034
2116
execute_or_queue_command ( command , &block )
2035
2117
end
2036
2118
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
+
2037
2188
# Sets the IAM policies on a WorkloadIdentityPool
2038
2189
# @param [String] resource
2039
2190
# REQUIRED: The resource for which the policy is being specified. See [Resource
0 commit comments