@maxim_mazurok/gapi.client.cloudidentity-v1 0.0.20230314 → 0.0.20230328

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.
Files changed (3) hide show
  1. package/index.d.ts +72 -1
  2. package/package.json +1 -1
  3. package/tests.ts +10 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://cloudidentity.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230314
12
+ // Revision: 20230328
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -579,6 +579,8 @@ declare namespace gapi.client {
579
579
  interface Membership {
580
580
  /** Output only. The time when the `Membership` was created. */
581
581
  createTime?: string;
582
+ /** Output only. Delivery setting associated with the membership. */
583
+ deliverySetting?: string;
582
584
  /** 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}`. */
583
585
  name?: string;
584
586
  /** Required. Immutable. The `EntityKey` of the member. */
@@ -602,6 +604,22 @@ declare namespace gapi.client {
602
604
  /** Resource name of the group that the members belong to. */
603
605
  group?: string;
604
606
  }
607
+ interface MembershipRelation {
608
+ /** An extended description to help users determine the purpose of a `Group`. */
609
+ description?: string;
610
+ /** The display name of the `Group`. */
611
+ displayName?: string;
612
+ /** The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Group`. Shall be of the form `groups/{group_id}`. */
613
+ group?: string;
614
+ /** The `EntityKey` of the `Group`. */
615
+ groupKey?: EntityKey;
616
+ /** One or more label entries that apply to the Group. Currently supported labels contain a key with an empty value. */
617
+ labels?: { [P in string]: string };
618
+ /** 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}`. */
619
+ membership?: string;
620
+ /** The `MembershipRole`s that apply to the `Membership`. */
621
+ roles?: MembershipRole[];
622
+ }
605
623
  interface MembershipRole {
606
624
  /**
607
625
  * 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
@@ -695,6 +713,12 @@ declare namespace gapi.client {
695
713
  /** Required. Name of the `InboundSamlSsoProfile` to use. Must be of the form `inboundSamlSsoProfiles/{inbound_saml_sso_profile}`. */
696
714
  inboundSamlSsoProfile?: string;
697
715
  }
716
+ interface SearchDirectGroupsResponse {
717
+ /** List of direct groups satisfying the query. */
718
+ memberships?: MembershipRelation[];
719
+ /** Token to retrieve the next page of results, or empty if there are no more results available for listing. */
720
+ nextPageToken?: string;
721
+ }
698
722
  interface SearchGroupsResponse {
699
723
  /** The `Group` resources that match the search query. */
700
724
  groups?: Group[];
@@ -2233,6 +2257,53 @@ declare namespace gapi.client {
2233
2257
  uploadType?: string;
2234
2258
  },
2235
2259
  body: ModifyMembershipRolesRequest): Request<ModifyMembershipRolesResponse>;
2260
+ /** Searches direct groups of a member. */
2261
+ searchDirectGroups(request?: {
2262
+ /** V1 error format. */
2263
+ "$.xgafv"?: string;
2264
+ /** OAuth access token. */
2265
+ access_token?: string;
2266
+ /** Data format for response. */
2267
+ alt?: string;
2268
+ /** JSONP */
2269
+ callback?: string;
2270
+ /** Selector specifying which fields to include in a partial response. */
2271
+ fields?: string;
2272
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2273
+ key?: string;
2274
+ /** OAuth 2.0 token for the current user. */
2275
+ oauth_token?: string;
2276
+ /**
2277
+ * The ordering of membership relation for the display name or email in the response. The syntax for this field can be found at
2278
+ * https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending display name: order_by="group_name" or order_by="group_name asc". Sort by the
2279
+ * descending display name: order_by="group_name desc". Sort by the ascending group key: order_by="group_key" or order_by="group_key asc". Sort by the descending group key:
2280
+ * order_by="group_key desc".
2281
+ */
2282
+ orderBy?: string;
2283
+ /** The default page size is 200 (max 1000). */
2284
+ pageSize?: number;
2285
+ /** The next_page_token value returned from a previous list request, if any */
2286
+ pageToken?: string;
2287
+ /**
2288
+ * [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 '-' as
2289
+ * this API will search across all groups for a given member.
2290
+ */
2291
+ parent: string;
2292
+ /** Returns response with indentations and line breaks. */
2293
+ prettyPrint?: boolean;
2294
+ /**
2295
+ * Required. A CEL expression that MUST include member specification AND label(s). Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels.
2296
+ * 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
2297
+ * query: `member_key_id == 'member_key_id_value' && 'label_value' in labels`
2298
+ */
2299
+ query?: string;
2300
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2301
+ quotaUser?: string;
2302
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2303
+ upload_protocol?: string;
2304
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2305
+ uploadType?: string;
2306
+ }): Request<SearchDirectGroupsResponse>;
2236
2307
  /**
2237
2308
  * 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
2238
2309
  * 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudidentity-v1",
3
- "version": "0.0.20230314",
3
+ "version": "0.0.20230328",
4
4
  "description": "TypeScript typings for Cloud Identity API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230314
6
+ // Revision: 20230328
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -399,6 +399,7 @@ gapi.load('client', async () => {
399
399
  parent: "Test string",
400
400
  }, {
401
401
  createTime: "Test string",
402
+ deliverySetting: "Test string",
402
403
  name: "Test string",
403
404
  preferredMemberKey: {
404
405
  id: "Test string",
@@ -487,6 +488,14 @@ gapi.load('client', async () => {
487
488
  }
488
489
  ],
489
490
  });
491
+ /** Searches direct groups of a member. */
492
+ await gapi.client.cloudidentity.groups.memberships.searchDirectGroups({
493
+ orderBy: "Test string",
494
+ pageSize: 42,
495
+ pageToken: "Test string",
496
+ parent: "Test string",
497
+ query: "Test string",
498
+ });
490
499
  /**
491
500
  * 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
492
501
  * 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