Skip to content

Commit f0ce430

Browse files
feat(cloudidentity): update the api
#### cloudidentity:v1 The following keys were added: - resources.groups.resources.memberships.methods.searchDirectGroups (Total Keys: 19) - schemas.Membership.properties.deliverySetting (Total Keys: 2) - schemas.MembershipRelation (Total Keys: 10) - schemas.SearchDirectGroupsResponse (Total Keys: 5) #### cloudidentity:v1beta1 The following keys were added: - resources.groups.resources.memberships.methods.searchDirectGroups (Total Keys: 19) - schemas.Membership.properties.deliverySetting (Total Keys: 2) - schemas.MembershipRelation (Total Keys: 10) - schemas.SearchDirectGroupsResponse (Total Keys: 5)
1 parent d7bca38 commit f0ce430

File tree

4 files changed

+398
-2
lines changed

4 files changed

+398
-2
lines changed

docs/dyn/cloudidentity_v1.groups.memberships.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ <h2>Instance Methods</h2>
104104
<p class="toc_element">
105105
<code><a href="#modifyMembershipRoles">modifyMembershipRoles(name, body=None, x__xgafv=None)</a></code></p>
106106
<p class="firstline">Modifies the `MembershipRole`s of a `Membership`.</p>
107+
<p class="toc_element">
108+
<code><a href="#searchDirectGroups">searchDirectGroups(parent, orderBy=None, pageSize=None, pageToken=None, query=None, x__xgafv=None)</a></code></p>
109+
<p class="firstline">Searches direct groups of a member.</p>
110+
<p class="toc_element">
111+
<code><a href="#searchDirectGroups_next">searchDirectGroups_next()</a></code></p>
112+
<p class="firstline">Retrieves the next page of results.</p>
107113
<p class="toc_element">
108114
<code><a href="#searchTransitiveGroups">searchTransitiveGroups(parent, pageSize=None, pageToken=None, query=None, x__xgafv=None)</a></code></p>
109115
<p class="firstline">Search transitive groups of a member. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.</p>
@@ -153,6 +159,7 @@ <h3>Method Details</h3>
153159

