| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="iam_v1.html">Identity and Access Management (IAM) API</a> . <a href="iam_v1.projects.html">projects</a> . <a href="iam_v1.projects.locations.html">locations</a> . <a href="iam_v1.projects.locations.workloadIdentityPools.html">workloadIdentityPools</a> . <a href="iam_v1.projects.locations.workloadIdentityPools.namespaces.html">namespaces</a> . <a href="iam_v1.projects.locations.workloadIdentityPools.namespaces.managedIdentities.html">managedIdentities</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="iam_v1.projects.locations.workloadIdentityPools.namespaces.managedIdentities.operations.html">operations()</a></code> |
| 79 |
</p> |
| 80 |
<p class="firstline">Returns the operations Resource.</p> |
| 81 |
|
| 82 |
<p class="toc_element"> |
| 83 |
<code><a href="iam_v1.projects.locations.workloadIdentityPools.namespaces.managedIdentities.workloadSources.html">workloadSources()</a></code> |
| 84 |
</p> |
| 85 |
<p class="firstline">Returns the workloadSources Resource.</p> |
| 86 |
|
| 87 |
<p class="toc_element"> |
| 88 |
<code><a href="#addAttestationRule">addAttestationRule(resource, body=None, x__xgafv=None)</a></code></p> |
| 89 |
<p class="firstline">Add an AttestationRule on a WorkloadIdentityPoolManagedIdentity. The total attestation rules after addition must not exceed 50.</p> |
| 90 |
<p class="toc_element"> |
| 91 |
<code><a href="#close">close()</a></code></p> |
| 92 |
<p class="firstline">Close httplib2 connections.</p> |
| 93 |
<p class="toc_element"> |
| 94 |
<code><a href="#create">create(parent, body=None, workloadIdentityPoolManagedIdentityId=None, x__xgafv=None)</a></code></p> |
| 95 |
<p class="firstline">Creates a new WorkloadIdentityPoolManagedIdentity in a WorkloadIdentityPoolNamespace.</p> |
| 96 |
<p class="toc_element"> |
| 97 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 98 |
<p class="firstline">Deletes a WorkloadIdentityPoolManagedIdentity. You can undelete a managed identity for 30 days. After 30 days, deletion is permanent.</p> |
| 99 |
<p class="toc_element"> |
| 100 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 101 |
<p class="firstline">Gets an individual WorkloadIdentityPoolManagedIdentity.</p> |
| 102 |
<p class="toc_element"> |
| 103 |
<code><a href="#list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</a></code></p> |
| 104 |
<p class="firstline">Lists all non-deleted WorkloadIdentityPoolManagedIdentitys in a namespace. If `show_deleted` is set to `true`, then deleted managed identities are also listed.</p> |
| 105 |
<p class="toc_element"> |
| 106 |
<code><a href="#listAttestationRules">listAttestationRules(resource, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 107 |
<p class="firstline">List all AttestationRule on a WorkloadIdentityPoolManagedIdentity.</p> |
| 108 |
<p class="toc_element"> |
| 109 |
<code><a href="#listAttestationRules_next">listAttestationRules_next()</a></code></p> |
| 110 |
<p class="firstline">Retrieves the next page of results.</p> |
| 111 |
<p class="toc_element"> |
| 112 |
<code><a href="#list_next">list_next()</a></code></p> |
| 113 |
<p class="firstline">Retrieves the next page of results.</p> |
| 114 |
<p class="toc_element"> |
| 115 |
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 116 |
<p class="firstline">Updates an existing WorkloadIdentityPoolManagedIdentity in a WorkloadIdentityPoolNamespace.</p> |
| 117 |
<p class="toc_element"> |
| 118 |
<code><a href="#removeAttestationRule">removeAttestationRule(resource, body=None, x__xgafv=None)</a></code></p> |
| 119 |
<p class="firstline">Remove an AttestationRule on a WorkloadIdentityPoolManagedIdentity.</p> |
| 120 |
<p class="toc_element"> |
| 121 |
<code><a href="#setAttestationRules">setAttestationRules(resource, body=None, x__xgafv=None)</a></code></p> |
| 122 |
<p class="firstline">Set all AttestationRule on a WorkloadIdentityPoolManagedIdentity. A maximum of 50 AttestationRules can be set.</p> |
| 123 |
<p class="toc_element"> |
| 124 |
<code><a href="#undelete">undelete(name, body=None, x__xgafv=None)</a></code></p> |
| 125 |
<p class="firstline">Undeletes a WorkloadIdentityPoolManagedIdentity, as long as it was deleted fewer than 30 days ago.</p> |
| 126 |
<h3>Method Details</h3> |
| 127 |
<div class="method"> |
| 128 |
<code class="details" id="addAttestationRule">addAttestationRule(resource, body=None, x__xgafv=None)</code> |
| 129 |
<pre>Add an AttestationRule on a WorkloadIdentityPoolManagedIdentity. The total attestation rules after addition must not exceed 50. |
| 130 |
|
| 131 |
Args: |
| 132 |
resource: string, Required. The resource name of the managed identity or namespace resource to add an attestation rule to. (required) |
| 133 |
body: object, The request body. |
| 134 |
The object takes the form of: |
| 135 |
|
| 136 |
{ # Request message for AddAttestationRule. |
| 137 |
"attestationRule": { # Defines which workloads can receive an identity within a pool. When an AttestationRule is defined under a managed identity, matching workloads may receive that identity. # Required. The attestation rule to be added. |
| 138 |
"googleCloudResource": "A String", # Optional. A single workload operating on Google Cloud. For example: `//compute.googleapis.com/projects/123/uid/zones/us-central1-a/instances/12345`. |
| 139 |
}, |
| 140 |
} |
| 141 |
|
| 142 |
x__xgafv: string, V1 error format. |
| 143 |
Allowed values |
| 144 |
1 - v1 error format |
| 145 |
2 - v2 error format |
| 146 |
|
| 147 |
Returns: |
| 148 |
An object of the form: |
| 149 |
|
| 150 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 151 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 152 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 153 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 154 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 155 |
{ |
| 156 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 157 |
}, |
| 158 |
], |
| 159 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 160 |
}, |
| 161 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 162 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 163 |
}, |
| 164 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 165 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 166 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 167 |
}, |
| 168 |
}</pre> |
| 169 |
</div> |
| 170 |
|
| 171 |
<div class="method"> |
| 172 |
<code class="details" id="close">close()</code> |
| 173 |
<pre>Close httplib2 connections.</pre> |
| 174 |
</div> |
| 175 |
|
| 176 |
<div class="method"> |
| 177 |
<code class="details" id="create">create(parent, body=None, workloadIdentityPoolManagedIdentityId=None, x__xgafv=None)</code> |
| 178 |
<pre>Creates a new WorkloadIdentityPoolManagedIdentity in a WorkloadIdentityPoolNamespace. |
| 179 |
|
| 180 |
Args: |
| 181 |
parent: string, Required. The parent resource to create the manage identity in. The only supported location is `global`. (required) |
| 182 |
body: object, The request body. |
| 183 |
The object takes the form of: |
| 184 |
|
| 185 |
{ # Represents a managed identity for a workload identity pool namespace. |
| 186 |
"description": "A String", # Optional. A description of the managed identity. Cannot exceed 256 characters. |
| 187 |
"disabled": True or False, # Optional. Whether the managed identity is disabled. If disabled, credentials may no longer be issued for the identity, however existing credentials will still be accepted until they expire. |
| 188 |
"expireTime": "A String", # Output only. Time after which the managed identity will be permanently purged and cannot be recovered. |
| 189 |
"name": "A String", # Identifier. The resource name of the managed identity. |
| 190 |
"state": "A String", # Output only. The state of the managed identity. |
| 191 |
} |
| 192 |
|
| 193 |
workloadIdentityPoolManagedIdentityId: string, Required. The ID to use for the managed identity. This value must: * contain at most 63 characters * contain only lowercase alphanumeric characters or `-` * start with an alphanumeric character * end with an alphanumeric character The prefix "gcp-" will be reserved for future uses. |
| 194 |
x__xgafv: string, V1 error format. |
| 195 |
Allowed values |
| 196 |
1 - v1 error format |
| 197 |
2 - v2 error format |
| 198 |
|
| 199 |
Returns: |
| 200 |
An object of the form: |
| 201 |
|
| 202 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 203 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 204 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 205 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 206 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 207 |
{ |
| 208 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 209 |
}, |
| 210 |
], |
| 211 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 212 |
}, |
| 213 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 214 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 215 |
}, |
| 216 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 217 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 218 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 219 |
}, |
| 220 |
}</pre> |
| 221 |
</div> |
| 222 |
|
| 223 |
<div class="method"> |
| 224 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 225 |
<pre>Deletes a WorkloadIdentityPoolManagedIdentity. You can undelete a managed identity for 30 days. After 30 days, deletion is permanent. |
| 226 |
|
| 227 |
Args: |
| 228 |
name: string, Required. The name of the managed identity to delete. (required) |
| 229 |
x__xgafv: string, V1 error format. |
| 230 |
Allowed values |
| 231 |
1 - v1 error format |
| 232 |
2 - v2 error format |
| 233 |
|
| 234 |
Returns: |
| 235 |
An object of the form: |
| 236 |
|
| 237 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 238 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 239 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 240 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 241 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 242 |
{ |
| 243 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 244 |
}, |
| 245 |
], |
| 246 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 247 |
}, |
| 248 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 249 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 250 |
}, |
| 251 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 252 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 253 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 254 |
}, |
| 255 |
}</pre> |
| 256 |
</div> |
| 257 |
|
| 258 |
<div class="method"> |
| 259 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 260 |
<pre>Gets an individual WorkloadIdentityPoolManagedIdentity. |
| 261 |
|
| 262 |
Args: |
| 263 |
name: string, Required. The name of the managed identity to retrieve. (required) |
| 264 |
x__xgafv: string, V1 error format. |
| 265 |
Allowed values |
| 266 |
1 - v1 error format |
| 267 |
2 - v2 error format |
| 268 |
|
| 269 |
Returns: |
| 270 |
An object of the form: |
| 271 |
|
| 272 |
{ # Represents a managed identity for a workload identity pool namespace. |
| 273 |
"description": "A String", # Optional. A description of the managed identity. Cannot exceed 256 characters. |
| 274 |
"disabled": True or False, # Optional. Whether the managed identity is disabled. If disabled, credentials may no longer be issued for the identity, however existing credentials will still be accepted until they expire. |
| 275 |
"expireTime": "A String", # Output only. Time after which the managed identity will be permanently purged and cannot be recovered. |
| 276 |
"name": "A String", # Identifier. The resource name of the managed identity. |
| 277 |
"state": "A String", # Output only. The state of the managed identity. |
| 278 |
}</pre> |
| 279 |
</div> |
| 280 |
|
| 281 |
<div class="method"> |
| 282 |
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</code> |
| 283 |
<pre>Lists all non-deleted WorkloadIdentityPoolManagedIdentitys in a namespace. If `show_deleted` is set to `true`, then deleted managed identities are also listed. |
| 284 |
|
| 285 |
Args: |
| 286 |
parent: string, Required. The parent resource to list managed identities for. (required) |
| 287 |
pageSize: integer, The maximum number of managed identities to return. If unspecified, at most 50 managed identities are returned. The maximum value is 1000; values above are 1000 truncated to 1000. |
| 288 |
pageToken: string, A page token, received from a previous `ListWorkloadIdentityPoolManagedIdentities` call. Provide this to retrieve the subsequent page. |
| 289 |
showDeleted: boolean, Whether to return soft-deleted managed identities. |
| 290 |
x__xgafv: string, V1 error format. |
| 291 |
Allowed values |
| 292 |
1 - v1 error format |
| 293 |
2 - v2 error format |
| 294 |
|
| 295 |
Returns: |
| 296 |
An object of the form: |
| 297 |
|
| 298 |
{ # Response message for ListWorkloadIdentityPoolManagedIdentities. |
| 299 |
"nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| 300 |
"workloadIdentityPoolManagedIdentities": [ # A list of managed identities. |
| 301 |
{ # Represents a managed identity for a workload identity pool namespace. |
| 302 |
"description": "A String", # Optional. A description of the managed identity. Cannot exceed 256 characters. |
| 303 |
"disabled": True or False, # Optional. Whether the managed identity is disabled. If disabled, credentials may no longer be issued for the identity, however existing credentials will still be accepted until they expire. |
| 304 |
"expireTime": "A String", # Output only. Time after which the managed identity will be permanently purged and cannot be recovered. |
| 305 |
"name": "A String", # Identifier. The resource name of the managed identity. |
| 306 |
"state": "A String", # Output only. The state of the managed identity. |
| 307 |
}, |
| 308 |
], |
| 309 |
}</pre> |
| 310 |
</div> |
| 311 |
|
| 312 |
<div class="method"> |
| 313 |
<code class="details" id="listAttestationRules">listAttestationRules(resource, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 314 |
<pre>List all AttestationRule on a WorkloadIdentityPoolManagedIdentity. |
| 315 |
|
| 316 |
Args: |
| 317 |
resource: string, Required. The resource name of the managed identity or namespace resource to list attestation rules of. (required) |
| 318 |
filter: string, Optional. A query filter. Supports the following function: * `container_ids()`: Returns only the AttestationRules under the specific container ids. The function expects a comma-delimited list with only project numbers and must use the format `projects/`. For example: `container_ids(projects/, projects/,...)`. |
| 319 |
pageSize: integer, Optional. The maximum number of AttestationRules to return. If unspecified, at most 50 AttestationRules are returned. The maximum value is 100; values above 100 are truncated to 100. |
| 320 |
pageToken: string, Optional. A page token, received from a previous `ListWorkloadIdentityPoolProviderKeys` call. Provide this to retrieve the subsequent page. |
| 321 |
x__xgafv: string, V1 error format. |
| 322 |
Allowed values |
| 323 |
1 - v1 error format |
| 324 |
2 - v2 error format |
| 325 |
|
| 326 |
Returns: |
| 327 |
An object of the form: |
| 328 |
|
| 329 |
{ # Response message for ListAttestationRules. |
| 330 |
"attestationRules": [ # A list of AttestationRules. |
| 331 |
{ # Defines which workloads can receive an identity within a pool. When an AttestationRule is defined under a managed identity, matching workloads may receive that identity. |
| 332 |
"googleCloudResource": "A String", # Optional. A single workload operating on Google Cloud. For example: `//compute.googleapis.com/projects/123/uid/zones/us-central1-a/instances/12345`. |
| 333 |
}, |
| 334 |
], |
| 335 |
"nextPageToken": "A String", # Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| 336 |
}</pre> |
| 337 |
</div> |
| 338 |
|
| 339 |
<div class="method"> |
| 340 |
<code class="details" id="listAttestationRules_next">listAttestationRules_next()</code> |
| 341 |
<pre>Retrieves the next page of results. |
| 342 |
|
| 343 |
Args: |
| 344 |
previous_request: The request for the previous page. (required) |
| 345 |
previous_response: The response from the request for the previous page. (required) |
| 346 |
|
| 347 |
Returns: |
| 348 |
A request object that you can call 'execute()' on to request the next |
| 349 |
page. Returns None if there are no more items in the collection. |
| 350 |
</pre> |
| 351 |
</div> |
| 352 |
|
| 353 |
<div class="method"> |
| 354 |
<code class="details" id="list_next">list_next()</code> |
| 355 |
<pre>Retrieves the next page of results. |
| 356 |
|
| 357 |
Args: |
| 358 |
previous_request: The request for the previous page. (required) |
| 359 |
previous_response: The response from the request for the previous page. (required) |
| 360 |
|
| 361 |
Returns: |
| 362 |
A request object that you can call 'execute()' on to request the next |
| 363 |
page. Returns None if there are no more items in the collection. |
| 364 |
</pre> |
| 365 |
</div> |
| 366 |
|
| 367 |
<div class="method"> |
| 368 |
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 369 |
<pre>Updates an existing WorkloadIdentityPoolManagedIdentity in a WorkloadIdentityPoolNamespace. |
| 370 |
|
| 371 |
Args: |
| 372 |
name: string, Identifier. The resource name of the managed identity. (required) |
| 373 |
body: object, The request body. |
| 374 |
The object takes the form of: |
| 375 |
|
| 376 |
{ # Represents a managed identity for a workload identity pool namespace. |
| 377 |
"description": "A String", # Optional. A description of the managed identity. Cannot exceed 256 characters. |
| 378 |
"disabled": True or False, # Optional. Whether the managed identity is disabled. If disabled, credentials may no longer be issued for the identity, however existing credentials will still be accepted until they expire. |
| 379 |
"expireTime": "A String", # Output only. Time after which the managed identity will be permanently purged and cannot be recovered. |
| 380 |
"name": "A String", # Identifier. The resource name of the managed identity. |
| 381 |
"state": "A String", # Output only. The state of the managed identity. |
| 382 |
} |
| 383 |
|
| 384 |
updateMask: string, Required. The list of fields to update. |
| 385 |
x__xgafv: string, V1 error format. |
| 386 |
Allowed values |
| 387 |
1 - v1 error format |
| 388 |
2 - v2 error format |
| 389 |
|
| 390 |
Returns: |
| 391 |
An object of the form: |
| 392 |
|
| 393 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 394 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 395 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 396 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 397 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 398 |
{ |
| 399 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 400 |
}, |
| 401 |
], |
| 402 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 403 |
}, |
| 404 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 405 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 406 |
}, |
| 407 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 408 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 409 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 410 |
}, |
| 411 |
}</pre> |
| 412 |
</div> |
| 413 |
|
| 414 |
<div class="method"> |
| 415 |
<code class="details" id="removeAttestationRule">removeAttestationRule(resource, body=None, x__xgafv=None)</code> |
| 416 |
<pre>Remove an AttestationRule on a WorkloadIdentityPoolManagedIdentity. |
| 417 |
|
| 418 |
Args: |
| 419 |
resource: string, Required. The resource name of the managed identity or namespace resource to remove an attestation rule from. (required) |
| 420 |
body: object, The request body. |
| 421 |
The object takes the form of: |
| 422 |
|
| 423 |
{ # Request message for RemoveAttestationRule. |
| 424 |
"attestationRule": { # Defines which workloads can receive an identity within a pool. When an AttestationRule is defined under a managed identity, matching workloads may receive that identity. # Required. The attestation rule to be removed. |
| 425 |
"googleCloudResource": "A String", # Optional. A single workload operating on Google Cloud. For example: `//compute.googleapis.com/projects/123/uid/zones/us-central1-a/instances/12345`. |
| 426 |
}, |
| 427 |
} |
| 428 |
|
| 429 |
x__xgafv: string, V1 error format. |
| 430 |
Allowed values |
| 431 |
1 - v1 error format |
| 432 |
2 - v2 error format |
| 433 |
|
| 434 |
Returns: |
| 435 |
An object of the form: |
| 436 |
|
| 437 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 438 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 439 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 440 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 441 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 442 |
{ |
| 443 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 444 |
}, |
| 445 |
], |
| 446 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 447 |
}, |
| 448 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 449 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 450 |
}, |
| 451 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 452 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 453 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 454 |
}, |
| 455 |
}</pre> |
| 456 |
</div> |
| 457 |
|
| 458 |
<div class="method"> |
| 459 |
<code class="details" id="setAttestationRules">setAttestationRules(resource, body=None, x__xgafv=None)</code> |
| 460 |
<pre>Set all AttestationRule on a WorkloadIdentityPoolManagedIdentity. A maximum of 50 AttestationRules can be set. |
| 461 |
|
| 462 |
Args: |
| 463 |
resource: string, Required. The resource name of the managed identity or namespace resource to add an attestation rule to. (required) |
| 464 |
body: object, The request body. |
| 465 |
The object takes the form of: |
| 466 |
|
| 467 |
{ # Request message for SetAttestationRules. |
| 468 |
"attestationRules": [ # Required. The attestation rules to be set. At most 50 attestation rules can be set. |
| 469 |
{ # Defines which workloads can receive an identity within a pool. When an AttestationRule is defined under a managed identity, matching workloads may receive that identity. |
| 470 |
"googleCloudResource": "A String", # Optional. A single workload operating on Google Cloud. For example: `//compute.googleapis.com/projects/123/uid/zones/us-central1-a/instances/12345`. |
| 471 |
}, |
| 472 |
], |
| 473 |
} |
| 474 |
|
| 475 |
x__xgafv: string, V1 error format. |
| 476 |
Allowed values |
| 477 |
1 - v1 error format |
| 478 |
2 - v2 error format |
| 479 |
|
| 480 |
Returns: |
| 481 |
An object of the form: |
| 482 |
|
| 483 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 484 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 485 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 486 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 487 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 488 |
{ |
| 489 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 490 |
}, |
| 491 |
], |
| 492 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 493 |
}, |
| 494 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 495 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 496 |
}, |
| 497 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 498 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 499 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 500 |
}, |
| 501 |
}</pre> |
| 502 |
</div> |
| 503 |
|
| 504 |
<div class="method"> |
| 505 |
<code class="details" id="undelete">undelete(name, body=None, x__xgafv=None)</code> |
| 506 |
<pre>Undeletes a WorkloadIdentityPoolManagedIdentity, as long as it was deleted fewer than 30 days ago. |
| 507 |
|
| 508 |
Args: |
| 509 |
name: string, Required. The name of the managed identity to undelete. (required) |
| 510 |
body: object, The request body. |
| 511 |
The object takes the form of: |
| 512 |
|
| 513 |
{ # Request message for UndeleteWorkloadIdentityPoolManagedIdentity. |
| 514 |
} |
| 515 |
|
| 516 |
x__xgafv: string, V1 error format. |
| 517 |
Allowed values |
| 518 |
1 - v1 error format |
| 519 |
2 - v2 error format |
| 520 |
|
| 521 |
Returns: |
| 522 |
An object of the form: |
| 523 |
|
| 524 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 525 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 526 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 527 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 528 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 529 |
{ |
| 530 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 531 |
}, |
| 532 |
], |
| 533 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 534 |
}, |
| 535 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 536 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 537 |
}, |
| 538 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 539 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 540 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 541 |
}, |
| 542 |
}</pre> |
| 543 |
</div> |
| 544 |
|
| 545 |
</body></html> |