Skip to content

Commit d1fc945

Browse files
feat(iam): update the api
#### iam:v1 The following keys were added: - resources.projects.resources.locations.resources.workloadIdentityPools.methods.addAttestationRule (Total Keys: 12) - resources.projects.resources.locations.resources.workloadIdentityPools.methods.listAttestationRules (Total Keys: 18) - resources.projects.resources.locations.resources.workloadIdentityPools.methods.removeAttestationRule (Total Keys: 12) - resources.projects.resources.locations.resources.workloadIdentityPools.methods.setAttestationRules (Total Keys: 12)
1 parent d2f35e8 commit d1fc945

File tree

2 files changed

+316
-1
lines changed

2 files changed

+316
-1
lines changed

docs/dyn/iam_v1.projects.locations.workloadIdentityPools.html

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ <h2>Instance Methods</h2>
8989
</p>
9090
<p class="firstline">Returns the providers Resource.</p>
9191

92+
<p class="toc_element">
93+
<code><a href="#addAttestationRule">addAttestationRule(resource, body=None, x__xgafv=None)</a></code></p>
94+
<p class="firstline">Add an AttestationRule on a WorkloadIdentityPoolManagedIdentity. The total attestation rules after addition must not exceed 50.</p>
9295
<p class="toc_element">
9396
<code><a href="#close">close()</a></code></p>
9497
<p class="firstline">Close httplib2 connections.</p>
@@ -107,12 +110,24 @@ <h2>Instance Methods</h2>
107110
<p class="toc_element">
108111
<code><a href="#list">list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</a></code></p>
109112
<p class="firstline">Lists all non-deleted WorkloadIdentityPools in a project. If `show_deleted` is set to `true`, then deleted pools are also listed.</p>
113+
<p class="toc_element">
114+
<code><a href="#listAttestationRules">listAttestationRules(resource, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
115+
<p class="firstline">List all AttestationRule on a WorkloadIdentityPoolManagedIdentity.</p>
116+
<p class="toc_element">
117+
<code><a href="#listAttestationRules_next">listAttestationRules_next()</a></code></p>
118+
<p class="firstline">Retrieves the next page of results.</p>
110119
<p class="toc_element">
111120
<code><a href="#list_next">list_next()</a></code></p>
112121
<p class="firstline">Retrieves the next page of results.</p>
113122
<p class="toc_element">
114123
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
115124
<p class="firstline">Updates an existing WorkloadIdentityPool.</p>
125+
<p class="toc_element">
126+
<code><a href="#removeAttestationRule">removeAttestationRule(resource, body=None, x__xgafv=None)</a></code></p>
127+
<p class="firstline">Remove an AttestationRule on a WorkloadIdentityPoolManagedIdentity.</p>
128+
<p class="toc_element">
129+
<code><a href="#setAttestationRules">setAttestationRules(resource, body=None, x__xgafv=None)</a></code></p>
130+
<p class="firstline">Set all AttestationRule on a WorkloadIdentityPoolManagedIdentity. A maximum of 50 AttestationRules can be set.</p>
116131
<p class="toc_element">
117132
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
118133
<p class="firstline">Sets the IAM policies on a WorkloadIdentityPool</p>
@@ -123,6 +138,50 @@ <h2>Instance Methods</h2>
123138
<code><a href="#undelete">undelete(name, body=None, x__xgafv=None)</a></code></p>
124139
<p class="firstline">Undeletes a WorkloadIdentityPool, as long as it was deleted fewer than 30 days ago.</p>
125140
<h3>Method Details</h3>
141+
<div class="method">
142+
<code class="details" id="addAttestationRule">addAttestationRule(resource, body=None, x__xgafv=None)</code>
143+
<pre>Add an AttestationRule on a WorkloadIdentityPoolManagedIdentity. The total attestation rules after addition must not exceed 50.
144+
145+
Args:
146+
resource: string, Required. The resource name of the managed identity or namespace resource to add an attestation rule to. (required)
147+
body: object, The request body.
148+
The object takes the form of:
149+
150+
{ # Request message for AddAttestationRule.
151+
&quot;attestationRule&quot;: { # 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.
152+
&quot;googleCloudResource&quot;: &quot;A String&quot;, # Optional. A single workload operating on Google Cloud. For example: `//compute.googleapis.com/projects/123/uid/zones/us-central1-a/instances/12345`.
153+
},
154+
}
155+
156+
x__xgafv: string, V1 error format.
157+
Allowed values
158+
1 - v1 error format
159+
2 - v2 error format
160+
161+
Returns:
162+
An object of the form:
163+
164+
{ # This resource represents a long-running operation that is the result of a network API call.
165+
&quot;done&quot;: 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.
166+
&quot;error&quot;: { # 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.
167+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
168+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
169+
{
170+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
171+
},
172+
],
173+
&quot;message&quot;: &quot;A String&quot;, # 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.
174+
},
175+
&quot;metadata&quot;: { # 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.
176+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
177+
},
178+
&quot;name&quot;: &quot;A String&quot;, # 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}`.
179+
&quot;response&quot;: { # 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`.
180+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181+
},
182+
}</pre>
183+
</div>
184+
126185
<div class="method">
127186
<code class="details" id="close">close()</code>
128187
<pre>Close httplib2 connections.</pre>
@@ -398,6 +457,47 @@ <h3>Method Details</h3>
398457
}</pre>
399458
</div>
400459