154160
{ # A membership within the Cloud Identity Groups API. A `Membership` defines a relationship between a `Group` and an entity belonging to that `Group`, referred to as a &quot;member&quot;.
155161
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the `Membership` was created.
162+
&quot;deliverySetting&quot;: &quot;A String&quot;, # Output only. Delivery setting associated with the membership.
156163
&quot;name&quot;: &quot;A String&quot;, # Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.
157164
&quot;preferredMemberKey&quot;: { # A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional `namespace` or a user without a `namespace`. The combination of `id` and `namespace` must be unique; however, the same `id` can be used with different `namespace`s. # Required. Immutable. The `EntityKey` of the member.
158165
&quot;id&quot;: &quot;A String&quot;, # The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source&#x27;s requirements. Must be unique within a `namespace`.
@@ -255,6 +262,7 @@ <h3>Method Details</h3>
255262

256263
{ # A membership within the Cloud Identity Groups API. A `Membership` defines a relationship between a `Group` and an entity belonging to that `Group`, referred to as a &quot;member&quot;.
257264
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the `Membership` was created.
265+
&quot;deliverySetting&quot;: &quot;A String&quot;, # Output only. Delivery setting associated with the membership.
258266
&quot;name&quot;: &quot;A String&quot;, # Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.
259267
&quot;preferredMemberKey&quot;: { # A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional `namespace` or a user without a `namespace`. The combination of `id` and `namespace` must be unique; however, the same `id` can be used with different `namespace`s. # Required. Immutable. The `EntityKey` of the member.
260268
&quot;id&quot;: &quot;A String&quot;, # The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source&#x27;s requirements. Must be unique within a `namespace`.
@@ -339,6 +347,7 @@ <h3>Method Details</h3>
339347
&quot;memberships&quot;: [ # The `Membership`s under the specified `parent`.
340348
{ # A membership within the Cloud Identity Groups API. A `Membership` defines a relationship between a `Group` and an entity belonging to that `Group`, referred to as a &quot;member&quot;.
341349
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the `Membership` was created.
350+
&quot;deliverySetting&quot;: &quot;A String&quot;, # Output only. Delivery setting associated with the membership.
342351
&quot;name&quot;: &quot;A String&quot;, # Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.
343352
&quot;preferredMemberKey&quot;: { # A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional `namespace` or a user without a `namespace`. The combination of `id` and `namespace` must be unique; however, the same `id` can be used with different `namespace`s. # Required. Immutable. The `EntityKey` of the member.
344353
&quot;id&quot;: &quot;A String&quot;, # The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source&#x27;s requirements. Must be unique within a `namespace`.
@@ -455,6 +464,7 @@ <h3>Method Details</h3>
455464
{ # The response message for MembershipsService.ModifyMembershipRoles.
456465
&quot;membership&quot;: { # A membership within the Cloud Identity Groups API. A `Membership` defines a relationship between a `Group` and an entity belonging to that `Group`, referred to as a &quot;member&quot;. # The `Membership` resource after modifying its `MembershipRole`s.
457466
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the `Membership` was created.
467+
&quot;deliverySetting&quot;: &quot;A String&quot;, # Output only. Delivery setting associated with the membership.
458468
&quot;name&quot;: &quot;A String&quot;, # Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.
459469
&quot;preferredMemberKey&quot;: { # A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional `namespace` or a user without a `namespace`. The combination of `id` and `namespace` must be unique; however, the same `id` can be used with different `namespace`s. # Required. Immutable. The `EntityKey` of the member.
460470
&quot;id&quot;: &quot;A String&quot;, # The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source&#x27;s requirements. Must be unique within a `namespace`.
@@ -479,6 +489,71 @@ <h3>Method Details</h3>
479489
}</pre>
480490
</div>
481491

492+
<div class="method">
493+
<code class="details" id="searchDirectGroups">searchDirectGroups(parent, orderBy=None, pageSize=None, pageToken=None, query=None, x__xgafv=None)</code>
494+
<pre>Searches direct groups of a member.
495+
496+
Args:
497+
parent: string, [Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: groups/{group_id}, where group_id is always &#x27;-&#x27; as this API will search across all groups for a given member. (required)
498+
orderBy: string, The ordering of membership relation for the display name or email in the response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending display name: order_by=&quot;group_name&quot; or order_by=&quot;group_name asc&quot;. Sort by the descending display name: order_by=&quot;group_name desc&quot;. Sort by the ascending group key: order_by=&quot;group_key&quot; or order_by=&quot;group_key asc&quot;. Sort by the descending group key: order_by=&quot;group_key desc&quot;.
499+
pageSize: integer, The default page size is 200 (max 1000).
500+
pageToken: string, The next_page_token value returned from a previous list request, if any
501+
query: string, Required. A CEL expression that MUST include member specification AND label(s). Users can search on label attributes of groups. CONTAINS match (&#x27;in&#x27;) is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == &#x27;member_key_id_value&#x27; &amp;&amp; &#x27;label_value&#x27; in labels`
502+
x__xgafv: string, V1 error format.
503+
Allowed values
504+
1 - v1 error format
505+
2 - v2 error format
506+
507+
Returns:
508+
An object of the form:
509+
510+
{ # The response message for MembershipsService.SearchDirectGroups.
511+
&quot;memberships&quot;: [ # List of direct groups satisfying the query.
512+
{ # Message containing membership relation.
513+
&quot;description&quot;: &quot;A String&quot;, # An extended description to help users determine the purpose of a `Group`.
514+
&quot;displayName&quot;: &quot;A String&quot;, # The display name of the `Group`.
515+
&quot;group&quot;: &quot;A String&quot;, # The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Group`. Shall be of the form `groups/{group_id}`.
516+
&quot;groupKey&quot;: { # A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional `namespace` or a user without a `namespace`. The combination of `id` and `namespace` must be unique; however, the same `id` can be used with different `namespace`s. # The `EntityKey` of the `Group`.
517+
&quot;id&quot;: &quot;A String&quot;, # The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source&#x27;s requirements. Must be unique within a `namespace`.
518+
&quot;namespace&quot;: &quot;A String&quot;, # The namespace in which the entity exists. If not specified, the `EntityKey` represents a Google-managed entity such as a Google user or a Google Group. If specified, the `EntityKey` represents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form of `identitysources/{identity_source}`.
519+
},
520+
&quot;labels&quot;: { # One or more label entries that apply to the Group. Currently supported labels contain a key with an empty value.
521+
&quot;a_key&quot;: &quot;A String&quot;,
522+
},
523+
&quot;membership&quot;: &quot;A String&quot;, # The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership`. Shall be of the form `groups/{group_id}/memberships/{membership_id}`.
524+
&quot;roles&quot;: [ # The `MembershipRole`s that apply to the `Membership`.
525+
{ # A membership role within the Cloud Identity Groups API. A `MembershipRole` defines the privileges granted to a `Membership`.
526+
&quot;expiryDetail&quot;: { # The `MembershipRole` expiry details. # The expiry details of the `MembershipRole`. Expiry details are only supported for `MEMBER` `MembershipRoles`. May be set if `name` is `MEMBER`. Must not be set if `name` is any other value.
527+
&quot;expireTime&quot;: &quot;A String&quot;, # The time at which the `MembershipRole` will expire.
528+
},
529+
&quot;name&quot;: &quot;A String&quot;, # The name of the `MembershipRole`. Must be one of `OWNER`, `MANAGER`, `MEMBER`.
530+
&quot;restrictionEvaluations&quot;: { # Evaluations of restrictions applied to parent group on this membership. # Evaluations of restrictions applied to parent group on this membership.
531+
&quot;memberRestrictionEvaluation&quot;: { # The evaluated state of this restriction. # Evaluation of the member restriction applied to this membership. Empty if the user lacks permission to view the restriction evaluation.
532+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the restriction
533+
},
534+
},
535+
},
536+
],
537+
},
538+
],
539+
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results available for listing.
540+
}</pre>
541+
</div>
542+
543+
<div class="method">
544+
<code class="details" id="searchDirectGroups_next">searchDirectGroups_next()</code>
545+
<pre>Retrieves the next page of results.
546+
547+
Args:
548+
previous_request: The request for the previous page. (required)
549+
previous_response: The response from the request for the previous page. (required)
550+
551+
Returns:
552+
A request object that you can call &#x27;execute()&#x27; on to request the next
553+
page. Returns None if there are no more items in the collection.
554+
</pre>
555+
</div>
556+
482557
<div class="method">
483558
<code class="details" id="searchTransitiveGroups">searchTransitiveGroups(parent, pageSize=None, pageToken=None, query=None, x__xgafv=None)</code>
484559
<pre>Search transitive groups of a member. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.

0 commit comments

Comments
 (0)