@maxim_mazurok/gapi.client.gkehub-v1 0.0.20240307 → 0.0.20240318

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 (2) hide show
  1. package/index.d.ts +129 -1
  2. package/package.json +1 -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://gkehub.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240307
12
+ // Revision: 20240318
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -602,6 +602,8 @@ declare namespace gapi.client {
602
602
  azureadConfig?: IdentityServiceAzureADConfig;
603
603
  /** GoogleConfig specific configuration. */
604
604
  googleConfig?: IdentityServiceGoogleConfig;
605
+ /** LDAP specific configuration. */
606
+ ldapConfig?: IdentityServiceLdapConfig;
605
607
  /** Identifier for auth config. */
606
608
  name?: string;
607
609
  /** OIDC specific configuration. */
@@ -631,6 +633,24 @@ declare namespace gapi.client {
631
633
  /** Disable automatic configuration of Google Plugin on supported platforms. */
632
634
  disable?: boolean;
633
635
  }
636
+ interface IdentityServiceGroupConfig {
637
+ /** Required. The location of the subtree in the LDAP directory to search for group entries. */
638
+ baseDn?: string;
639
+ /** Optional. Optional filter to be used when searching for groups a user belongs to. This can be used to explicitly match only certain groups in order to reduce the amount of groups returned for each user. This defaults to "(objectClass=Group)". */
640
+ filter?: string;
641
+ /** Optional. The identifying name of each group a user belongs to. For example, if this is set to "distinguishedName" then RBACs and other group expectations should be written as full DNs. This defaults to "distinguishedName". */
642
+ idAttribute?: string;
643
+ }
644
+ interface IdentityServiceLdapConfig {
645
+ /** Optional. Contains the properties for locating and authenticating groups in the directory. */
646
+ group?: IdentityServiceGroupConfig;
647
+ /** Required. Server settings for the external LDAP server. */
648
+ server?: IdentityServiceServerConfig;
649
+ /** Required. Contains the credentials of the service account which is authorized to perform the LDAP search in the directory. The credentials can be supplied by the combination of the DN and password or the client certificate. */
650
+ serviceAccount?: IdentityServiceServiceAccountConfig;
651
+ /** Required. Defines where users exist in the LDAP directory. */
652
+ user?: IdentityServiceUserConfig;
653
+ }
634
654
  interface IdentityServiceMembershipSpec {
635
655
  /** A member may support multiple auth methods. */
636
656
  authMethods?: IdentityServiceAuthMethod[];
@@ -693,6 +713,36 @@ declare namespace gapi.client {
693
713
  /** Optional. Prefix to prepend to user name. */
694
714
  userPrefix?: string;
695
715
  }
716
+ interface IdentityServiceServerConfig {
717
+ /** Optional. Contains a Base64 encoded, PEM formatted certificate authority certificate for the LDAP server. This must be provided for the "ldaps" and "startTLS" connections. */
718
+ certificateAuthorityData?: string;
719
+ /** Optional. Defines the connection type to communicate with the LDAP server. If `starttls` or `ldaps` is specified, the certificate_authority_data should not be empty. */
720
+ connectionType?: string;
721
+ /** Required. Defines the hostname or IP of the LDAP server. Port is optional and will default to 389, if unspecified. For example, "ldap.server.example" or "10.10.10.10:389". */
722
+ host?: string;
723
+ }
724
+ interface IdentityServiceServiceAccountConfig {
725
+ /** Credentials for basic auth. */
726
+ simpleBindCredentials?: IdentityServiceSimpleBindCredentials;
727
+ }
728
+ interface IdentityServiceSimpleBindCredentials {
729
+ /** Required. The distinguished name(DN) of the service account object/user. */
730
+ dn?: string;
731
+ /** Output only. The encrypted password of the service account object/user. */
732
+ encryptedPassword?: string;
733
+ /** Required. Input only. The password of the service account object/user. */
734
+ password?: string;
735
+ }
736
+ interface IdentityServiceUserConfig {
737
+ /** Required. The location of the subtree in the LDAP directory to search for user entries. */
738
+ baseDn?: string;
739
+ /** Optional. Filter to apply when searching for the user. This can be used to further restrict the user accounts which are allowed to login. This defaults to "(objectClass=User)". */
740
+ filter?: string;
741
+ /** Optional. Determines which attribute to use as the user's identity after they are authenticated. This is distinct from the loginAttribute field to allow users to login with a username, but then have their actual identifier be an email address or full Distinguished Name (DN). For example, setting loginAttribute to "sAMAccountName" and identifierAttribute to "userPrincipalName" would allow a user to login as "bsmith", but actual RBAC policies for the user would be written as "bsmith@example.com". Using "userPrincipalName" is recommended since this will be unique for each user. This defaults to "userPrincipalName". */
742
+ idAttribute?: string;
743
+ /** Optional. The name of the attribute which matches against the input username. This is used to find the user in the LDAP database e.g. "(=)" and is combined with the optional filter field. This defaults to "userPrincipalName". */
744
+ loginAttribute?: string;
745
+ }
696
746
  interface KubernetesMetadata {
697
747
  /** Output only. Kubernetes API server version string as reported by `/version`. */
698
748
  kubernetesApiServerVersion?: string;
@@ -717,6 +767,14 @@ declare namespace gapi.client {
717
767
  /** Optional. Options for Kubernetes resource generation. */
718
768
  resourceOptions?: ResourceOptions;
719
769
  }
770
+ interface ListBoundMembershipsResponse {
771
+ /** The list of Memberships bound to the given Scope. */
772
+ memberships?: Membership[];
773
+ /** A token to request the next page of resources from the `ListBoundMemberships` method. The value of an empty string means that there are no more resources to return. */
774
+ nextPageToken?: string;
775
+ /** List of locations that could not be reached while fetching this list. */
776
+ unreachable?: string[];
777
+ }
720
778
  interface ListFeaturesResponse {
721
779
  /** A token to request the next page of resources from the `ListFeatures` method. The value of an empty string means that there are no more resources to return. */
722
780
  nextPageToken?: string;
@@ -755,6 +813,12 @@ declare namespace gapi.client {
755
813
  /** A list of operations that matches the specified filter in the request. */
756
814
  operations?: Operation[];
757
815
  }
816
+ interface ListPermittedScopesResponse {
817
+ /** A token to request the next page of resources from the `ListPermittedScopes` method. The value of an empty string means that there are no more resources to return. */
818
+ nextPageToken?: string;
819
+ /** The list of permitted Scopes */
820
+ scopes?: Scope[];
821
+ }
758
822
  interface ListScopeNamespacesResponse {
759
823
  /** A token to request the next page of resources from the `ListNamespaces` method. The value of an empty string means that there are no more resources to return. */
760
824
  nextPageToken?: string;
@@ -3105,6 +3169,70 @@ declare namespace gapi.client {
3105
3169
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3106
3170
  uploadType?: string;
3107
3171
  }): Request<ListScopesResponse>;
3172
+ /** Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions. */
3173
+ listMemberships(request?: {
3174
+ /** V1 error format. */
3175
+ '$.xgafv'?: string;
3176
+ /** OAuth access token. */
3177
+ access_token?: string;
3178
+ /** Data format for response. */
3179
+ alt?: string;
3180
+ /** JSONP */
3181
+ callback?: string;
3182
+ /** Selector specifying which fields to include in a partial response. */
3183
+ fields?: string;
3184
+ /** Optional. Lists Memberships that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Currently, filtering can be done only based on Memberships's `name`, `labels`, `create_time`, `update_time`, and `unique_id`. */
3185
+ filter?: string;
3186
+ /** 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. */
3187
+ key?: string;
3188
+ /** OAuth 2.0 token for the current user. */
3189
+ oauth_token?: string;
3190
+ /** Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned. Pagination is currently not supported; therefore, setting this field does not have any impact for now. */
3191
+ pageSize?: number;
3192
+ /** Optional. Token returned by previous call to `ListBoundMemberships` which specifies the position in the list from where to continue listing the resources. */
3193
+ pageToken?: string;
3194
+ /** Returns response with indentations and line breaks. */
3195
+ prettyPrint?: boolean;
3196
+ /** 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. */
3197
+ quotaUser?: string;
3198
+ /** Required. Name of the Scope, in the format `projects/*‍/locations/global/scopes/*`, to which the Memberships are bound. */
3199
+ scopeName: string;
3200
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3201
+ upload_protocol?: string;
3202
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3203
+ uploadType?: string;
3204
+ }): Request<ListBoundMembershipsResponse>;
3205
+ /** Lists permitted Scopes. */
3206
+ listPermitted(request?: {
3207
+ /** V1 error format. */
3208
+ '$.xgafv'?: string;
3209
+ /** OAuth access token. */
3210
+ access_token?: string;
3211
+ /** Data format for response. */
3212
+ alt?: string;
3213
+ /** JSONP */
3214
+ callback?: string;
3215
+ /** Selector specifying which fields to include in a partial response. */
3216
+ fields?: string;
3217
+ /** 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. */
3218
+ key?: string;
3219
+ /** OAuth 2.0 token for the current user. */
3220
+ oauth_token?: string;
3221
+ /** Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned. */
3222
+ pageSize?: number;
3223
+ /** Optional. Token returned by previous call to `ListPermittedScopes` which specifies the position in the list from where to continue listing the resources. */
3224
+ pageToken?: string;
3225
+ /** Required. The parent (project and location) where the Scope will be listed. Specified in the format `projects/*‍/locations/*`. */
3226
+ parent: string;
3227
+ /** Returns response with indentations and line breaks. */
3228
+ prettyPrint?: boolean;
3229
+ /** 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. */
3230
+ quotaUser?: string;
3231
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3232
+ upload_protocol?: string;
3233
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3234
+ uploadType?: string;
3235
+ }): Request<ListPermittedScopesResponse>;
3108
3236
  /** Updates a scopes. */
3109
3237
  patch(request: {
3110
3238
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1",
3
- "version": "0.0.20240307",
3
+ "version": "0.0.20240318",
4
4
  "description": "TypeScript typings for GKE Hub API v1",
5
5
  "repository": {
6
6
  "type": "git",