@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20240825 → 0.0.20240909

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 +82 -2
  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=v1alpha
12
- // Revision: 20240825
12
+ // Revision: 20240909
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -681,6 +681,12 @@ declare namespace gapi.client {
681
681
  /** The ordered list of Kubernetes resources that need to be applied to the cluster for GKE Connect agent installation/upgrade. */
682
682
  manifest?: ConnectAgentResource[];
683
683
  }
684
+ interface GenerateExclusivityManifestResponse {
685
+ /** The YAML manifest of the membership CRD to apply if a newer version of the CRD is available. Empty if no update needs to be applied. */
686
+ crdManifest?: string;
687
+ /** The YAML manifest of the membership CR to apply if a new version of the CR is available. Empty if no update needs to be applied. */
688
+ crManifest?: string;
689
+ }
684
690
  interface GenerateMembershipRBACRoleBindingYAMLResponse {
685
691
  /** a yaml text blob including the RBAC policies. */
686
692
  roleBindingsYaml?: string;
@@ -731,6 +737,12 @@ declare namespace gapi.client {
731
737
  /** Optional. Claim in the AzureAD ID Token that holds the user details. */
732
738
  userClaim?: string;
733
739
  }
740
+ interface IdentityServiceDiagnosticInterface {
741
+ /** Determines whether to enable the diagnostic interface. */
742
+ enabled?: boolean;
743
+ /** Determines the expiration time of the diagnostic interface enablement. When reached, requests to the interface would be automatically rejected. */
744
+ expirationTime?: string;
745
+ }
734
746
  interface IdentityServiceGoogleConfig {
735
747
  /** Disable automatic configuration of Google Plugin on supported platforms. */
736
748
  disable?: boolean;
@@ -744,7 +756,9 @@ declare namespace gapi.client {
744
756
  idAttribute?: string;
745
757
  }
746
758
  interface IdentityServiceIdentityServiceOptions {
747
- /** Optional. Determines the lifespan of STS tokens issued by Anthos Identity Service. */
759
+ /** Configuration options for the AIS diagnostic interface. */
760
+ diagnosticInterface?: IdentityServiceDiagnosticInterface;
761
+ /** Determines the lifespan of STS tokens issued by Anthos Identity Service. */
748
762
  sessionDuration?: string;
749
763
  }
750
764
  interface IdentityServiceLdapConfig {
@@ -1514,6 +1528,10 @@ declare namespace gapi.client {
1514
1528
  /** Wraps all the validator results. */
1515
1529
  validationResults?: ValidationResult[];
1516
1530
  }
1531
+ interface ValidateExclusivityResponse {
1532
+ /** The validation result. * `OK` means that exclusivity is validated, assuming the manifest produced by GenerateExclusivityManifest is successfully applied. * `ALREADY_EXISTS` means that the Membership CRD is already owned by another Hub. See `status.message` for more information. */
1533
+ status?: GoogleRpcStatus;
1534
+ }
1517
1535
  interface ValidationResult {
1518
1536
  /** Additional information for the validation. */
1519
1537
  result?: string;
@@ -2711,6 +2729,37 @@ declare namespace gapi.client {
2711
2729
  /** Optional. The Connect agent version to use. Defaults to the most current version. */
2712
2730
  version?: string;
2713
2731
  }): Request<GenerateConnectManifestResponse>;
2732
+ /** GenerateExclusivityManifest generates the manifests to update the exclusivity artifacts in the cluster if needed. Exclusivity artifacts include the Membership custom resource definition (CRD) and the singleton Membership custom resource (CR). Combined with ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes cluster is only registered to a single GKE Hub. The Membership CRD is versioned, and may require conversion when the GKE Hub API server begins serving a newer version of the CRD and corresponding CR. The response will be the converted CRD and CR if there are any differences between the versions. */
2733
+ generateExclusivityManifest(request?: {
2734
+ /** V1 error format. */
2735
+ '$.xgafv'?: string;
2736
+ /** OAuth access token. */
2737
+ access_token?: string;
2738
+ /** Data format for response. */
2739
+ alt?: string;
2740
+ /** JSONP */
2741
+ callback?: string;
2742
+ /** Optional. The YAML manifest of the membership CRD retrieved by `kubectl get customresourcedefinitions membership`. Leave empty if the resource does not exist. */
2743
+ crdManifest?: string;
2744
+ /** Optional. The YAML manifest of the membership CR retrieved by `kubectl get memberships membership`. Leave empty if the resource does not exist. */
2745
+ crManifest?: string;
2746
+ /** Selector specifying which fields to include in a partial response. */
2747
+ fields?: string;
2748
+ /** 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. */
2749
+ key?: string;
2750
+ /** Required. The Membership resource name in the format `projects/*‍/locations/*‍/memberships/*`. */
2751
+ name: string;
2752
+ /** OAuth 2.0 token for the current user. */
2753
+ oauth_token?: string;
2754
+ /** Returns response with indentations and line breaks. */
2755
+ prettyPrint?: boolean;
2756
+ /** 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. */
2757
+ quotaUser?: string;
2758
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2759
+ upload_protocol?: string;
2760
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2761
+ uploadType?: string;
2762
+ }): Request<GenerateExclusivityManifestResponse>;
2714
2763
  /** Gets the details of a Membership. */
2715
2764
  get(request?: {
2716
2765
  /** V1 error format. */
@@ -3021,6 +3070,37 @@ declare namespace gapi.client {
3021
3070
  },
3022
3071
  body: ValidateCreateMembershipRequest
3023
3072
  ): Request<ValidateCreateMembershipResponse>;
3073
+ /** ValidateExclusivity validates the state of exclusivity in the cluster. The validation does not depend on an existing Hub membership resource. */
3074
+ validateExclusivity(request?: {
3075
+ /** V1 error format. */
3076
+ '$.xgafv'?: string;
3077
+ /** OAuth access token. */
3078
+ access_token?: string;
3079
+ /** Data format for response. */
3080
+ alt?: string;
3081
+ /** JSONP */
3082
+ callback?: string;
3083
+ /** Optional. The YAML of the membership CR in the cluster. Empty if the membership CR does not exist. */
3084
+ crManifest?: string;
3085
+ /** Selector specifying which fields to include in a partial response. */
3086
+ fields?: string;
3087
+ /** Required. The intended membership name under the `parent`. This method only does validation in anticipation of a CreateMembership call with the same name. */
3088
+ intendedMembership?: string;
3089
+ /** 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. */
3090
+ key?: string;
3091
+ /** OAuth 2.0 token for the current user. */
3092
+ oauth_token?: string;
3093
+ /** Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects/*‍/locations/*`. */
3094
+ parent: string;
3095
+ /** Returns response with indentations and line breaks. */
3096
+ prettyPrint?: boolean;
3097
+ /** 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. */
3098
+ quotaUser?: string;
3099
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3100
+ upload_protocol?: string;
3101
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3102
+ uploadType?: string;
3103
+ }): Request<ValidateExclusivityResponse>;
3024
3104
  bindings: BindingsResource;
3025
3105
  rbacrolebindings: RbacrolebindingsResource;
3026
3106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20240825",
3
+ "version": "0.0.20240909",
4
4
  "description": "TypeScript typings for GKE Hub API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",