@maxim_mazurok/gapi.client.gkehub-v1 0.0.20230720 → 0.0.20230804

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 +741 -4
  2. package/package.json +2 -2
  3. package/tests.ts +125 -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: 20230720
12
+ // Revision: 20230804
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -776,6 +776,9 @@ declare namespace gapi.client {
776
776
  /** Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant. */
777
777
  tenant?:
778
778
  string;
779
+ /** Optional. Claim in the AzureAD ID Token that holds the user details. */
780
+ userClaim?:
781
+ string;
779
782
  }
780
783
  interface IdentityServiceGoogleConfig {
781
784
  /** Disable automatic configuration of Google Plugin on supported platforms. */
@@ -948,6 +951,22 @@ declare namespace gapi.client {
948
951
  operations?:
949
952
  Operation[];
950
953
  }
954
+ interface ListScopeNamespacesResponse {
955
+ /** 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. */
956
+ nextPageToken?:
957
+ string;
958
+ /** The list of fleet namespaces */
959
+ scopeNamespaces?:
960
+ Namespace[];
961
+ }
962
+ interface ListScopeRBACRoleBindingsResponse {
963
+ /** A token to request the next page of resources from the `ListScopeRBACRoleBindings` method. The value of an empty string means that there are no more resources to return. */
964
+ nextPageToken?:
965
+ string;
966
+ /** The list of Scope RBACRoleBindings. */
967
+ rbacrolebindings?:
968
+ RBACRoleBinding[];
969
+ }
951
970
  interface ListScopesResponse {
952
971
  /** A token to request the next page of resources from the `ListScopes` method. The value of an empty string means that there are no more resources to return. */
953
972
  nextPageToken?:
@@ -1186,6 +1205,46 @@ declare namespace gapi.client {
1186
1205
  configMembership?:
1187
1206
  string;
1188
1207
  }
1208
+ interface Namespace {
1209
+ /** Output only. When the namespace was created. */
1210
+ createTime?:
1211
+ string;
1212
+ /** Output only. When the namespace was deleted. */
1213
+ deleteTime?:
1214
+ string;
1215
+ /** Optional. Labels for this Namespace. */
1216
+ labels?:
1217
+ { [P in string]: string };
1218
+ /** The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` */
1219
+ name?:
1220
+ string;
1221
+ /**
1222
+ * Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels
1223
+ * (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
1224
+ */
1225
+ namespaceLabels?:
1226
+ { [P in string]: string };
1227
+ /** Required. Scope associated with the namespace */
1228
+ scope?:
1229
+ string;
1230
+ /** Output only. State of the namespace resource. */
1231
+ state?:
1232
+ NamespaceLifecycleState;
1233
+ /**
1234
+ * Output only. Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is
1235
+ * created, it gets a different uid.
1236
+ */
1237
+ uid?:
1238
+ string;
1239
+ /** Output only. When the namespace was last updated. */
1240
+ updateTime?:
1241
+ string;
1242
+ }
1243
+ interface NamespaceLifecycleState {
1244
+ /** Output only. The current state of the Namespace resource. */
1245
+ code?:
1246
+ string;
1247
+ }
1189
1248
  interface OnPremCluster {
1190
1249
  /** Immutable. Whether the cluster is an admin cluster. */
1191
1250
  adminCluster?:
@@ -1224,9 +1283,9 @@ declare namespace gapi.client {
1224
1283
  name?:
1225
1284
  string;
1226
1285
  /**
1227
- * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
1228
- * 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
1229
- * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1286
+ * 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
1287
+ * 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
1288
+ * method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1230
1289
  */
1231
1290
  response?:
1232
1291
  { [P in string]: any };
@@ -1294,6 +1353,49 @@ declare namespace gapi.client {
1294
1353
  version?:
1295
1354
  number;
1296
1355
  }
1356
+ interface RBACRoleBinding {
1357
+ /** Output only. When the rbacrolebinding was created. */
1358
+ createTime?:
1359
+ string;
1360
+ /** Output only. When the rbacrolebinding was deleted. */
1361
+ deleteTime?:
1362
+ string;
1363
+ /** group is the group, as seen by the kubernetes cluster. */
1364
+ group?:
1365
+ string;
1366
+ /** Optional. Labels for this RBACRolebinding. */
1367
+ labels?:
1368
+ { [P in string]: string };
1369
+ /**
1370
+ * The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or
1371
+ * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
1372
+ */
1373
+ name?:
1374
+ string;
1375
+ /** Required. Role to bind to the principal */
1376
+ role?:
1377
+ Role;
1378
+ /** Output only. State of the rbacrolebinding resource. */
1379
+ state?:
1380
+ RBACRoleBindingLifecycleState;
1381
+ /**
1382
+ * Output only. Google-generated UUID for this resource. This is unique across all rbacrolebinding resources. If a rbacrolebinding resource is deleted and another resource with the
1383
+ * same name is created, it gets a different uid.
1384
+ */
1385
+ uid?:
1386
+ string;
1387
+ /** Output only. When the rbacrolebinding was last updated. */
1388
+ updateTime?:
1389
+ string;
1390
+ /** user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld" */
1391
+ user?:
1392
+ string;
1393
+ }
1394
+ interface RBACRoleBindingLifecycleState {
1395
+ /** Output only. The current state of the rbacrolebinding resource. */
1396
+ code?:
1397
+ string;
1398
+ }
1297
1399
  interface ResourceManifest {
1298
1400
  /**
1299
1401
  * Whether the resource provided in the manifest is `cluster_scoped`. If unset, the manifest is assumed to be namespace scoped. This field is used for REST mapping when applying the
@@ -1325,6 +1427,11 @@ declare namespace gapi.client {
1325
1427
  v1beta1Crd?:
1326
1428
  boolean;
1327
1429
  }
1430
+ interface Role {
1431
+ /** predefined_role is the Kubernetes default role to use */
1432
+ predefinedRole?:
1433
+ string;
1434
+ }
1328
1435
  interface Scope {
1329
1436
  /** If true, all Memberships in the Fleet bind to this Scope. */
1330
1437
  allMemberships?:
@@ -1341,6 +1448,12 @@ declare namespace gapi.client {
1341
1448
  /** The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}` */
1342
1449
  name?:
1343
1450
  string;
1451
+ /**
1452
+ * Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take
1453
+ * precedence over Namespace-level labels (`namespace_labels` in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
1454
+ */
1455
+ namespaceLabels?:
1456
+ { [P in string]: string };
1344
1457
  /** Output only. State of the scope resource. */
1345
1458
  state?:
1346
1459
  ScopeLifecycleState;
@@ -3417,6 +3530,626 @@ declare namespace gapi.client {
3417
3530
  string;
3418
3531
  }): Request<ListOperationsResponse>;
3419
3532
  }
3533
+ interface NamespacesResource {
3534
+ /** Creates a fleet namespace. */
3535
+ create(request: {
3536
+ /** V1 error format. */
3537
+ "$.xgafv"?:
3538
+ string;
3539
+ /** OAuth access token. */
3540
+ access_token?:
3541
+ string;
3542
+ /** Data format for response. */
3543
+ alt?:
3544
+ string;
3545
+ /** JSONP */
3546
+ callback?:
3547
+ string;
3548
+ /** Selector specifying which fields to include in a partial response. */
3549
+ fields?:
3550
+ string;
3551
+ /** 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. */
3552
+ key?:
3553
+ string;
3554
+ /** OAuth 2.0 token for the current user. */
3555
+ oauth_token?:
3556
+ string;
3557
+ /** Required. The parent (project and location) where the Namespace will be created. Specified in the format `projects/*‍/locations/*‍/scopes/*`. */
3558
+ parent:
3559
+ string;
3560
+ /** Returns response with indentations and line breaks. */
3561
+ prettyPrint?:
3562
+ boolean;
3563
+ /** 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. */
3564
+ quotaUser?:
3565
+ string;
3566
+ /**
3567
+ * Required. Client chosen ID for the Namespace. `namespace_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case
3568
+ * alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
3569
+ * length of 63 characters.
3570
+ */
3571
+ scopeNamespaceId?:
3572
+ string;
3573
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3574
+ upload_protocol?:
3575
+ string;
3576
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3577
+ uploadType?:
3578
+ string;
3579
+ /** Request body */
3580
+ resource:
3581
+ Namespace;
3582
+ }): Request<Operation>;
3583
+ create(request: {
3584
+ /** V1 error format. */
3585
+ "$.xgafv"?:
3586
+ string;
3587
+ /** OAuth access token. */
3588
+ access_token?:
3589
+ string;
3590
+ /** Data format for response. */
3591
+ alt?:
3592
+ string;
3593
+ /** JSONP */
3594
+ callback?:
3595
+ string;
3596
+ /** Selector specifying which fields to include in a partial response. */
3597
+ fields?:
3598
+ string;
3599
+ /** 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. */
3600
+ key?:
3601
+ string;
3602
+ /** OAuth 2.0 token for the current user. */
3603
+ oauth_token?:
3604
+ string;
3605
+ /** Required. The parent (project and location) where the Namespace will be created. Specified in the format `projects/*‍/locations/*‍/scopes/*`. */
3606
+ parent:
3607
+ string;
3608
+ /** Returns response with indentations and line breaks. */
3609
+ prettyPrint?:
3610
+ boolean;
3611
+ /** 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. */
3612
+ quotaUser?:
3613
+ string;
3614
+ /**
3615
+ * Required. Client chosen ID for the Namespace. `namespace_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case
3616
+ * alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
3617
+ * length of 63 characters.
3618
+ */
3619
+ scopeNamespaceId?:
3620
+ string;
3621
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3622
+ upload_protocol?:
3623
+ string;
3624
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3625
+ uploadType?:
3626
+ string;
3627
+ },
3628
+ body: Namespace): Request<Operation>;
3629
+ /** Deletes a fleet namespace. */
3630
+ delete(request?: {
3631
+ /** V1 error format. */
3632
+ "$.xgafv"?:
3633
+ string;
3634
+ /** OAuth access token. */
3635
+ access_token?:
3636
+ string;
3637
+ /** Data format for response. */
3638
+ alt?:
3639
+ string;
3640
+ /** JSONP */
3641
+ callback?:
3642
+ string;
3643
+ /** Selector specifying which fields to include in a partial response. */
3644
+ fields?:
3645
+ string;
3646
+ /** 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. */
3647
+ key?:
3648
+ string;
3649
+ /** Required. The Namespace resource name in the format `projects/*‍/locations/*‍/scopes/*‍/namespaces/*`. */
3650
+ name:
3651
+ string;
3652
+ /** OAuth 2.0 token for the current user. */
3653
+ oauth_token?:
3654
+ string;
3655
+ /** Returns response with indentations and line breaks. */
3656
+ prettyPrint?:
3657
+ boolean;
3658
+ /** 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. */
3659
+ quotaUser?:
3660
+ string;
3661
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3662
+ upload_protocol?:
3663
+ string;
3664
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3665
+ uploadType?:
3666
+ string;
3667
+ }): Request<Operation>;
3668
+ /** Returns the details of a fleet namespace. */
3669
+ get(request?: {
3670
+ /** V1 error format. */
3671
+ "$.xgafv"?:
3672
+ string;
3673
+ /** OAuth access token. */
3674
+ access_token?:
3675
+ string;
3676
+ /** Data format for response. */
3677
+ alt?:
3678
+ string;
3679
+ /** JSONP */
3680
+ callback?:
3681
+ string;
3682
+ /** Selector specifying which fields to include in a partial response. */
3683
+ fields?:
3684
+ string;
3685
+ /** 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. */
3686
+ key?:
3687
+ string;
3688
+ /** Required. The Namespace resource name in the format `projects/*‍/locations/*‍/scopes/*‍/namespaces/*`. */
3689
+ name:
3690
+ string;
3691
+ /** OAuth 2.0 token for the current user. */
3692
+ oauth_token?:
3693
+ string;
3694
+ /** Returns response with indentations and line breaks. */
3695
+ prettyPrint?:
3696
+ boolean;
3697
+ /** 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. */
3698
+ quotaUser?:
3699
+ string;
3700
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3701
+ upload_protocol?:
3702
+ string;
3703
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3704
+ uploadType?:
3705
+ string;
3706
+ }): Request<Namespace>;
3707
+ /** Lists fleet namespaces. */
3708
+ list(request?: {
3709
+ /** V1 error format. */
3710
+ "$.xgafv"?:
3711
+ string;
3712
+ /** OAuth access token. */
3713
+ access_token?:
3714
+ string;
3715
+ /** Data format for response. */
3716
+ alt?:
3717
+ string;
3718
+ /** JSONP */
3719
+ callback?:
3720
+ string;
3721
+ /** Selector specifying which fields to include in a partial response. */
3722
+ fields?:
3723
+ string;
3724
+ /** 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. */
3725
+ key?:
3726
+ string;
3727
+ /** OAuth 2.0 token for the current user. */
3728
+ oauth_token?:
3729
+ string;
3730
+ /** 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. */
3731
+ pageSize?:
3732
+ number;
3733
+ /** Optional. Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources. */
3734
+ pageToken?:
3735
+ string;
3736
+ /** Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*‍/locations/*‍/scopes/*`. */
3737
+ parent:
3738
+ string;
3739
+ /** Returns response with indentations and line breaks. */
3740
+ prettyPrint?:
3741
+ boolean;
3742
+ /** 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. */
3743
+ quotaUser?:
3744
+ string;
3745
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3746
+ upload_protocol?:
3747
+ string;
3748
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3749
+ uploadType?:
3750
+ string;
3751
+ }): Request<ListScopeNamespacesResponse>;
3752
+ /** Updates a fleet namespace. */
3753
+ patch(request: {
3754
+ /** V1 error format. */
3755
+ "$.xgafv"?:
3756
+ string;
3757
+ /** OAuth access token. */
3758
+ access_token?:
3759
+ string;
3760
+ /** Data format for response. */
3761
+ alt?:
3762
+ string;
3763
+ /** JSONP */
3764
+ callback?:
3765
+ string;
3766
+ /** Selector specifying which fields to include in a partial response. */
3767
+ fields?:
3768
+ string;
3769
+ /** 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. */
3770
+ key?:
3771
+ string;
3772
+ /** The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` */
3773
+ name:
3774
+ string;
3775
+ /** OAuth 2.0 token for the current user. */
3776
+ oauth_token?:
3777
+ string;
3778
+ /** Returns response with indentations and line breaks. */
3779
+ prettyPrint?:
3780
+ boolean;
3781
+ /** 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. */
3782
+ quotaUser?:
3783
+ string;
3784
+ /** Required. The fields to be updated. */
3785
+ updateMask?:
3786
+ string;
3787
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3788
+ upload_protocol?:
3789
+ string;
3790
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3791
+ uploadType?:
3792
+ string;
3793
+ /** Request body */
3794
+ resource:
3795
+ Namespace;
3796
+ }): Request<Operation>;
3797
+ patch(request: {
3798
+ /** V1 error format. */
3799
+ "$.xgafv"?:
3800
+ string;
3801
+ /** OAuth access token. */
3802
+ access_token?:
3803
+ string;
3804
+ /** Data format for response. */
3805
+ alt?:
3806
+ string;
3807
+ /** JSONP */
3808
+ callback?:
3809
+ string;
3810
+ /** Selector specifying which fields to include in a partial response. */
3811
+ fields?:
3812
+ string;
3813
+ /** 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. */
3814
+ key?:
3815
+ string;
3816
+ /** The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` */
3817
+ name:
3818
+ string;
3819
+ /** OAuth 2.0 token for the current user. */
3820
+ oauth_token?:
3821
+ string;
3822
+ /** Returns response with indentations and line breaks. */
3823
+ prettyPrint?:
3824
+ boolean;
3825
+ /** 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. */
3826
+ quotaUser?:
3827
+ string;
3828
+ /** Required. The fields to be updated. */
3829
+ updateMask?:
3830
+ string;
3831
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3832
+ upload_protocol?:
3833
+ string;
3834
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3835
+ uploadType?:
3836
+ string;
3837
+ },
3838
+ body: Namespace): Request<Operation>;
3839
+ }
3840
+ interface RbacrolebindingsResource {
3841
+ /** Creates a Scope RBACRoleBinding. */
3842
+ create(request: {
3843
+ /** V1 error format. */
3844
+ "$.xgafv"?:
3845
+ string;
3846
+ /** OAuth access token. */
3847
+ access_token?:
3848
+ string;
3849
+ /** Data format for response. */
3850
+ alt?:
3851
+ string;
3852
+ /** JSONP */
3853
+ callback?:
3854
+ string;
3855
+ /** Selector specifying which fields to include in a partial response. */
3856
+ fields?:
3857
+ string;
3858
+ /** 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. */
3859
+ key?:
3860
+ string;
3861
+ /** OAuth 2.0 token for the current user. */
3862
+ oauth_token?:
3863
+ string;
3864
+ /** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*‍/locations/*‍/scopes/*`. */
3865
+ parent:
3866
+ string;
3867
+ /** Returns response with indentations and line breaks. */
3868
+ prettyPrint?:
3869
+ boolean;
3870
+ /** 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. */
3871
+ quotaUser?:
3872
+ string;
3873
+ /**
3874
+ * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of
3875
+ * lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a
3876
+ * maximum length of 63 characters.
3877
+ */
3878
+ rbacrolebindingId?:
3879
+ string;
3880
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3881
+ upload_protocol?:
3882
+ string;
3883
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3884
+ uploadType?:
3885
+ string;
3886
+ /** Request body */
3887
+ resource:
3888
+ RBACRoleBinding;
3889
+ }): Request<Operation>;
3890
+ create(request: {
3891
+ /** V1 error format. */
3892
+ "$.xgafv"?:
3893
+ string;
3894
+ /** OAuth access token. */
3895
+ access_token?:
3896
+ string;
3897
+ /** Data format for response. */
3898
+ alt?:
3899
+ string;
3900
+ /** JSONP */
3901
+ callback?:
3902
+ string;
3903
+ /** Selector specifying which fields to include in a partial response. */
3904
+ fields?:
3905
+ string;
3906
+ /** 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. */
3907
+ key?:
3908
+ string;
3909
+ /** OAuth 2.0 token for the current user. */
3910
+ oauth_token?:
3911
+ string;
3912
+ /** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*‍/locations/*‍/scopes/*`. */
3913
+ parent:
3914
+ string;
3915
+ /** Returns response with indentations and line breaks. */
3916
+ prettyPrint?:
3917
+ boolean;
3918
+ /** 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. */
3919
+ quotaUser?:
3920
+ string;
3921
+ /**
3922
+ * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of
3923
+ * lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a
3924
+ * maximum length of 63 characters.
3925
+ */
3926
+ rbacrolebindingId?:
3927
+ string;
3928
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3929
+ upload_protocol?:
3930
+ string;
3931
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3932
+ uploadType?:
3933
+ string;
3934
+ },
3935
+ body: RBACRoleBinding): Request<Operation>;
3936
+ /** Deletes a Scope RBACRoleBinding. */
3937
+ delete(request?: {
3938
+ /** V1 error format. */
3939
+ "$.xgafv"?:
3940
+ string;
3941
+ /** OAuth access token. */
3942
+ access_token?:
3943
+ string;
3944
+ /** Data format for response. */
3945
+ alt?:
3946
+ string;
3947
+ /** JSONP */
3948
+ callback?:
3949
+ string;
3950
+ /** Selector specifying which fields to include in a partial response. */
3951
+ fields?:
3952
+ string;
3953
+ /** 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. */
3954
+ key?:
3955
+ string;
3956
+ /** Required. The RBACRoleBinding resource name in the format `projects/*‍/locations/*‍/scopes/*‍/rbacrolebindings/*`. */
3957
+ name:
3958
+ string;
3959
+ /** OAuth 2.0 token for the current user. */
3960
+ oauth_token?:
3961
+ string;
3962
+ /** Returns response with indentations and line breaks. */
3963
+ prettyPrint?:
3964
+ boolean;
3965
+ /** 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. */
3966
+ quotaUser?:
3967
+ string;
3968
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3969
+ upload_protocol?:
3970
+ string;
3971
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3972
+ uploadType?:
3973
+ string;
3974
+ }): Request<Operation>;
3975
+ /** Returns the details of a Scope RBACRoleBinding. */
3976
+ get(request?: {
3977
+ /** V1 error format. */
3978
+ "$.xgafv"?:
3979
+ string;
3980
+ /** OAuth access token. */
3981
+ access_token?:
3982
+ string;
3983
+ /** Data format for response. */
3984
+ alt?:
3985
+ string;
3986
+ /** JSONP */
3987
+ callback?:
3988
+ string;
3989
+ /** Selector specifying which fields to include in a partial response. */
3990
+ fields?:
3991
+ string;
3992
+ /** 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. */
3993
+ key?:
3994
+ string;
3995
+ /** Required. The RBACRoleBinding resource name in the format `projects/*‍/locations/*‍/scopes/*‍/rbacrolebindings/*`. */
3996
+ name:
3997
+ string;
3998
+ /** OAuth 2.0 token for the current user. */
3999
+ oauth_token?:
4000
+ string;
4001
+ /** Returns response with indentations and line breaks. */
4002
+ prettyPrint?:
4003
+ boolean;
4004
+ /** 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. */
4005
+ quotaUser?:
4006
+ string;
4007
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4008
+ upload_protocol?:
4009
+ string;
4010
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4011
+ uploadType?:
4012
+ string;
4013
+ }): Request<RBACRoleBinding>;
4014
+ /** Lists all Scope RBACRoleBindings. */
4015
+ list(request?: {
4016
+ /** V1 error format. */
4017
+ "$.xgafv"?:
4018
+ string;
4019
+ /** OAuth access token. */
4020
+ access_token?:
4021
+ string;
4022
+ /** Data format for response. */
4023
+ alt?:
4024
+ string;
4025
+ /** JSONP */
4026
+ callback?:
4027
+ string;
4028
+ /** Selector specifying which fields to include in a partial response. */
4029
+ fields?:
4030
+ string;
4031
+ /** 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. */
4032
+ key?:
4033
+ string;
4034
+ /** OAuth 2.0 token for the current user. */
4035
+ oauth_token?:
4036
+ string;
4037
+ /** 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. */
4038
+ pageSize?:
4039
+ number;
4040
+ /** Optional. Token returned by previous call to `ListScopeRBACRoleBindings` which specifies the position in the list from where to continue listing the resources. */
4041
+ pageToken?:
4042
+ string;
4043
+ /** Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*‍/locations/*‍/scopes/*`. */
4044
+ parent:
4045
+ string;
4046
+ /** Returns response with indentations and line breaks. */
4047
+ prettyPrint?:
4048
+ boolean;
4049
+ /** 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. */
4050
+ quotaUser?:
4051
+ string;
4052
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4053
+ upload_protocol?:
4054
+ string;
4055
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4056
+ uploadType?:
4057
+ string;
4058
+ }): Request<ListScopeRBACRoleBindingsResponse>;
4059
+ /** Updates a Scope RBACRoleBinding. */
4060
+ patch(request: {
4061
+ /** V1 error format. */
4062
+ "$.xgafv"?:
4063
+ string;
4064
+ /** OAuth access token. */
4065
+ access_token?:
4066
+ string;
4067
+ /** Data format for response. */
4068
+ alt?:
4069
+ string;
4070
+ /** JSONP */
4071
+ callback?:
4072
+ string;
4073
+ /** Selector specifying which fields to include in a partial response. */
4074
+ fields?:
4075
+ string;
4076
+ /** 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. */
4077
+ key?:
4078
+ string;
4079
+ /**
4080
+ * The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or
4081
+ * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
4082
+ */
4083
+ name:
4084
+ string;
4085
+ /** OAuth 2.0 token for the current user. */
4086
+ oauth_token?:
4087
+ string;
4088
+ /** Returns response with indentations and line breaks. */
4089
+ prettyPrint?:
4090
+ boolean;
4091
+ /** 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. */
4092
+ quotaUser?:
4093
+ string;
4094
+ /** Required. The fields to be updated. */
4095
+ updateMask?:
4096
+ string;
4097
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4098
+ upload_protocol?:
4099
+ string;
4100
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4101
+ uploadType?:
4102
+ string;
4103
+ /** Request body */
4104
+ resource:
4105
+ RBACRoleBinding;
4106
+ }): Request<Operation>;
4107
+ patch(request: {
4108
+ /** V1 error format. */
4109
+ "$.xgafv"?:
4110
+ string;
4111
+ /** OAuth access token. */
4112
+ access_token?:
4113
+ string;
4114
+ /** Data format for response. */
4115
+ alt?:
4116
+ string;
4117
+ /** JSONP */
4118
+ callback?:
4119
+ string;
4120
+ /** Selector specifying which fields to include in a partial response. */
4121
+ fields?:
4122
+ string;
4123
+ /** 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. */
4124
+ key?:
4125
+ string;
4126
+ /**
4127
+ * The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or
4128
+ * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
4129
+ */
4130
+ name:
4131
+ string;
4132
+ /** OAuth 2.0 token for the current user. */
4133
+ oauth_token?:
4134
+ string;
4135
+ /** Returns response with indentations and line breaks. */
4136
+ prettyPrint?:
4137
+ boolean;
4138
+ /** 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. */
4139
+ quotaUser?:
4140
+ string;
4141
+ /** Required. The fields to be updated. */
4142
+ updateMask?:
4143
+ string;
4144
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4145
+ upload_protocol?:
4146
+ string;
4147
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4148
+ uploadType?:
4149
+ string;
4150
+ },
4151
+ body: RBACRoleBinding): Request<Operation>;
4152
+ }
3420
4153
  interface ScopesResource {
3421
4154
  /** Creates a Scope. */
3422
4155
  create(request: {
@@ -3855,6 +4588,10 @@ declare namespace gapi.client {
3855
4588
  string;
3856
4589
  },
3857
4590
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
4591
+ namespaces:
4592
+ NamespacesResource;
4593
+ rbacrolebindings:
4594
+ RbacrolebindingsResource;
3858
4595
  }
3859
4596
  interface LocationsResource {
3860
4597
  /** Gets information about a location. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1",
3
- "version": "0.0.20230720",
3
+ "version": "0.0.20230804",
4
4
  "description": "TypeScript typings for GKE Hub API v1",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -15,6 +15,6 @@
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
18
- "@types/gapi.client.discovery": "*"
18
+ "@types/gapi.client.discovery-v1": "*"
19
19
  }
20
20
  }
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: 20230720
6
+ // Revision: 20230804
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -124,6 +124,7 @@ gapi.load('client', async () => {
124
124
  encryptedClientSecret: "Test string",
125
125
  kubectlRedirectUri: "Test string",
126
126
  tenant: "Test string",
127
+ userClaim: "Test string",
127
128
  },
128
129
  googleConfig: {
129
130
  disable: true,
@@ -319,6 +320,7 @@ gapi.load('client', async () => {
319
320
  encryptedClientSecret: "Test string",
320
321
  kubectlRedirectUri: "Test string",
321
322
  tenant: "Test string",
323
+ userClaim: "Test string",
322
324
  },
323
325
  googleConfig: {
324
326
  disable: true,
@@ -556,6 +558,7 @@ gapi.load('client', async () => {
556
558
  encryptedClientSecret: "Test string",
557
559
  kubectlRedirectUri: "Test string",
558
560
  tenant: "Test string",
561
+ userClaim: "Test string",
559
562
  },
560
563
  googleConfig: {
561
564
  disable: true,
@@ -751,6 +754,7 @@ gapi.load('client', async () => {
751
754
  encryptedClientSecret: "Test string",
752
755
  kubectlRedirectUri: "Test string",
753
756
  tenant: "Test string",
757
+ userClaim: "Test string",
754
758
  },
755
759
  googleConfig: {
756
760
  disable: true,
@@ -1337,6 +1341,9 @@ gapi.load('client', async () => {
1337
1341
  A: "Test string"
1338
1342
  },
1339
1343
  name: "Test string",
1344
+ namespaceLabels: {
1345
+ A: "Test string"
1346
+ },
1340
1347
  state: {
1341
1348
  code: "Test string",
1342
1349
  },
@@ -1374,6 +1381,9 @@ gapi.load('client', async () => {
1374
1381
  A: "Test string"
1375
1382
  },
1376
1383
  name: "Test string",
1384
+ namespaceLabels: {
1385
+ A: "Test string"
1386
+ },
1377
1387
  state: {
1378
1388
  code: "Test string",
1379
1389
  },
@@ -1428,5 +1438,119 @@ gapi.load('client', async () => {
1428
1438
  "Test string"
1429
1439
  ],
1430
1440
  });
1441
+ /** Creates a fleet namespace. */
1442
+ await gapi.client.gkehub.projects.locations.scopes.namespaces.create({
1443
+ parent: "Test string",
1444
+ scopeNamespaceId: "Test string",
1445
+ }, {
1446
+ createTime: "Test string",
1447
+ deleteTime: "Test string",
1448
+ labels: {
1449
+ A: "Test string"
1450
+ },
1451
+ name: "Test string",
1452
+ namespaceLabels: {
1453
+ A: "Test string"
1454
+ },
1455
+ scope: "Test string",
1456
+ state: {
1457
+ code: "Test string",
1458
+ },
1459
+ uid: "Test string",
1460
+ updateTime: "Test string",
1461
+ });
1462
+ /** Deletes a fleet namespace. */
1463
+ await gapi.client.gkehub.projects.locations.scopes.namespaces.delete({
1464
+ name: "Test string",
1465
+ });
1466
+ /** Returns the details of a fleet namespace. */
1467
+ await gapi.client.gkehub.projects.locations.scopes.namespaces.get({
1468
+ name: "Test string",
1469
+ });
1470
+ /** Lists fleet namespaces. */
1471
+ await gapi.client.gkehub.projects.locations.scopes.namespaces.list({
1472
+ pageSize: 42,
1473
+ pageToken: "Test string",
1474
+ parent: "Test string",
1475
+ });
1476
+ /** Updates a fleet namespace. */
1477
+ await gapi.client.gkehub.projects.locations.scopes.namespaces.patch({
1478
+ name: "Test string",
1479
+ updateMask: "Test string",
1480
+ }, {
1481
+ createTime: "Test string",
1482
+ deleteTime: "Test string",
1483
+ labels: {
1484
+ A: "Test string"
1485
+ },
1486
+ name: "Test string",
1487
+ namespaceLabels: {
1488
+ A: "Test string"
1489
+ },
1490
+ scope: "Test string",
1491
+ state: {
1492
+ code: "Test string",
1493
+ },
1494
+ uid: "Test string",
1495
+ updateTime: "Test string",
1496
+ });
1497
+ /** Creates a Scope RBACRoleBinding. */
1498
+ await gapi.client.gkehub.projects.locations.scopes.rbacrolebindings.create({
1499
+ parent: "Test string",
1500
+ rbacrolebindingId: "Test string",
1501
+ }, {
1502
+ createTime: "Test string",
1503
+ deleteTime: "Test string",
1504
+ group: "Test string",
1505
+ labels: {
1506
+ A: "Test string"
1507
+ },
1508
+ name: "Test string",
1509
+ role: {
1510
+ predefinedRole: "Test string",
1511
+ },
1512
+ state: {
1513
+ code: "Test string",
1514
+ },
1515
+ uid: "Test string",
1516
+ updateTime: "Test string",
1517
+ user: "Test string",
1518
+ });
1519
+ /** Deletes a Scope RBACRoleBinding. */
1520
+ await gapi.client.gkehub.projects.locations.scopes.rbacrolebindings.delete({
1521
+ name: "Test string",
1522
+ });
1523
+ /** Returns the details of a Scope RBACRoleBinding. */
1524
+ await gapi.client.gkehub.projects.locations.scopes.rbacrolebindings.get({
1525
+ name: "Test string",
1526
+ });
1527
+ /** Lists all Scope RBACRoleBindings. */
1528
+ await gapi.client.gkehub.projects.locations.scopes.rbacrolebindings.list({
1529
+ pageSize: 42,
1530
+ pageToken: "Test string",
1531
+ parent: "Test string",
1532
+ });
1533
+ /** Updates a Scope RBACRoleBinding. */
1534
+ await gapi.client.gkehub.projects.locations.scopes.rbacrolebindings.patch({
1535
+ name: "Test string",
1536
+ updateMask: "Test string",
1537
+ }, {
1538
+ createTime: "Test string",
1539
+ deleteTime: "Test string",
1540
+ group: "Test string",
1541
+ labels: {
1542
+ A: "Test string"
1543
+ },
1544
+ name: "Test string",
1545
+ role: {
1546
+ predefinedRole: "Test string",
1547
+ },
1548
+ state: {
1549
+ code: "Test string",
1550
+ },
1551
+ uid: "Test string",
1552
+ updateTime: "Test string",
1553
+ user: "Test string",
1554
+ });
1431
1555
  }
1432
1556
  });