460+
<div class="method">
461+
<code class="details" id="listAttestationRules">listAttestationRules(resource, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
462+
<pre>List all AttestationRule on a WorkloadIdentityPoolManagedIdentity.
463+
464+
Args:
465+
resource: string, Required. The resource name of the managed identity or namespace resource to list attestation rules of. (required)
466+
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/,...)`.
467+
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.
468+
pageToken: string, Optional. A page token, received from a previous `ListWorkloadIdentityPoolProviderKeys` call. Provide this to retrieve the subsequent page.
469+
x__xgafv: string, V1 error format.
470+
Allowed values
471+
1 - v1 error format
472+
2 - v2 error format
473+
474+
Returns:
475+
An object of the form:
476+
477+
{ # Response message for ListAttestationRules.
478+
&quot;attestationRules&quot;: [ # A list of AttestationRules.
479+
{ # 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.
480+
&quot;googleCloudResource&quot;: &quot;A String&quot;, # Optional. A single workload operating on Google Cloud. For example: `//compute.googleapis.com/projects/123/uid/zones/us-central1-a/instances/12345`.
481+
},
482+
],
483+
&quot;nextPageToken&quot;: &quot;A String&quot;, # 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.
484+
}</pre>
485+
</div>
486+
487+
<div class="method">
488+
<code class="details" id="listAttestationRules_next">listAttestationRules_next()</code>
489+
<pre>Retrieves the next page of results.
490+
491+
Args:
492+
previous_request: The request for the previous page. (required)
493+
previous_response: The response from the request for the previous page. (required)
494+
495+
Returns:
496+
A request object that you can call &#x27;execute()&#x27; on to request the next
497+
page. Returns None if there are no more items in the collection.
498+
</pre>
499+
</div>
500+
401501
<div class="method">
402502
<code class="details" id="list_next">list_next()</code>
403503
<pre>Retrieves the next page of results.
@@ -485,6 +585,96 @@ <h3>Method Details</h3>
485585
}</pre>
486586
</div>
487587

588+
<div class="method">
589+
<code class="details" id="removeAttestationRule">removeAttestationRule(resource, body=None, x__xgafv=None)</code>
590+
<pre>Remove an AttestationRule on a WorkloadIdentityPoolManagedIdentity.
591+
592+
Args:
593+
resource: string, Required. The resource name of the managed identity or namespace resource to remove an attestation rule from. (required)
594+
body: object, The request body.
595+
The object takes the form of:
596+
597+
{ # Request message for RemoveAttestationRule.
598+
&quot;attestationRule&quot;: { # 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.
599+
&quot;googleCloudResource&quot;: &quot;A String&quot;, # Optional. A single workload operating on Google Cloud. For example: `//compute.googleapis.com/projects/123/uid/zones/us-central1-a/instances/12345`.
600+
},
601+
}
602+
603+
x__xgafv: string, V1 error format.
604+
Allowed values
605+
1 - v1 error format
606+
2 - v2 error format
607+
608+
Returns:
609+
An object of the form:
610+
611+
{ # This resource represents a long-running operation that is the result of a network API call.
612+
&quot;done&quot;: 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.
613+
&quot;error&quot;: { # 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.
614+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
615+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
616+
{
617+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
618+
},
619+
],
620+
&quot;message&quot;: &quot;A String&quot;, # 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.
621+
},
622+
&quot;metadata&quot;: { # 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.
623+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
624+
},
625+
&quot;name&quot;: &quot;A String&quot;, # 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}`.
626+
&quot;response&quot;: { # 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`.
627+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
628+
},
629+
}</pre>
630+
</div>
631+
632+
<div class="method">
633+
<code class="details" id="setAttestationRules">setAttestationRules(resource, body=None, x__xgafv=None)</code>
634+
<pre>Set all AttestationRule on a WorkloadIdentityPoolManagedIdentity. A maximum of 50 AttestationRules can be set.
635+
636+
Args:
637+
resource: string, Required. The resource name of the managed identity or namespace resource to add an attestation rule to. (required)
638+
body: object, The request body.
639+
The object takes the form of:
640+
641+
{ # Request message for SetAttestationRules.
642+
&quot;attestationRules&quot;: [ # Required. The attestation rules to be set. At most 50 attestation rules can be set.
643+
{ # 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.
644+
&quot;googleCloudResource&quot;: &quot;A String&quot;, # Optional. A single workload operating on Google Cloud. For example: `//compute.googleapis.com/projects/123/uid/zones/us-central1-a/instances/12345`.
645+
},
646+
],
647+
}
648+
649+
x__xgafv: string, V1 error format.
650+
Allowed values
651+
1 - v1 error format
652+
2 - v2 error format
653+
654+
Returns:
655+
An object of the form:
656+
657+
{ # This resource represents a long-running operation that is the result of a network API call.
658+
&quot;done&quot;: 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.
659+
&quot;error&quot;: { # 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.
660+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
661+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
662+
{
663+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
664+
},
665+
],
666+
&quot;message&quot;: &quot;A String&quot;, # 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.
667+
},
668+
&quot;metadata&quot;: { # 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.
669+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
670+
},
671+
&quot;name&quot;: &quot;A String&quot;, # 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}`.
672+
&quot;response&quot;: { # 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`.
673+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
674+
},
675+
}</pre>
676+
</div>
677+
488678
<div class="method">
489679
<code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
490680
<pre>Sets the IAM policies on a WorkloadIdentityPool

0 commit comments

Comments
 (0)