@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230609 → 0.0.20230627

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 +491 -38
  2. package/package.json +1 -1
  3. package/tests.ts +150 -43
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: 20230609
12
+ // Revision: 20230627
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -296,7 +296,7 @@ declare namespace gapi.client {
296
296
  AppDevExperienceFeatureState;
297
297
  /** FleetObservability feature state. */
298
298
  fleetobservability?:
299
- any;
299
+ FleetObservabilityFeatureState;
300
300
  /** Service Mesh-specific state. */
301
301
  servicemesh?:
302
302
  ServiceMeshFeatureState;
@@ -332,22 +332,18 @@ declare namespace gapi.client {
332
332
  allowVerticalScale?:
333
333
  boolean;
334
334
  /**
335
- * Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false and Managed
336
- * Config Sync is disabled, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. Setting this field to false while enabling Managed Config Sync is
337
- * invalid. If omitted, ConfigSync resources will be managed if: * the git or oci field is present; or * Managed Config Sync is enabled (i.e., managed.enabled is true).
335
+ * Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other
336
+ * ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
338
337
  */
339
338
  enabled?:
340
339
  boolean;
341
340
  /** Git repo configuration for the cluster. */
342
341
  git?:
343
342
  ConfigManagementGitConfig;
344
- /** Configuration for Managed Config Sync. */
345
- managed?:
346
- ConfigManagementManaged;
347
343
  /**
348
- * The Email of the GCP Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the
349
- * Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the
350
- * GSA. This field is required when Managed Config Sync is enabled.
344
+ * The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should
345
+ * have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded
346
+ * to the GSA. This field is required when automatic Feature management is enabled.
351
347
  */
352
348
  metricsGcpServiceAccountEmail?:
353
349
  string;
@@ -360,6 +356,12 @@ declare namespace gapi.client {
360
356
  /** Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode. */
361
357
  sourceFormat?:
362
358
  string;
359
+ /**
360
+ * Set to true to stop syncing configs for a single cluster when automatic Feature management is enabled. Default to false. The field will be ignored when automatic Feature management
361
+ * is disabled.
362
+ */
363
+ stopSyncing?:
364
+ boolean;
363
365
  }
364
366
  interface ConfigManagementConfigSyncDeploymentState {
365
367
  /** Deployment state of admission-webhook */
@@ -452,7 +454,7 @@ declare namespace gapi.client {
452
454
  string;
453
455
  }
454
456
  interface ConfigManagementGitConfig {
455
- /** The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. */
457
+ /** The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount. */
456
458
  gcpServiceAccountEmail?:
457
459
  string;
458
460
  /** URL for the HTTPS proxy to be used when communicating with the Git repo. */
@@ -528,14 +530,6 @@ declare namespace gapi.client {
528
530
  errorMessage?:
529
531
  string;
530
532
  }
531
- interface ConfigManagementManaged {
532
- /** Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. Setting this field to true when configSync.enabled is false is invalid. */
533
- enabled?:
534
- boolean;
535
- /** Set to true to stop syncing configs for a single cluster. Default to false. If set to true, Managed Config Sync will not upgrade Config Sync. */
536
- stopSyncing?:
537
- boolean;
538
- }
539
533
  interface ConfigManagementMembershipSpec {
540
534
  /** Binauthz conifguration for the cluster. */
541
535
  binauthz?:
@@ -553,6 +547,9 @@ declare namespace gapi.client {
553
547
  /** Hierarchy Controller configuration for the cluster. */
554
548
  hierarchyController?:
555
549
  ConfigManagementHierarchyControllerConfig;
550
+ /** Enables automatic Feature management. */
551
+ management?:
552
+ string;
556
553
  /** Policy Controller configuration for the cluster. */
557
554
  policyController?:
558
555
  ConfigManagementPolicyController;
@@ -584,7 +581,7 @@ declare namespace gapi.client {
584
581
  ConfigManagementPolicyControllerState;
585
582
  }
586
583
  interface ConfigManagementOciConfig {
587
- /** The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. */
584
+ /** The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount. */
588
585
  gcpServiceAccountEmail?:
589
586
  string;
590
587
  /** The absolute path of the directory that contains the local resources. Default: the root directory of the image. */
@@ -854,13 +851,47 @@ declare namespace gapi.client {
854
851
  code?:
855
852
  string;
856
853
  }
854
+ interface FleetObservabilityFeatureError {
855
+ /** The code of the error. */
856
+ code?:
857
+ string;
858
+ /** A human-readable description of the current status. */
859
+ description?:
860
+ string;
861
+ }
857
862
  interface FleetObservabilityFeatureSpec {
858
863
  /** Specified if fleet logging feature is enabled for the entire fleet. If UNSPECIFIED, fleet logging feature is disabled for the entire fleet. */
859
864
  loggingConfig?:
860
865
  FleetObservabilityLoggingConfig;
861
866
  }
862
- // tslint:disable-next-line:no-empty-interface
863
867
  interface FleetObservabilityFeatureState {
868
+ /** The feature state of default logging. */
869
+ logging?:
870
+ FleetObservabilityFleetObservabilityLoggingState;
871
+ /** The feature state of fleet monitoring. */
872
+ monitoring?:
873
+ FleetObservabilityFleetObservabilityMonitoringState;
874
+ }
875
+ interface FleetObservabilityFleetObservabilityBaseFeatureState {
876
+ /** The high-level, machine-readable status of this Feature. */
877
+ code?:
878
+ string;
879
+ /** Errors after reconciling the monitoring and logging feature if the code is not OK. */
880
+ errors?:
881
+ FleetObservabilityFeatureError[];
882
+ }
883
+ interface FleetObservabilityFleetObservabilityLoggingState {
884
+ /** The base feature state of fleet default log. */
885
+ defaultLog?:
886
+ FleetObservabilityFleetObservabilityBaseFeatureState;
887
+ /** The base feature state of fleet scope log. */
888
+ scopeLog?:
889
+ FleetObservabilityFleetObservabilityBaseFeatureState;
890
+ }
891
+ interface FleetObservabilityFleetObservabilityMonitoringState {
892
+ /** The base feature state of fleet monitoring feature. */
893
+ state?:
894
+ FleetObservabilityFleetObservabilityBaseFeatureState;
864
895
  }
865
896
  interface FleetObservabilityLoggingConfig {
866
897
  /** Specified if applying the default routing config to logs not specified in other configs. */
@@ -886,6 +917,11 @@ declare namespace gapi.client {
886
917
  manifest?:
887
918
  ConnectAgentResource[];
888
919
  }
920
+ interface GenerateMembershipRBACRoleBindingYAMLResponse {
921
+ /** a yaml text blob including the RBAC policies. */
922
+ roleBindingsYaml?:
923
+ string;
924
+ }
889
925
  interface GkeCluster {
890
926
  /** Output only. If cluster_missing is set then it denotes that the GKE cluster no longer exists in the GKE Control Plane. */
891
927
  clusterMissing?:
@@ -1108,6 +1144,14 @@ declare namespace gapi.client {
1108
1144
  nextPageToken?:
1109
1145
  string;
1110
1146
  }
1147
+ interface ListMembershipRBACRoleBindingsResponse {
1148
+ /** A token to request the next page of resources from the `ListMembershipRBACRoleBindings` method. The value of an empty string means that there are no more resources to return. */
1149
+ nextPageToken?:
1150
+ string;
1151
+ /** The list of Membership RBACRoleBindings. */
1152
+ rbacrolebindings?:
1153
+ RBACRoleBinding[];
1154
+ }
1111
1155
  interface ListMembershipsResponse {
1112
1156
  /** A token to request the next page of resources from the `ListMemberships` method. The value of an empty string means that there are no more resources to return. */
1113
1157
  nextPageToken?:
@@ -1299,9 +1343,6 @@ declare namespace gapi.client {
1299
1343
  /** Config Management-specific spec. */
1300
1344
  configmanagement?:
1301
1345
  ConfigManagementMembershipSpec;
1302
- /** True if value of `feature_spec` was inherited from a fleet-level default. */
1303
- fleetInherited?:
1304
- boolean;
1305
1346
  /** Fleet observability membership spec */
1306
1347
  fleetobservability?:
1307
1348
  any;
@@ -1311,6 +1352,12 @@ declare namespace gapi.client {
1311
1352
  /** Anthos Service Mesh-specific spec */
1312
1353
  mesh?:
1313
1354
  ServiceMeshMembershipSpec;
1355
+ /**
1356
+ * Whether this per-Membership spec was inherited from a fleet-level default. This field can be updated by users by either overriding a Membership config (updated to USER implicitly)
1357
+ * or setting to FLEET explicitly.
1358
+ */
1359
+ origin?:
1360
+ Origin;
1314
1361
  /** Policy Controller spec. */
1315
1362
  policycontroller?:
1316
1363
  PolicyControllerMembershipSpec;
@@ -1514,6 +1561,11 @@ declare namespace gapi.client {
1514
1561
  verb?:
1515
1562
  string;
1516
1563
  }
1564
+ interface Origin {
1565
+ /** Type specifies which type of origin is set. */
1566
+ type?:
1567
+ string;
1568
+ }
1517
1569
  interface Policy {
1518
1570
  /** Specifies cloud audit logging configuration for this policy. */
1519
1571
  auditConfigs?:
@@ -1547,12 +1599,9 @@ declare namespace gapi.client {
1547
1599
  number;
1548
1600
  }
1549
1601
  interface PolicyControllerBundleInstallSpec {
1550
- /** the set of namespaces to be exempted from the bundle */
1602
+ /** The set of namespaces to be exempted from the bundle. */
1551
1603
  exemptedNamespaces?:
1552
1604
  string[];
1553
- /** Management specifies how the bundle will be managed by the controller. */
1554
- management?:
1555
- string;
1556
1605
  }
1557
1606
  interface PolicyControllerHubConfig {
1558
1607
  /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
@@ -1588,9 +1637,6 @@ declare namespace gapi.client {
1588
1637
  /** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
1589
1638
  referentialRulesEnabled?:
1590
1639
  boolean;
1591
- /** Configures the library templates to install along with Policy Controller. */
1592
- templateLibraryConfig?:
1593
- PolicyControllerTemplateLibraryConfig;
1594
1640
  }
1595
1641
  interface PolicyControllerMembershipSpec {
1596
1642
  /** Policy Controller configuration for the cluster. */
@@ -1604,9 +1650,6 @@ declare namespace gapi.client {
1604
1650
  /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" */
1605
1651
  componentStates?:
1606
1652
  { [P in string]: PolicyControllerOnClusterState };
1607
- /** The state of the template library and any bundles included in the chosen version of the manifest */
1608
- contentStates?:
1609
- { [P in string]: PolicyControllerOnClusterState };
1610
1653
  /** The overall content state observed by the Hub Feature controller. */
1611
1654
  policyContentState?:
1612
1655
  PolicyControllerPolicyContentState;
@@ -1653,6 +1696,9 @@ declare namespace gapi.client {
1653
1696
  /** Container resource requirements. */
1654
1697
  containerResources?:
1655
1698
  PolicyControllerResourceRequirements;
1699
+ /** Pod affinity configuration. */
1700
+ podAffinity?:
1701
+ string;
1656
1702
  /** Pod anti-affinity enablement. */
1657
1703
  podAntiAffinity?:
1658
1704
  boolean;
@@ -1680,9 +1726,6 @@ declare namespace gapi.client {
1680
1726
  PolicyControllerResourceList;
1681
1727
  }
1682
1728
  interface PolicyControllerTemplateLibraryConfig {
1683
- /** Whether the standard template library should be installed or not. */
1684
- included?:
1685
- boolean;
1686
1729
  /** Configures the manner in which the template library is installed on the cluster. */
1687
1730
  installation?:
1688
1731
  string;
@@ -3149,6 +3192,414 @@ declare namespace gapi.client {
3149
3192
  },
3150
3193
  body: MembershipBinding): Request<Operation>;
3151
3194
  }
3195
+ interface RbacrolebindingsResource {
3196
+ /** Creates a Membership RBACRoleBinding. */
3197
+ create(request: {
3198
+ /** V1 error format. */
3199
+ "$.xgafv"?:
3200
+ string;
3201
+ /** OAuth access token. */
3202
+ access_token?:
3203
+ string;
3204
+ /** Data format for response. */
3205
+ alt?:
3206
+ string;
3207
+ /** JSONP */
3208
+ callback?:
3209
+ string;
3210
+ /** Selector specifying which fields to include in a partial response. */
3211
+ fields?:
3212
+ string;
3213
+ /** 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. */
3214
+ key?:
3215
+ string;
3216
+ /** OAuth 2.0 token for the current user. */
3217
+ oauth_token?:
3218
+ string;
3219
+ /** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*‍/locations/*‍/memberships/*`. */
3220
+ parent:
3221
+ string;
3222
+ /** Returns response with indentations and line breaks. */
3223
+ prettyPrint?:
3224
+ boolean;
3225
+ /** 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. */
3226
+ quotaUser?:
3227
+ string;
3228
+ /**
3229
+ * 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
3230
+ * 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
3231
+ * maximum length of 63 characters.
3232
+ */
3233
+ rbacrolebindingId?:
3234
+ string;
3235
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3236
+ upload_protocol?:
3237
+ string;
3238
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3239
+ uploadType?:
3240
+ string;
3241
+ /** Request body */
3242
+ resource:
3243
+ RBACRoleBinding;
3244
+ }): Request<Operation>;
3245
+ create(request: {
3246
+ /** V1 error format. */
3247
+ "$.xgafv"?:
3248
+ string;
3249
+ /** OAuth access token. */
3250
+ access_token?:
3251
+ string;
3252
+ /** Data format for response. */
3253
+ alt?:
3254
+ string;
3255
+ /** JSONP */
3256
+ callback?:
3257
+ string;
3258
+ /** Selector specifying which fields to include in a partial response. */
3259
+ fields?:
3260
+ string;
3261
+ /** 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. */
3262
+ key?:
3263
+ string;
3264
+ /** OAuth 2.0 token for the current user. */
3265
+ oauth_token?:
3266
+ string;
3267
+ /** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*‍/locations/*‍/memberships/*`. */
3268
+ parent:
3269
+ string;
3270
+ /** Returns response with indentations and line breaks. */
3271
+ prettyPrint?:
3272
+ boolean;
3273
+ /** 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. */
3274
+ quotaUser?:
3275
+ string;
3276
+ /**
3277
+ * 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
3278
+ * 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
3279
+ * maximum length of 63 characters.
3280
+ */
3281
+ rbacrolebindingId?:
3282
+ string;
3283
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3284
+ upload_protocol?:
3285
+ string;
3286
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3287
+ uploadType?:
3288
+ string;
3289
+ },
3290
+ body: RBACRoleBinding): Request<Operation>;
3291
+ /** Deletes a Membership RBACRoleBinding. */
3292
+ delete(request?: {
3293
+ /** V1 error format. */
3294
+ "$.xgafv"?:
3295
+ string;
3296
+ /** OAuth access token. */
3297
+ access_token?:
3298
+ string;
3299
+ /** Data format for response. */
3300
+ alt?:
3301
+ string;
3302
+ /** JSONP */
3303
+ callback?:
3304
+ string;
3305
+ /** Selector specifying which fields to include in a partial response. */
3306
+ fields?:
3307
+ string;
3308
+ /** 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. */
3309
+ key?:
3310
+ string;
3311
+ /** Required. The RBACRoleBinding resource name in the format `projects/*‍/locations/*‍/memberships/*‍/rbacrolebindings/*`. */
3312
+ name:
3313
+ string;
3314
+ /** OAuth 2.0 token for the current user. */
3315
+ oauth_token?:
3316
+ string;
3317
+ /** Returns response with indentations and line breaks. */
3318
+ prettyPrint?:
3319
+ boolean;
3320
+ /** 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. */
3321
+ quotaUser?:
3322
+ string;
3323
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3324
+ upload_protocol?:
3325
+ string;
3326
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3327
+ uploadType?:
3328
+ string;
3329
+ }): Request<Operation>;
3330
+ /** Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources. */
3331
+ generateMembershipRBACRoleBindingYAML(request: {
3332
+ /** V1 error format. */
3333
+ "$.xgafv"?:
3334
+ string;
3335
+ /** OAuth access token. */
3336
+ access_token?:
3337
+ string;
3338
+ /** Data format for response. */
3339
+ alt?:
3340
+ string;
3341
+ /** JSONP */
3342
+ callback?:
3343
+ string;
3344
+ /** Selector specifying which fields to include in a partial response. */
3345
+ fields?:
3346
+ string;
3347
+ /** 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. */
3348
+ key?:
3349
+ string;
3350
+ /** OAuth 2.0 token for the current user. */
3351
+ oauth_token?:
3352
+ string;
3353
+ /** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*‍/locations/*‍/memberships/*`. */
3354
+ parent:
3355
+ string;
3356
+ /** Returns response with indentations and line breaks. */
3357
+ prettyPrint?:
3358
+ boolean;
3359
+ /** 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. */
3360
+ quotaUser?:
3361
+ string;
3362
+ /**
3363
+ * 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
3364
+ * 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
3365
+ * maximum length of 63 characters.
3366
+ */
3367
+ rbacrolebindingId?:
3368
+ string;
3369
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3370
+ upload_protocol?:
3371
+ string;
3372
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3373
+ uploadType?:
3374
+ string;
3375
+ /** Request body */
3376
+ resource:
3377
+ RBACRoleBinding;
3378
+ }): Request<GenerateMembershipRBACRoleBindingYAMLResponse>;
3379
+ generateMembershipRBACRoleBindingYAML(request: {
3380
+ /** V1 error format. */
3381
+ "$.xgafv"?:
3382
+ string;
3383
+ /** OAuth access token. */
3384
+ access_token?:
3385
+ string;
3386
+ /** Data format for response. */
3387
+ alt?:
3388
+ string;
3389
+ /** JSONP */
3390
+ callback?:
3391
+ string;
3392
+ /** Selector specifying which fields to include in a partial response. */
3393
+ fields?:
3394
+ string;
3395
+ /** 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. */
3396
+ key?:
3397
+ string;
3398
+ /** OAuth 2.0 token for the current user. */
3399
+ oauth_token?:
3400
+ string;
3401
+ /** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*‍/locations/*‍/memberships/*`. */
3402
+ parent:
3403
+ string;
3404
+ /** Returns response with indentations and line breaks. */
3405
+ prettyPrint?:
3406
+ boolean;
3407
+ /** 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. */
3408
+ quotaUser?:
3409
+ string;
3410
+ /**
3411
+ * 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
3412
+ * 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
3413
+ * maximum length of 63 characters.
3414
+ */
3415
+ rbacrolebindingId?:
3416
+ string;
3417
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3418
+ upload_protocol?:
3419
+ string;
3420
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3421
+ uploadType?:
3422
+ string;
3423
+ },
3424
+ body: RBACRoleBinding): Request<GenerateMembershipRBACRoleBindingYAMLResponse>;
3425
+ /** Returns the details of a Membership RBACRoleBinding. */
3426
+ get(request?: {
3427
+ /** V1 error format. */
3428
+ "$.xgafv"?:
3429
+ string;
3430
+ /** OAuth access token. */
3431
+ access_token?:
3432
+ string;
3433
+ /** Data format for response. */
3434
+ alt?:
3435
+ string;
3436
+ /** JSONP */
3437
+ callback?:
3438
+ string;
3439
+ /** Selector specifying which fields to include in a partial response. */
3440
+ fields?:
3441
+ string;
3442
+ /** 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. */
3443
+ key?:
3444
+ string;
3445
+ /** Required. The RBACRoleBinding resource name in the format `projects/*‍/locations/*‍/memberships/*‍/rbacrolebindings/*`. */
3446
+ name:
3447
+ string;
3448
+ /** OAuth 2.0 token for the current user. */
3449
+ oauth_token?:
3450
+ string;
3451
+ /** Returns response with indentations and line breaks. */
3452
+ prettyPrint?:
3453
+ boolean;
3454
+ /** 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. */
3455
+ quotaUser?:
3456
+ string;
3457
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3458
+ upload_protocol?:
3459
+ string;
3460
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3461
+ uploadType?:
3462
+ string;
3463
+ }): Request<RBACRoleBinding>;
3464
+ /** Lists all Membership RBACRoleBindings. */
3465
+ list(request?: {
3466
+ /** V1 error format. */
3467
+ "$.xgafv"?:
3468
+ string;
3469
+ /** OAuth access token. */
3470
+ access_token?:
3471
+ string;
3472
+ /** Data format for response. */
3473
+ alt?:
3474
+ string;
3475
+ /** JSONP */
3476
+ callback?:
3477
+ string;
3478
+ /** Selector specifying which fields to include in a partial response. */
3479
+ fields?:
3480
+ string;
3481
+ /** 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. */
3482
+ key?:
3483
+ string;
3484
+ /** OAuth 2.0 token for the current user. */
3485
+ oauth_token?:
3486
+ string;
3487
+ /** 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. */
3488
+ pageSize?:
3489
+ number;
3490
+ /** Optional. Token returned by previous call to `ListMembershipRBACRoleBindings` which specifies the position in the list from where to continue listing the resources. */
3491
+ pageToken?:
3492
+ string;
3493
+ /** Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*‍/locations/*‍/memberships/*`. */
3494
+ parent:
3495
+ string;
3496
+ /** Returns response with indentations and line breaks. */
3497
+ prettyPrint?:
3498
+ boolean;
3499
+ /** 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. */
3500
+ quotaUser?:
3501
+ string;
3502
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3503
+ upload_protocol?:
3504
+ string;
3505
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3506
+ uploadType?:
3507
+ string;
3508
+ }): Request<ListMembershipRBACRoleBindingsResponse>;
3509
+ /** Updates a Membership RBACRoleBinding. */
3510
+ patch(request: {
3511
+ /** V1 error format. */
3512
+ "$.xgafv"?:
3513
+ string;
3514
+ /** OAuth access token. */
3515
+ access_token?:
3516
+ string;
3517
+ /** Data format for response. */
3518
+ alt?:
3519
+ string;
3520
+ /** JSONP */
3521
+ callback?:
3522
+ string;
3523
+ /** Selector specifying which fields to include in a partial response. */
3524
+ fields?:
3525
+ string;
3526
+ /** 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. */
3527
+ key?:
3528
+ string;
3529
+ /**
3530
+ * The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or
3531
+ * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
3532
+ */
3533
+ name:
3534
+ string;
3535
+ /** OAuth 2.0 token for the current user. */
3536
+ oauth_token?:
3537
+ string;
3538
+ /** Returns response with indentations and line breaks. */
3539
+ prettyPrint?:
3540
+ boolean;
3541
+ /** 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. */
3542
+ quotaUser?:
3543
+ string;
3544
+ /** Required. The fields to be updated. */
3545
+ updateMask?:
3546
+ string;
3547
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3548
+ upload_protocol?:
3549
+ string;
3550
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3551
+ uploadType?:
3552
+ string;
3553
+ /** Request body */
3554
+ resource:
3555
+ RBACRoleBinding;
3556
+ }): Request<Operation>;
3557
+ patch(request: {
3558
+ /** V1 error format. */
3559
+ "$.xgafv"?:
3560
+ string;
3561
+ /** OAuth access token. */
3562
+ access_token?:
3563
+ string;
3564
+ /** Data format for response. */
3565
+ alt?:
3566
+ string;
3567
+ /** JSONP */
3568
+ callback?:
3569
+ string;
3570
+ /** Selector specifying which fields to include in a partial response. */
3571
+ fields?:
3572
+ string;
3573
+ /** 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. */
3574
+ key?:
3575
+ string;
3576
+ /**
3577
+ * The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or
3578
+ * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
3579
+ */
3580
+ name:
3581
+ string;
3582
+ /** OAuth 2.0 token for the current user. */
3583
+ oauth_token?:
3584
+ string;
3585
+ /** Returns response with indentations and line breaks. */
3586
+ prettyPrint?:
3587
+ boolean;
3588
+ /** 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. */
3589
+ quotaUser?:
3590
+ string;
3591
+ /** Required. The fields to be updated. */
3592
+ updateMask?:
3593
+ string;
3594
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3595
+ upload_protocol?:
3596
+ string;
3597
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3598
+ uploadType?:
3599
+ string;
3600
+ },
3601
+ body: RBACRoleBinding): Request<Operation>;
3602
+ }
3152
3603
  interface MembershipsResource {
3153
3604
  /**
3154
3605
  * Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at
@@ -3865,6 +4316,8 @@ declare namespace gapi.client {
3865
4316
  body: ValidateCreateMembershipRequest): Request<ValidateCreateMembershipResponse>;
3866
4317
  bindings:
3867
4318
  BindingsResource;
4319
+ rbacrolebindings:
4320
+ RbacrolebindingsResource;
3868
4321
  }
3869
4322
  interface RbacrolebindingsResource {
3870
4323
  /** Creates a RBACRoleBinding. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20230609",
3
+ "version": "0.0.20230627",
4
4
  "description": "TypeScript typings for GKE Hub API v1alpha",
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: 20230609
6
+ // Revision: 20230627
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -122,10 +122,6 @@ gapi.load('client', async () => {
122
122
  syncRev: "Test string",
123
123
  syncWaitSecs: "Test string",
124
124
  },
125
- managed: {
126
- enabled: true,
127
- stopSyncing: true,
128
- },
129
125
  metricsGcpServiceAccountEmail: "Test string",
130
126
  oci: {
131
127
  gcpServiceAccountEmail: "Test string",
@@ -136,12 +132,14 @@ gapi.load('client', async () => {
136
132
  },
137
133
  preventDrift: true,
138
134
  sourceFormat: "Test string",
135
+ stopSyncing: true,
139
136
  },
140
137
  hierarchyController: {
141
138
  enabled: true,
142
139
  enableHierarchicalResourceQuota: true,
143
140
  enablePodTreeLabels: true,
144
141
  },
142
+ management: "Test string",
145
143
  policyController: {
146
144
  auditIntervalSeconds: "Test string",
147
145
  enabled: true,
@@ -161,7 +159,6 @@ gapi.load('client', async () => {
161
159
  },
162
160
  version: "Test string",
163
161
  },
164
- fleetInherited: true,
165
162
  fleetobservability: {
166
163
  },
167
164
  identityservice: {
@@ -203,6 +200,9 @@ gapi.load('client', async () => {
203
200
  defaultChannel: "Test string",
204
201
  management: "Test string",
205
202
  },
203
+ origin: {
204
+ type: "Test string",
205
+ },
206
206
  policycontroller: {
207
207
  policyControllerHubConfig: {
208
208
  auditIntervalSeconds: "Test string",
@@ -219,6 +219,7 @@ gapi.load('client', async () => {
219
219
  memory: "Test string",
220
220
  },
221
221
  },
222
+ podAffinity: "Test string",
222
223
  podAntiAffinity: true,
223
224
  podTolerations: [
224
225
  {
@@ -248,19 +249,13 @@ gapi.load('client', async () => {
248
249
  exemptedNamespaces: [
249
250
  "Test string"
250
251
  ],
251
- management: "Test string",
252
252
  }
253
253
  },
254
254
  templateLibrary: {
255
- included: true,
256
255
  installation: "Test string",
257
256
  },
258
257
  },
259
258
  referentialRulesEnabled: true,
260
- templateLibraryConfig: {
261
- included: true,
262
- installation: "Test string",
263
- },
264
259
  },
265
260
  version: "Test string",
266
261
  },
@@ -386,10 +381,6 @@ gapi.load('client', async () => {
386
381
  syncRev: "Test string",
387
382
  syncWaitSecs: "Test string",
388
383
  },
389
- managed: {
390
- enabled: true,
391
- stopSyncing: true,
392
- },
393
384
  metricsGcpServiceAccountEmail: "Test string",
394
385
  oci: {
395
386
  gcpServiceAccountEmail: "Test string",
@@ -400,12 +391,14 @@ gapi.load('client', async () => {
400
391
  },
401
392
  preventDrift: true,
402
393
  sourceFormat: "Test string",
394
+ stopSyncing: true,
403
395
  },
404
396
  hierarchyController: {
405
397
  enabled: true,
406
398
  enableHierarchicalResourceQuota: true,
407
399
  enablePodTreeLabels: true,
408
400
  },
401
+ management: "Test string",
409
402
  policyController: {
410
403
  auditIntervalSeconds: "Test string",
411
404
  enabled: true,
@@ -501,12 +494,6 @@ gapi.load('client', async () => {
501
494
  state: "Test string",
502
495
  }
503
496
  },
504
- contentStates: {
505
- A: {
506
- details: "Test string",
507
- state: "Test string",
508
- }
509
- },
510
497
  policyContentState: {
511
498
  bundleStates: {
512
499
  A: {
@@ -689,6 +676,37 @@ gapi.load('client', async () => {
689
676
  },
690
677
  },
691
678
  fleetobservability: {
679
+ logging: {
680
+ defaultLog: {
681
+ code: "Test string",
682
+ errors: [
683
+ {
684
+ code: "Test string",
685
+ description: "Test string",
686
+ }
687
+ ],
688
+ },
689
+ scopeLog: {
690
+ code: "Test string",
691
+ errors: [
692
+ {
693
+ code: "Test string",
694
+ description: "Test string",
695
+ }
696
+ ],
697
+ },
698
+ },
699
+ monitoring: {
700
+ state: {
701
+ code: "Test string",
702
+ errors: [
703
+ {
704
+ code: "Test string",
705
+ description: "Test string",
706
+ }
707
+ ],
708
+ },
709
+ },
692
710
  },
693
711
  servicemesh: {
694
712
  analysisMessages: [
@@ -818,10 +836,6 @@ gapi.load('client', async () => {
818
836
  syncRev: "Test string",
819
837
  syncWaitSecs: "Test string",
820
838
  },
821
- managed: {
822
- enabled: true,
823
- stopSyncing: true,
824
- },
825
839
  metricsGcpServiceAccountEmail: "Test string",
826
840
  oci: {
827
841
  gcpServiceAccountEmail: "Test string",
@@ -832,12 +846,14 @@ gapi.load('client', async () => {
832
846
  },
833
847
  preventDrift: true,
834
848
  sourceFormat: "Test string",
849
+ stopSyncing: true,
835
850
  },
836
851
  hierarchyController: {
837
852
  enabled: true,
838
853
  enableHierarchicalResourceQuota: true,
839
854
  enablePodTreeLabels: true,
840
855
  },
856
+ management: "Test string",
841
857
  policyController: {
842
858
  auditIntervalSeconds: "Test string",
843
859
  enabled: true,
@@ -857,7 +873,6 @@ gapi.load('client', async () => {
857
873
  },
858
874
  version: "Test string",
859
875
  },
860
- fleetInherited: true,
861
876
  fleetobservability: {
862
877
  },
863
878
  identityservice: {
@@ -899,6 +914,9 @@ gapi.load('client', async () => {
899
914
  defaultChannel: "Test string",
900
915
  management: "Test string",
901
916
  },
917
+ origin: {
918
+ type: "Test string",
919
+ },
902
920
  policycontroller: {
903
921
  policyControllerHubConfig: {
904
922
  auditIntervalSeconds: "Test string",
@@ -915,6 +933,7 @@ gapi.load('client', async () => {
915
933
  memory: "Test string",
916
934
  },
917
935
  },
936
+ podAffinity: "Test string",
918
937
  podAntiAffinity: true,
919
938
  podTolerations: [
920
939
  {
@@ -944,19 +963,13 @@ gapi.load('client', async () => {
944
963
  exemptedNamespaces: [
945
964
  "Test string"
946
965
  ],
947
- management: "Test string",
948
966
  }
949
967
  },
950
968
  templateLibrary: {
951
- included: true,
952
969
  installation: "Test string",
953
970
  },
954
971
  },
955
972
  referentialRulesEnabled: true,
956
- templateLibraryConfig: {
957
- included: true,
958
- installation: "Test string",
959
- },
960
973
  },
961
974
  version: "Test string",
962
975
  },
@@ -1082,10 +1095,6 @@ gapi.load('client', async () => {
1082
1095
  syncRev: "Test string",
1083
1096
  syncWaitSecs: "Test string",
1084
1097
  },
1085
- managed: {
1086
- enabled: true,
1087
- stopSyncing: true,
1088
- },
1089
1098
  metricsGcpServiceAccountEmail: "Test string",
1090
1099
  oci: {
1091
1100
  gcpServiceAccountEmail: "Test string",
@@ -1096,12 +1105,14 @@ gapi.load('client', async () => {
1096
1105
  },
1097
1106
  preventDrift: true,
1098
1107
  sourceFormat: "Test string",
1108
+ stopSyncing: true,
1099
1109
  },
1100
1110
  hierarchyController: {
1101
1111
  enabled: true,
1102
1112
  enableHierarchicalResourceQuota: true,
1103
1113
  enablePodTreeLabels: true,
1104
1114
  },
1115
+ management: "Test string",
1105
1116
  policyController: {
1106
1117
  auditIntervalSeconds: "Test string",
1107
1118
  enabled: true,
@@ -1197,12 +1208,6 @@ gapi.load('client', async () => {
1197
1208
  state: "Test string",
1198
1209
  }
1199
1210
  },
1200
- contentStates: {
1201
- A: {
1202
- details: "Test string",
1203
- state: "Test string",
1204
- }
1205
- },
1206
1211
  policyContentState: {
1207
1212
  bundleStates: {
1208
1213
  A: {
@@ -1385,6 +1390,37 @@ gapi.load('client', async () => {
1385
1390
  },
1386
1391
  },
1387
1392
  fleetobservability: {
1393
+ logging: {
1394
+ defaultLog: {
1395
+ code: "Test string",
1396
+ errors: [
1397
+ {
1398
+ code: "Test string",
1399
+ description: "Test string",
1400
+ }
1401
+ ],
1402
+ },
1403
+ scopeLog: {
1404
+ code: "Test string",
1405
+ errors: [
1406
+ {
1407
+ code: "Test string",
1408
+ description: "Test string",
1409
+ }
1410
+ ],
1411
+ },
1412
+ },
1413
+ monitoring: {
1414
+ state: {
1415
+ code: "Test string",
1416
+ errors: [
1417
+ {
1418
+ code: "Test string",
1419
+ description: "Test string",
1420
+ }
1421
+ ],
1422
+ },
1423
+ },
1388
1424
  },
1389
1425
  servicemesh: {
1390
1426
  analysisMessages: [
@@ -1910,6 +1946,77 @@ gapi.load('client', async () => {
1910
1946
  uid: "Test string",
1911
1947
  updateTime: "Test string",
1912
1948
  });
1949
+ /** Creates a Membership RBACRoleBinding. */
1950
+ await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.create({
1951
+ parent: "Test string",
1952
+ rbacrolebindingId: "Test string",
1953
+ }, {
1954
+ createTime: "Test string",
1955
+ deleteTime: "Test string",
1956
+ group: "Test string",
1957
+ name: "Test string",
1958
+ role: {
1959
+ predefinedRole: "Test string",
1960
+ },
1961
+ state: {
1962
+ code: "Test string",
1963
+ },
1964
+ uid: "Test string",
1965
+ updateTime: "Test string",
1966
+ user: "Test string",
1967
+ });
1968
+ /** Deletes a Membership RBACRoleBinding. */
1969
+ await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.delete({
1970
+ name: "Test string",
1971
+ });
1972
+ /** Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources. */
1973
+ await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML({
1974
+ parent: "Test string",
1975
+ rbacrolebindingId: "Test string",
1976
+ }, {
1977
+ createTime: "Test string",
1978
+ deleteTime: "Test string",
1979
+ group: "Test string",
1980
+ name: "Test string",
1981
+ role: {
1982
+ predefinedRole: "Test string",
1983
+ },
1984
+ state: {
1985
+ code: "Test string",
1986
+ },
1987
+ uid: "Test string",
1988
+ updateTime: "Test string",
1989
+ user: "Test string",
1990
+ });
1991
+ /** Returns the details of a Membership RBACRoleBinding. */
1992
+ await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.get({
1993
+ name: "Test string",
1994
+ });
1995
+ /** Lists all Membership RBACRoleBindings. */
1996
+ await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.list({
1997
+ pageSize: 42,
1998
+ pageToken: "Test string",
1999
+ parent: "Test string",
2000
+ });
2001
+ /** Updates a Membership RBACRoleBinding. */
2002
+ await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.patch({
2003
+ name: "Test string",
2004
+ updateMask: "Test string",
2005
+ }, {
2006
+ createTime: "Test string",
2007
+ deleteTime: "Test string",
2008
+ group: "Test string",
2009
+ name: "Test string",
2010
+ role: {
2011
+ predefinedRole: "Test string",
2012
+ },
2013
+ state: {
2014
+ code: "Test string",
2015
+ },
2016
+ uid: "Test string",
2017
+ updateTime: "Test string",
2018
+ user: "Test string",
2019
+ });
1913
2020
  /** Creates a fleet namespace. */
1914
2021
  await gapi.client.gkehub.projects.locations.namespaces.create({
1915
2022
  namespaceId: "Test string",