google-apis-iam_v1 0.64.0 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/iam_v1/classes.rb +482 -0
- data/lib/google/apis/iam_v1/gem_version.rb +2 -2
- data/lib/google/apis/iam_v1/representations.rb +250 -0
- data/lib/google/apis/iam_v1/service.rb +694 -12
- metadata +3 -3
@@ -1921,6 +1921,42 @@ module Google
|
|
1921
1921
|
execute_or_queue_command(command, &block)
|
1922
1922
|
end
|
1923
1923
|
|
1924
|
+
# Gets IAM policies for one of WorkloadIdentityPool
|
1925
|
+
# WorkloadIdentityPoolNamespace WorkloadIdentityPoolManagedIdentity
|
1926
|
+
# @param [String] resource
|
1927
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1928
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1929
|
+
# appropriate value for this field.
|
1930
|
+
# @param [Google::Apis::IamV1::GetIamPolicyRequest] get_iam_policy_request_object
|
1931
|
+
# @param [String] fields
|
1932
|
+
# Selector specifying which fields to include in a partial response.
|
1933
|
+
# @param [String] quota_user
|
1934
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1935
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1936
|
+
# @param [Google::Apis::RequestOptions] options
|
1937
|
+
# Request-specific options
|
1938
|
+
#
|
1939
|
+
# @yield [result, err] Result & error if block supplied
|
1940
|
+
# @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
|
1941
|
+
# @yieldparam err [StandardError] error object if request failed
|
1942
|
+
#
|
1943
|
+
# @return [Google::Apis::IamV1::Policy]
|
1944
|
+
#
|
1945
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1946
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1947
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1948
|
+
def get_workload_identity_pool_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1949
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
1950
|
+
command.request_representation = Google::Apis::IamV1::GetIamPolicyRequest::Representation
|
1951
|
+
command.request_object = get_iam_policy_request_object
|
1952
|
+
command.response_representation = Google::Apis::IamV1::Policy::Representation
|
1953
|
+
command.response_class = Google::Apis::IamV1::Policy
|
1954
|
+
command.params['resource'] = resource unless resource.nil?
|
1955
|
+
command.query['fields'] = fields unless fields.nil?
|
1956
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1957
|
+
execute_or_queue_command(command, &block)
|
1958
|
+
end
|
1959
|
+
|
1924
1960
|
# Lists all non-deleted WorkloadIdentityPools in a project. If `show_deleted` is
|
1925
1961
|
# set to `true`, then deleted pools are also listed.
|
1926
1962
|
# @param [String] parent
|
@@ -1999,6 +2035,78 @@ module Google
|
|
1999
2035
|
execute_or_queue_command(command, &block)
|
2000
2036
|
end
|
2001
2037
|
|
2038
|
+
# Sets IAM policies on one of WorkloadIdentityPool WorkloadIdentityPoolNamespace
|
2039
|
+
# WorkloadIdentityPoolManagedIdentity
|
2040
|
+
# @param [String] resource
|
2041
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
2042
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2043
|
+
# appropriate value for this field.
|
2044
|
+
# @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
|
2045
|
+
# @param [String] fields
|
2046
|
+
# Selector specifying which fields to include in a partial response.
|
2047
|
+
# @param [String] quota_user
|
2048
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2049
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2050
|
+
# @param [Google::Apis::RequestOptions] options
|
2051
|
+
# Request-specific options
|
2052
|
+
#
|
2053
|
+
# @yield [result, err] Result & error if block supplied
|
2054
|
+
# @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
|
2055
|
+
# @yieldparam err [StandardError] error object if request failed
|
2056
|
+
#
|
2057
|
+
# @return [Google::Apis::IamV1::Policy]
|
2058
|
+
#
|
2059
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2060
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2061
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2062
|
+
def set_workload_identity_pool_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2063
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
2064
|
+
command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
|
2065
|
+
command.request_object = set_iam_policy_request_object
|
2066
|
+
command.response_representation = Google::Apis::IamV1::Policy::Representation
|
2067
|
+
command.response_class = Google::Apis::IamV1::Policy
|
2068
|
+
command.params['resource'] = resource unless resource.nil?
|
2069
|
+
command.query['fields'] = fields unless fields.nil?
|
2070
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2071
|
+
execute_or_queue_command(command, &block)
|
2072
|
+
end
|
2073
|
+
|
2074
|
+
# Returns the caller's permissions on one of WorkloadIdentityPool
|
2075
|
+
# WorkloadIdentityPoolNamespace WorkloadIdentityPoolManagedIdentity
|
2076
|
+
# @param [String] resource
|
2077
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2078
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2079
|
+
# appropriate value for this field.
|
2080
|
+
# @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
2081
|
+
# @param [String] fields
|
2082
|
+
# Selector specifying which fields to include in a partial response.
|
2083
|
+
# @param [String] quota_user
|
2084
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2085
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2086
|
+
# @param [Google::Apis::RequestOptions] options
|
2087
|
+
# Request-specific options
|
2088
|
+
#
|
2089
|
+
# @yield [result, err] Result & error if block supplied
|
2090
|
+
# @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object
|
2091
|
+
# @yieldparam err [StandardError] error object if request failed
|
2092
|
+
#
|
2093
|
+
# @return [Google::Apis::IamV1::TestIamPermissionsResponse]
|
2094
|
+
#
|
2095
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2096
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2097
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2098
|
+
def test_workload_identity_pool_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2099
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
2100
|
+
command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation
|
2101
|
+
command.request_object = test_iam_permissions_request_object
|
2102
|
+
command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation
|
2103
|
+
command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse
|
2104
|
+
command.params['resource'] = resource unless resource.nil?
|
2105
|
+
command.query['fields'] = fields unless fields.nil?
|
2106
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2107
|
+
execute_or_queue_command(command, &block)
|
2108
|
+
end
|
2109
|
+
|
2002
2110
|
# Undeletes a WorkloadIdentityPool, as long as it was deleted fewer than 30 days
|
2003
2111
|
# ago.
|
2004
2112
|
# @param [String] name
|
@@ -2033,6 +2141,589 @@ module Google
|
|
2033
2141
|
execute_or_queue_command(command, &block)
|
2034
2142
|
end
|
2035
2143
|
|
2144
|
+
# Creates a new WorkloadIdentityPoolNamespace in a WorkloadIdentityPool.
|
2145
|
+
# @param [String] parent
|
2146
|
+
# Required. The parent resource to create the namespace in. The only supported
|
2147
|
+
# location is `global`.
|
2148
|
+
# @param [Google::Apis::IamV1::WorkloadIdentityPoolNamespace] workload_identity_pool_namespace_object
|
2149
|
+
# @param [String] workload_identity_pool_namespace_id
|
2150
|
+
# Required. The ID to use for the namespace. This value must: * contain at most
|
2151
|
+
# 63 characters * contain only lowercase alphanumeric characters or `-` * start
|
2152
|
+
# with an alphanumeric character * end with an alphanumeric character The prefix
|
2153
|
+
# "gcp-" will be reserved for future uses.
|
2154
|
+
# @param [String] fields
|
2155
|
+
# Selector specifying which fields to include in a partial response.
|
2156
|
+
# @param [String] quota_user
|
2157
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2158
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2159
|
+
# @param [Google::Apis::RequestOptions] options
|
2160
|
+
# Request-specific options
|
2161
|
+
#
|
2162
|
+
# @yield [result, err] Result & error if block supplied
|
2163
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2164
|
+
# @yieldparam err [StandardError] error object if request failed
|
2165
|
+
#
|
2166
|
+
# @return [Google::Apis::IamV1::Operation]
|
2167
|
+
#
|
2168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2171
|
+
def create_project_location_workload_identity_pool_namespace(parent, workload_identity_pool_namespace_object = nil, workload_identity_pool_namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2172
|
+
command = make_simple_command(:post, 'v1/{+parent}/namespaces', options)
|
2173
|
+
command.request_representation = Google::Apis::IamV1::WorkloadIdentityPoolNamespace::Representation
|
2174
|
+
command.request_object = workload_identity_pool_namespace_object
|
2175
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2176
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2177
|
+
command.params['parent'] = parent unless parent.nil?
|
2178
|
+
command.query['workloadIdentityPoolNamespaceId'] = workload_identity_pool_namespace_id unless workload_identity_pool_namespace_id.nil?
|
2179
|
+
command.query['fields'] = fields unless fields.nil?
|
2180
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2181
|
+
execute_or_queue_command(command, &block)
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
# Deletes a WorkloadIdentityPoolNamespace. You can undelete a namespace for 30
|
2185
|
+
# days. After 30 days, deletion is permanent.
|
2186
|
+
# @param [String] name
|
2187
|
+
# Required. The name of the namespace to delete.
|
2188
|
+
# @param [String] fields
|
2189
|
+
# Selector specifying which fields to include in a partial response.
|
2190
|
+
# @param [String] quota_user
|
2191
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2192
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2193
|
+
# @param [Google::Apis::RequestOptions] options
|
2194
|
+
# Request-specific options
|
2195
|
+
#
|
2196
|
+
# @yield [result, err] Result & error if block supplied
|
2197
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2198
|
+
# @yieldparam err [StandardError] error object if request failed
|
2199
|
+
#
|
2200
|
+
# @return [Google::Apis::IamV1::Operation]
|
2201
|
+
#
|
2202
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2203
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2204
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2205
|
+
def delete_project_location_workload_identity_pool_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
|
2206
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2207
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2208
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2209
|
+
command.params['name'] = name unless name.nil?
|
2210
|
+
command.query['fields'] = fields unless fields.nil?
|
2211
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2212
|
+
execute_or_queue_command(command, &block)
|
2213
|
+
end
|
2214
|
+
|
2215
|
+
# Gets an individual WorkloadIdentityPoolNamespace.
|
2216
|
+
# @param [String] name
|
2217
|
+
# Required. The name of the namespace to retrieve.
|
2218
|
+
# @param [String] fields
|
2219
|
+
# Selector specifying which fields to include in a partial response.
|
2220
|
+
# @param [String] quota_user
|
2221
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2222
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2223
|
+
# @param [Google::Apis::RequestOptions] options
|
2224
|
+
# Request-specific options
|
2225
|
+
#
|
2226
|
+
# @yield [result, err] Result & error if block supplied
|
2227
|
+
# @yieldparam result [Google::Apis::IamV1::WorkloadIdentityPoolNamespace] parsed result object
|
2228
|
+
# @yieldparam err [StandardError] error object if request failed
|
2229
|
+
#
|
2230
|
+
# @return [Google::Apis::IamV1::WorkloadIdentityPoolNamespace]
|
2231
|
+
#
|
2232
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2233
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2234
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2235
|
+
def get_project_location_workload_identity_pool_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
|
2236
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2237
|
+
command.response_representation = Google::Apis::IamV1::WorkloadIdentityPoolNamespace::Representation
|
2238
|
+
command.response_class = Google::Apis::IamV1::WorkloadIdentityPoolNamespace
|
2239
|
+
command.params['name'] = name unless name.nil?
|
2240
|
+
command.query['fields'] = fields unless fields.nil?
|
2241
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2242
|
+
execute_or_queue_command(command, &block)
|
2243
|
+
end
|
2244
|
+
|
2245
|
+
# Lists all non-deleted WorkloadIdentityPoolNamespaces in a workload identity
|
2246
|
+
# pool. If `show_deleted` is set to `true`, then deleted namespaces are also
|
2247
|
+
# listed.
|
2248
|
+
# @param [String] parent
|
2249
|
+
# Required. The parent resource to list namespaces for.
|
2250
|
+
# @param [Fixnum] page_size
|
2251
|
+
# The maximum number of namespaces to return. If unspecified, at most 50
|
2252
|
+
# namespaces are returned. The maximum value is 1000; values above are 1000
|
2253
|
+
# truncated to 1000.
|
2254
|
+
# @param [String] page_token
|
2255
|
+
# A page token, received from a previous `ListWorkloadIdentityPoolNamespaces`
|
2256
|
+
# call. Provide this to retrieve the subsequent page.
|
2257
|
+
# @param [Boolean] show_deleted
|
2258
|
+
# Whether to return soft-deleted namespaces.
|
2259
|
+
# @param [String] fields
|
2260
|
+
# Selector specifying which fields to include in a partial response.
|
2261
|
+
# @param [String] quota_user
|
2262
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2263
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2264
|
+
# @param [Google::Apis::RequestOptions] options
|
2265
|
+
# Request-specific options
|
2266
|
+
#
|
2267
|
+
# @yield [result, err] Result & error if block supplied
|
2268
|
+
# @yieldparam result [Google::Apis::IamV1::ListWorkloadIdentityPoolNamespacesResponse] parsed result object
|
2269
|
+
# @yieldparam err [StandardError] error object if request failed
|
2270
|
+
#
|
2271
|
+
# @return [Google::Apis::IamV1::ListWorkloadIdentityPoolNamespacesResponse]
|
2272
|
+
#
|
2273
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2274
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2275
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2276
|
+
def list_project_location_workload_identity_pool_namespaces(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2277
|
+
command = make_simple_command(:get, 'v1/{+parent}/namespaces', options)
|
2278
|
+
command.response_representation = Google::Apis::IamV1::ListWorkloadIdentityPoolNamespacesResponse::Representation
|
2279
|
+
command.response_class = Google::Apis::IamV1::ListWorkloadIdentityPoolNamespacesResponse
|
2280
|
+
command.params['parent'] = parent unless parent.nil?
|
2281
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2282
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2283
|
+
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
2284
|
+
command.query['fields'] = fields unless fields.nil?
|
2285
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2286
|
+
execute_or_queue_command(command, &block)
|
2287
|
+
end
|
2288
|
+
|
2289
|
+
# Updates an existing WorkloadIdentityPoolNamespace in a WorkloadIdentityPool.
|
2290
|
+
# @param [String] name
|
2291
|
+
# Output only. The resource name of the namespace.
|
2292
|
+
# @param [Google::Apis::IamV1::WorkloadIdentityPoolNamespace] workload_identity_pool_namespace_object
|
2293
|
+
# @param [String] update_mask
|
2294
|
+
# Required. The list of fields to update.
|
2295
|
+
# @param [String] fields
|
2296
|
+
# Selector specifying which fields to include in a partial response.
|
2297
|
+
# @param [String] quota_user
|
2298
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2299
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2300
|
+
# @param [Google::Apis::RequestOptions] options
|
2301
|
+
# Request-specific options
|
2302
|
+
#
|
2303
|
+
# @yield [result, err] Result & error if block supplied
|
2304
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2305
|
+
# @yieldparam err [StandardError] error object if request failed
|
2306
|
+
#
|
2307
|
+
# @return [Google::Apis::IamV1::Operation]
|
2308
|
+
#
|
2309
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2310
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2311
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2312
|
+
def patch_project_location_workload_identity_pool_namespace(name, workload_identity_pool_namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2313
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2314
|
+
command.request_representation = Google::Apis::IamV1::WorkloadIdentityPoolNamespace::Representation
|
2315
|
+
command.request_object = workload_identity_pool_namespace_object
|
2316
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2317
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2318
|
+
command.params['name'] = name unless name.nil?
|
2319
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2320
|
+
command.query['fields'] = fields unless fields.nil?
|
2321
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2322
|
+
execute_or_queue_command(command, &block)
|
2323
|
+
end
|
2324
|
+
|
2325
|
+
# Undeletes a WorkloadIdentityPoolNamespace, as long as it was deleted fewer
|
2326
|
+
# than 30 days ago.
|
2327
|
+
# @param [String] name
|
2328
|
+
# Required. The name of the namespace to undelete.
|
2329
|
+
# @param [Google::Apis::IamV1::UndeleteWorkloadIdentityPoolNamespaceRequest] undelete_workload_identity_pool_namespace_request_object
|
2330
|
+
# @param [String] fields
|
2331
|
+
# Selector specifying which fields to include in a partial response.
|
2332
|
+
# @param [String] quota_user
|
2333
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2334
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2335
|
+
# @param [Google::Apis::RequestOptions] options
|
2336
|
+
# Request-specific options
|
2337
|
+
#
|
2338
|
+
# @yield [result, err] Result & error if block supplied
|
2339
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2340
|
+
# @yieldparam err [StandardError] error object if request failed
|
2341
|
+
#
|
2342
|
+
# @return [Google::Apis::IamV1::Operation]
|
2343
|
+
#
|
2344
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2345
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2346
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2347
|
+
def undelete_workload_identity_pool_namespace(name, undelete_workload_identity_pool_namespace_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2348
|
+
command = make_simple_command(:post, 'v1/{+name}:undelete', options)
|
2349
|
+
command.request_representation = Google::Apis::IamV1::UndeleteWorkloadIdentityPoolNamespaceRequest::Representation
|
2350
|
+
command.request_object = undelete_workload_identity_pool_namespace_request_object
|
2351
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2352
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2353
|
+
command.params['name'] = name unless name.nil?
|
2354
|
+
command.query['fields'] = fields unless fields.nil?
|
2355
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2356
|
+
execute_or_queue_command(command, &block)
|
2357
|
+
end
|
2358
|
+
|
2359
|
+
# Add an AttestationRule on a WorkloadIdentityPoolManagedIdentity. The total
|
2360
|
+
# attestation rules after addition must not exceed 50.
|
2361
|
+
# @param [String] resource
|
2362
|
+
# Required. The resource name of the managed identity or namespace resource to
|
2363
|
+
# add an attestation rule to.
|
2364
|
+
# @param [Google::Apis::IamV1::AddAttestationRuleRequest] add_attestation_rule_request_object
|
2365
|
+
# @param [String] fields
|
2366
|
+
# Selector specifying which fields to include in a partial response.
|
2367
|
+
# @param [String] quota_user
|
2368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2370
|
+
# @param [Google::Apis::RequestOptions] options
|
2371
|
+
# Request-specific options
|
2372
|
+
#
|
2373
|
+
# @yield [result, err] Result & error if block supplied
|
2374
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2375
|
+
# @yieldparam err [StandardError] error object if request failed
|
2376
|
+
#
|
2377
|
+
# @return [Google::Apis::IamV1::Operation]
|
2378
|
+
#
|
2379
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2380
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2381
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2382
|
+
def add_managed_identity_attestation_rule(resource, add_attestation_rule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2383
|
+
command = make_simple_command(:post, 'v1/{+resource}:addAttestationRule', options)
|
2384
|
+
command.request_representation = Google::Apis::IamV1::AddAttestationRuleRequest::Representation
|
2385
|
+
command.request_object = add_attestation_rule_request_object
|
2386
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2387
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2388
|
+
command.params['resource'] = resource unless resource.nil?
|
2389
|
+
command.query['fields'] = fields unless fields.nil?
|
2390
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2391
|
+
execute_or_queue_command(command, &block)
|
2392
|
+
end
|
2393
|
+
|
2394
|
+
# Creates a new WorkloadIdentityPoolManagedIdentity in a
|
2395
|
+
# WorkloadIdentityPoolNamespace.
|
2396
|
+
# @param [String] parent
|
2397
|
+
# Required. The parent resource to create the manage identity in. The only
|
2398
|
+
# supported location is `global`.
|
2399
|
+
# @param [Google::Apis::IamV1::WorkloadIdentityPoolManagedIdentity] workload_identity_pool_managed_identity_object
|
2400
|
+
# @param [String] workload_identity_pool_managed_identity_id
|
2401
|
+
# Required. The ID to use for the managed identity. This value must: * contain
|
2402
|
+
# at most 63 characters * contain only lowercase alphanumeric characters or `-` *
|
2403
|
+
# start with an alphanumeric character * end with an alphanumeric character The
|
2404
|
+
# prefix "gcp-" will be reserved for future uses.
|
2405
|
+
# @param [String] fields
|
2406
|
+
# Selector specifying which fields to include in a partial response.
|
2407
|
+
# @param [String] quota_user
|
2408
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2409
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2410
|
+
# @param [Google::Apis::RequestOptions] options
|
2411
|
+
# Request-specific options
|
2412
|
+
#
|
2413
|
+
# @yield [result, err] Result & error if block supplied
|
2414
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2415
|
+
# @yieldparam err [StandardError] error object if request failed
|
2416
|
+
#
|
2417
|
+
# @return [Google::Apis::IamV1::Operation]
|
2418
|
+
#
|
2419
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2420
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2421
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2422
|
+
def create_project_location_workload_identity_pool_namespace_managed_identity(parent, workload_identity_pool_managed_identity_object = nil, workload_identity_pool_managed_identity_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2423
|
+
command = make_simple_command(:post, 'v1/{+parent}/managedIdentities', options)
|
2424
|
+
command.request_representation = Google::Apis::IamV1::WorkloadIdentityPoolManagedIdentity::Representation
|
2425
|
+
command.request_object = workload_identity_pool_managed_identity_object
|
2426
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2427
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2428
|
+
command.params['parent'] = parent unless parent.nil?
|
2429
|
+
command.query['workloadIdentityPoolManagedIdentityId'] = workload_identity_pool_managed_identity_id unless workload_identity_pool_managed_identity_id.nil?
|
2430
|
+
command.query['fields'] = fields unless fields.nil?
|
2431
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2432
|
+
execute_or_queue_command(command, &block)
|
2433
|
+
end
|
2434
|
+
|
2435
|
+
# Deletes a WorkloadIdentityPoolManagedIdentity. You can undelete a managed
|
2436
|
+
# identity for 30 days. After 30 days, deletion is permanent.
|
2437
|
+
# @param [String] name
|
2438
|
+
# Required. The name of the managed identity to delete.
|
2439
|
+
# @param [String] fields
|
2440
|
+
# Selector specifying which fields to include in a partial response.
|
2441
|
+
# @param [String] quota_user
|
2442
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2443
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2444
|
+
# @param [Google::Apis::RequestOptions] options
|
2445
|
+
# Request-specific options
|
2446
|
+
#
|
2447
|
+
# @yield [result, err] Result & error if block supplied
|
2448
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2449
|
+
# @yieldparam err [StandardError] error object if request failed
|
2450
|
+
#
|
2451
|
+
# @return [Google::Apis::IamV1::Operation]
|
2452
|
+
#
|
2453
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2454
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2455
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2456
|
+
def delete_project_location_workload_identity_pool_namespace_managed_identity(name, fields: nil, quota_user: nil, options: nil, &block)
|
2457
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2458
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2459
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2460
|
+
command.params['name'] = name unless name.nil?
|
2461
|
+
command.query['fields'] = fields unless fields.nil?
|
2462
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2463
|
+
execute_or_queue_command(command, &block)
|
2464
|
+
end
|
2465
|
+
|
2466
|
+
# Gets an individual WorkloadIdentityPoolManagedIdentity.
|
2467
|
+
# @param [String] name
|
2468
|
+
# Required. The name of the managed identity to retrieve.
|
2469
|
+
# @param [String] fields
|
2470
|
+
# Selector specifying which fields to include in a partial response.
|
2471
|
+
# @param [String] quota_user
|
2472
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2473
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2474
|
+
# @param [Google::Apis::RequestOptions] options
|
2475
|
+
# Request-specific options
|
2476
|
+
#
|
2477
|
+
# @yield [result, err] Result & error if block supplied
|
2478
|
+
# @yieldparam result [Google::Apis::IamV1::WorkloadIdentityPoolManagedIdentity] parsed result object
|
2479
|
+
# @yieldparam err [StandardError] error object if request failed
|
2480
|
+
#
|
2481
|
+
# @return [Google::Apis::IamV1::WorkloadIdentityPoolManagedIdentity]
|
2482
|
+
#
|
2483
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2484
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2485
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2486
|
+
def get_project_location_workload_identity_pool_namespace_managed_identity(name, fields: nil, quota_user: nil, options: nil, &block)
|
2487
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2488
|
+
command.response_representation = Google::Apis::IamV1::WorkloadIdentityPoolManagedIdentity::Representation
|
2489
|
+
command.response_class = Google::Apis::IamV1::WorkloadIdentityPoolManagedIdentity
|
2490
|
+
command.params['name'] = name unless name.nil?
|
2491
|
+
command.query['fields'] = fields unless fields.nil?
|
2492
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2493
|
+
execute_or_queue_command(command, &block)
|
2494
|
+
end
|
2495
|
+
|
2496
|
+
# Lists all non-deleted WorkloadIdentityPoolManagedIdentitys in a namespace. If `
|
2497
|
+
# show_deleted` is set to `true`, then deleted managed identites are also listed.
|
2498
|
+
# @param [String] parent
|
2499
|
+
# Required. The parent resource to list managed identities for.
|
2500
|
+
# @param [Fixnum] page_size
|
2501
|
+
# The maximum number of managed identities to return. If unspecified, at most 50
|
2502
|
+
# managed identities are returned. The maximum value is 1000; values above are
|
2503
|
+
# 1000 truncated to 1000.
|
2504
|
+
# @param [String] page_token
|
2505
|
+
# A page token, received from a previous `
|
2506
|
+
# ListWorkloadIdentityPoolManagedIdentities` call. Provide this to retrieve the
|
2507
|
+
# subsequent page.
|
2508
|
+
# @param [Boolean] show_deleted
|
2509
|
+
# Whether to return soft-deleted managed identities.
|
2510
|
+
# @param [String] fields
|
2511
|
+
# Selector specifying which fields to include in a partial response.
|
2512
|
+
# @param [String] quota_user
|
2513
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2514
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2515
|
+
# @param [Google::Apis::RequestOptions] options
|
2516
|
+
# Request-specific options
|
2517
|
+
#
|
2518
|
+
# @yield [result, err] Result & error if block supplied
|
2519
|
+
# @yieldparam result [Google::Apis::IamV1::ListWorkloadIdentityPoolManagedIdentitiesResponse] parsed result object
|
2520
|
+
# @yieldparam err [StandardError] error object if request failed
|
2521
|
+
#
|
2522
|
+
# @return [Google::Apis::IamV1::ListWorkloadIdentityPoolManagedIdentitiesResponse]
|
2523
|
+
#
|
2524
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2525
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2526
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2527
|
+
def list_project_location_workload_identity_pool_namespace_managed_identities(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2528
|
+
command = make_simple_command(:get, 'v1/{+parent}/managedIdentities', options)
|
2529
|
+
command.response_representation = Google::Apis::IamV1::ListWorkloadIdentityPoolManagedIdentitiesResponse::Representation
|
2530
|
+
command.response_class = Google::Apis::IamV1::ListWorkloadIdentityPoolManagedIdentitiesResponse
|
2531
|
+
command.params['parent'] = parent unless parent.nil?
|
2532
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2533
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2534
|
+
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
2535
|
+
command.query['fields'] = fields unless fields.nil?
|
2536
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2537
|
+
execute_or_queue_command(command, &block)
|
2538
|
+
end
|
2539
|
+
|
2540
|
+
# List all AttestationRule on a WorkloadIdentityPoolManagedIdentity.
|
2541
|
+
# @param [String] resource
|
2542
|
+
# Required. The resource name of the managed identity or namespace resource to
|
2543
|
+
# list attestation rules of.
|
2544
|
+
# @param [String] filter
|
2545
|
+
# Optional. A query filter. Supports the following function: * `container_ids()`:
|
2546
|
+
# Returns only the AttestationRules under the specific container ids. The
|
2547
|
+
# function expects a comma-delimited list with only project numbers and must use
|
2548
|
+
# the format `projects/`. For example: `container_ids(projects/, projects/,...)`.
|
2549
|
+
# @param [Fixnum] page_size
|
2550
|
+
# Optional. The maximum number of AttestationRules to return. If unspecified, at
|
2551
|
+
# most 50 AttestationRules are returned. The maximum value is 100; values above
|
2552
|
+
# 100 are truncated to 100.
|
2553
|
+
# @param [String] page_token
|
2554
|
+
# Optional. A page token, received from a previous `
|
2555
|
+
# ListWorkloadIdentityPoolProviderKeys` call. Provide this to retrieve the
|
2556
|
+
# subsequent page.
|
2557
|
+
# @param [String] fields
|
2558
|
+
# Selector specifying which fields to include in a partial response.
|
2559
|
+
# @param [String] quota_user
|
2560
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2561
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2562
|
+
# @param [Google::Apis::RequestOptions] options
|
2563
|
+
# Request-specific options
|
2564
|
+
#
|
2565
|
+
# @yield [result, err] Result & error if block supplied
|
2566
|
+
# @yieldparam result [Google::Apis::IamV1::ListAttestationRulesResponse] parsed result object
|
2567
|
+
# @yieldparam err [StandardError] error object if request failed
|
2568
|
+
#
|
2569
|
+
# @return [Google::Apis::IamV1::ListAttestationRulesResponse]
|
2570
|
+
#
|
2571
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2572
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2573
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2574
|
+
def list_project_location_workload_identity_pool_namespace_managed_identity_attestation_rules(resource, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2575
|
+
command = make_simple_command(:get, 'v1/{+resource}:listAttestationRules', options)
|
2576
|
+
command.response_representation = Google::Apis::IamV1::ListAttestationRulesResponse::Representation
|
2577
|
+
command.response_class = Google::Apis::IamV1::ListAttestationRulesResponse
|
2578
|
+
command.params['resource'] = resource unless resource.nil?
|
2579
|
+
command.query['filter'] = filter unless filter.nil?
|
2580
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2581
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2582
|
+
command.query['fields'] = fields unless fields.nil?
|
2583
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2584
|
+
execute_or_queue_command(command, &block)
|
2585
|
+
end
|
2586
|
+
|
2587
|
+
# Updates an existing WorkloadIdentityPoolManagedIdentity in a
|
2588
|
+
# WorkloadIdentityPoolNamespace.
|
2589
|
+
# @param [String] name
|
2590
|
+
# Output only. The resource name of the managed identity.
|
2591
|
+
# @param [Google::Apis::IamV1::WorkloadIdentityPoolManagedIdentity] workload_identity_pool_managed_identity_object
|
2592
|
+
# @param [String] update_mask
|
2593
|
+
# Required. The list of fields to update.
|
2594
|
+
# @param [String] fields
|
2595
|
+
# Selector specifying which fields to include in a partial response.
|
2596
|
+
# @param [String] quota_user
|
2597
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2598
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2599
|
+
# @param [Google::Apis::RequestOptions] options
|
2600
|
+
# Request-specific options
|
2601
|
+
#
|
2602
|
+
# @yield [result, err] Result & error if block supplied
|
2603
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2604
|
+
# @yieldparam err [StandardError] error object if request failed
|
2605
|
+
#
|
2606
|
+
# @return [Google::Apis::IamV1::Operation]
|
2607
|
+
#
|
2608
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2609
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2610
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2611
|
+
def patch_project_location_workload_identity_pool_namespace_managed_identity(name, workload_identity_pool_managed_identity_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2612
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2613
|
+
command.request_representation = Google::Apis::IamV1::WorkloadIdentityPoolManagedIdentity::Representation
|
2614
|
+
command.request_object = workload_identity_pool_managed_identity_object
|
2615
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2616
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2617
|
+
command.params['name'] = name unless name.nil?
|
2618
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2619
|
+
command.query['fields'] = fields unless fields.nil?
|
2620
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2621
|
+
execute_or_queue_command(command, &block)
|
2622
|
+
end
|
2623
|
+
|
2624
|
+
# Remove an AttestationRule on a WorkloadIdentityPoolManagedIdentity.
|
2625
|
+
# @param [String] resource
|
2626
|
+
# Required. The resource name of the managed identity or namespace resource to
|
2627
|
+
# remove an attestation rule from.
|
2628
|
+
# @param [Google::Apis::IamV1::RemoveAttestationRuleRequest] remove_attestation_rule_request_object
|
2629
|
+
# @param [String] fields
|
2630
|
+
# Selector specifying which fields to include in a partial response.
|
2631
|
+
# @param [String] quota_user
|
2632
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2633
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2634
|
+
# @param [Google::Apis::RequestOptions] options
|
2635
|
+
# Request-specific options
|
2636
|
+
#
|
2637
|
+
# @yield [result, err] Result & error if block supplied
|
2638
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2639
|
+
# @yieldparam err [StandardError] error object if request failed
|
2640
|
+
#
|
2641
|
+
# @return [Google::Apis::IamV1::Operation]
|
2642
|
+
#
|
2643
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2644
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2645
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2646
|
+
def remove_managed_identity_attestation_rule(resource, remove_attestation_rule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2647
|
+
command = make_simple_command(:post, 'v1/{+resource}:removeAttestationRule', options)
|
2648
|
+
command.request_representation = Google::Apis::IamV1::RemoveAttestationRuleRequest::Representation
|
2649
|
+
command.request_object = remove_attestation_rule_request_object
|
2650
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2651
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2652
|
+
command.params['resource'] = resource unless resource.nil?
|
2653
|
+
command.query['fields'] = fields unless fields.nil?
|
2654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2655
|
+
execute_or_queue_command(command, &block)
|
2656
|
+
end
|
2657
|
+
|
2658
|
+
# Set all AttestationRule on a WorkloadIdentityPoolManagedIdentity. A maximum of
|
2659
|
+
# 50 AttestationRules can be set.
|
2660
|
+
# @param [String] resource
|
2661
|
+
# Required. The resource name of the managed identity or namespace resource to
|
2662
|
+
# add an attestation rule to.
|
2663
|
+
# @param [Google::Apis::IamV1::SetAttestationRulesRequest] set_attestation_rules_request_object
|
2664
|
+
# @param [String] fields
|
2665
|
+
# Selector specifying which fields to include in a partial response.
|
2666
|
+
# @param [String] quota_user
|
2667
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2668
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2669
|
+
# @param [Google::Apis::RequestOptions] options
|
2670
|
+
# Request-specific options
|
2671
|
+
#
|
2672
|
+
# @yield [result, err] Result & error if block supplied
|
2673
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2674
|
+
# @yieldparam err [StandardError] error object if request failed
|
2675
|
+
#
|
2676
|
+
# @return [Google::Apis::IamV1::Operation]
|
2677
|
+
#
|
2678
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2679
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2680
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2681
|
+
def set_managed_identity_attestation_rules(resource, set_attestation_rules_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2682
|
+
command = make_simple_command(:post, 'v1/{+resource}:setAttestationRules', options)
|
2683
|
+
command.request_representation = Google::Apis::IamV1::SetAttestationRulesRequest::Representation
|
2684
|
+
command.request_object = set_attestation_rules_request_object
|
2685
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2686
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2687
|
+
command.params['resource'] = resource unless resource.nil?
|
2688
|
+
command.query['fields'] = fields unless fields.nil?
|
2689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2690
|
+
execute_or_queue_command(command, &block)
|
2691
|
+
end
|
2692
|
+
|
2693
|
+
# Undeletes a WorkloadIdentityPoolManagedIdentity, as long as it was deleted
|
2694
|
+
# fewer than 30 days ago.
|
2695
|
+
# @param [String] name
|
2696
|
+
# Required. The name of the managed identity to undelete.
|
2697
|
+
# @param [Google::Apis::IamV1::UndeleteWorkloadIdentityPoolManagedIdentityRequest] undelete_workload_identity_pool_managed_identity_request_object
|
2698
|
+
# @param [String] fields
|
2699
|
+
# Selector specifying which fields to include in a partial response.
|
2700
|
+
# @param [String] quota_user
|
2701
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2702
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2703
|
+
# @param [Google::Apis::RequestOptions] options
|
2704
|
+
# Request-specific options
|
2705
|
+
#
|
2706
|
+
# @yield [result, err] Result & error if block supplied
|
2707
|
+
# @yieldparam result [Google::Apis::IamV1::Operation] parsed result object
|
2708
|
+
# @yieldparam err [StandardError] error object if request failed
|
2709
|
+
#
|
2710
|
+
# @return [Google::Apis::IamV1::Operation]
|
2711
|
+
#
|
2712
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2713
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2714
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2715
|
+
def undelete_workload_identity_pool_managed_identity(name, undelete_workload_identity_pool_managed_identity_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2716
|
+
command = make_simple_command(:post, 'v1/{+name}:undelete', options)
|
2717
|
+
command.request_representation = Google::Apis::IamV1::UndeleteWorkloadIdentityPoolManagedIdentityRequest::Representation
|
2718
|
+
command.request_object = undelete_workload_identity_pool_managed_identity_request_object
|
2719
|
+
command.response_representation = Google::Apis::IamV1::Operation::Representation
|
2720
|
+
command.response_class = Google::Apis::IamV1::Operation
|
2721
|
+
command.params['name'] = name unless name.nil?
|
2722
|
+
command.query['fields'] = fields unless fields.nil?
|
2723
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2724
|
+
execute_or_queue_command(command, &block)
|
2725
|
+
end
|
2726
|
+
|
2036
2727
|
# Gets the latest state of a long-running operation. Clients can use this method
|
2037
2728
|
# to poll the operation result at intervals as recommended by the API service.
|
2038
2729
|
# @param [String] name
|
@@ -3333,12 +4024,7 @@ module Google
|
|
3333
4024
|
execute_or_queue_command(command, &block)
|
3334
4025
|
end
|
3335
4026
|
|
3336
|
-
#
|
3337
|
-
# com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) method in
|
3338
|
-
# the IAM Service Account Credentials API instead. If you currently use this
|
3339
|
-
# method, see the [migration guide](https://cloud.google.com/iam/help/
|
3340
|
-
# credentials/migrate-api) for instructions. Signs a blob using the system-
|
3341
|
-
# managed private key for a ServiceAccount.
|
4027
|
+
# Signs a blob using the system-managed private key for a ServiceAccount.
|
3342
4028
|
# @param [String] name
|
3343
4029
|
# Required. Deprecated. [Migrate to Service Account Credentials API](https://
|
3344
4030
|
# cloud.google.com/iam/help/credentials/migrate-api). The resource name of the
|
@@ -3381,12 +4067,8 @@ module Google
|
|
3381
4067
|
execute_or_queue_command(command, &block)
|
3382
4068
|
end
|
3383
4069
|
|
3384
|
-
#
|
3385
|
-
#
|
3386
|
-
# the IAM Service Account Credentials API instead. If you currently use this
|
3387
|
-
# method, see the [migration guide](https://cloud.google.com/iam/help/
|
3388
|
-
# credentials/migrate-api) for instructions. Signs a JSON Web Token (JWT) using
|
3389
|
-
# the system-managed private key for a ServiceAccount.
|
4070
|
+
# Signs a JSON Web Token (JWT) using the system-managed private key for a
|
4071
|
+
# ServiceAccount.
|
3390
4072
|
# @param [String] name
|
3391
4073
|
# Required. Deprecated. [Migrate to Service Account Credentials API](https://
|
3392
4074
|
# cloud.google.com/iam/help/credentials/migrate-api). The resource name of the
|