@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230609 → 0.0.20230620
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.
- package/index.d.ts +451 -23
- package/package.json +1 -1
- package/tests.ts +86 -19
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:
|
|
12
|
+
// Revision: 20230620
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -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
|
|
336
|
-
*
|
|
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
|
|
349
|
-
* Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded
|
|
350
|
-
* GSA. This field is required when
|
|
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
|
|
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
|
|
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. */
|
|
@@ -886,6 +883,11 @@ declare namespace gapi.client {
|
|
|
886
883
|
manifest?:
|
|
887
884
|
ConnectAgentResource[];
|
|
888
885
|
}
|
|
886
|
+
interface GenerateMembershipRBACRoleBindingYAMLResponse {
|
|
887
|
+
/** a yaml text blob including the RBAC policies. */
|
|
888
|
+
roleBindingsYaml?:
|
|
889
|
+
string;
|
|
890
|
+
}
|
|
889
891
|
interface GkeCluster {
|
|
890
892
|
/** Output only. If cluster_missing is set then it denotes that the GKE cluster no longer exists in the GKE Control Plane. */
|
|
891
893
|
clusterMissing?:
|
|
@@ -1108,6 +1110,14 @@ declare namespace gapi.client {
|
|
|
1108
1110
|
nextPageToken?:
|
|
1109
1111
|
string;
|
|
1110
1112
|
}
|
|
1113
|
+
interface ListMembershipRBACRoleBindingsResponse {
|
|
1114
|
+
/** 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. */
|
|
1115
|
+
nextPageToken?:
|
|
1116
|
+
string;
|
|
1117
|
+
/** The list of Membership RBACRoleBindings. */
|
|
1118
|
+
rbacrolebindings?:
|
|
1119
|
+
RBACRoleBinding[];
|
|
1120
|
+
}
|
|
1111
1121
|
interface ListMembershipsResponse {
|
|
1112
1122
|
/** 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
1123
|
nextPageToken?:
|
|
@@ -1299,9 +1309,6 @@ declare namespace gapi.client {
|
|
|
1299
1309
|
/** Config Management-specific spec. */
|
|
1300
1310
|
configmanagement?:
|
|
1301
1311
|
ConfigManagementMembershipSpec;
|
|
1302
|
-
/** True if value of `feature_spec` was inherited from a fleet-level default. */
|
|
1303
|
-
fleetInherited?:
|
|
1304
|
-
boolean;
|
|
1305
1312
|
/** Fleet observability membership spec */
|
|
1306
1313
|
fleetobservability?:
|
|
1307
1314
|
any;
|
|
@@ -1311,6 +1318,12 @@ declare namespace gapi.client {
|
|
|
1311
1318
|
/** Anthos Service Mesh-specific spec */
|
|
1312
1319
|
mesh?:
|
|
1313
1320
|
ServiceMeshMembershipSpec;
|
|
1321
|
+
/**
|
|
1322
|
+
* 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)
|
|
1323
|
+
* or setting to FLEET explicitly.
|
|
1324
|
+
*/
|
|
1325
|
+
origin?:
|
|
1326
|
+
Origin;
|
|
1314
1327
|
/** Policy Controller spec. */
|
|
1315
1328
|
policycontroller?:
|
|
1316
1329
|
PolicyControllerMembershipSpec;
|
|
@@ -1514,6 +1527,11 @@ declare namespace gapi.client {
|
|
|
1514
1527
|
verb?:
|
|
1515
1528
|
string;
|
|
1516
1529
|
}
|
|
1530
|
+
interface Origin {
|
|
1531
|
+
/** Type specifies which type of origin is set. */
|
|
1532
|
+
type?:
|
|
1533
|
+
string;
|
|
1534
|
+
}
|
|
1517
1535
|
interface Policy {
|
|
1518
1536
|
/** Specifies cloud audit logging configuration for this policy. */
|
|
1519
1537
|
auditConfigs?:
|
|
@@ -3149,6 +3167,414 @@ declare namespace gapi.client {
|
|
|
3149
3167
|
},
|
|
3150
3168
|
body: MembershipBinding): Request<Operation>;
|
|
3151
3169
|
}
|
|
3170
|
+
interface RbacrolebindingsResource {
|
|
3171
|
+
/** Creates a Membership RBACRoleBinding. */
|
|
3172
|
+
create(request: {
|
|
3173
|
+
/** V1 error format. */
|
|
3174
|
+
"$.xgafv"?:
|
|
3175
|
+
string;
|
|
3176
|
+
/** OAuth access token. */
|
|
3177
|
+
access_token?:
|
|
3178
|
+
string;
|
|
3179
|
+
/** Data format for response. */
|
|
3180
|
+
alt?:
|
|
3181
|
+
string;
|
|
3182
|
+
/** JSONP */
|
|
3183
|
+
callback?:
|
|
3184
|
+
string;
|
|
3185
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3186
|
+
fields?:
|
|
3187
|
+
string;
|
|
3188
|
+
/** 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. */
|
|
3189
|
+
key?:
|
|
3190
|
+
string;
|
|
3191
|
+
/** OAuth 2.0 token for the current user. */
|
|
3192
|
+
oauth_token?:
|
|
3193
|
+
string;
|
|
3194
|
+
/** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`. */
|
|
3195
|
+
parent:
|
|
3196
|
+
string;
|
|
3197
|
+
/** Returns response with indentations and line breaks. */
|
|
3198
|
+
prettyPrint?:
|
|
3199
|
+
boolean;
|
|
3200
|
+
/** 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. */
|
|
3201
|
+
quotaUser?:
|
|
3202
|
+
string;
|
|
3203
|
+
/**
|
|
3204
|
+
* 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
|
|
3205
|
+
* 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
|
|
3206
|
+
* maximum length of 63 characters.
|
|
3207
|
+
*/
|
|
3208
|
+
rbacrolebindingId?:
|
|
3209
|
+
string;
|
|
3210
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3211
|
+
upload_protocol?:
|
|
3212
|
+
string;
|
|
3213
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3214
|
+
uploadType?:
|
|
3215
|
+
string;
|
|
3216
|
+
/** Request body */
|
|
3217
|
+
resource:
|
|
3218
|
+
RBACRoleBinding;
|
|
3219
|
+
}): Request<Operation>;
|
|
3220
|
+
create(request: {
|
|
3221
|
+
/** V1 error format. */
|
|
3222
|
+
"$.xgafv"?:
|
|
3223
|
+
string;
|
|
3224
|
+
/** OAuth access token. */
|
|
3225
|
+
access_token?:
|
|
3226
|
+
string;
|
|
3227
|
+
/** Data format for response. */
|
|
3228
|
+
alt?:
|
|
3229
|
+
string;
|
|
3230
|
+
/** JSONP */
|
|
3231
|
+
callback?:
|
|
3232
|
+
string;
|
|
3233
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3234
|
+
fields?:
|
|
3235
|
+
string;
|
|
3236
|
+
/** 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. */
|
|
3237
|
+
key?:
|
|
3238
|
+
string;
|
|
3239
|
+
/** OAuth 2.0 token for the current user. */
|
|
3240
|
+
oauth_token?:
|
|
3241
|
+
string;
|
|
3242
|
+
/** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`. */
|
|
3243
|
+
parent:
|
|
3244
|
+
string;
|
|
3245
|
+
/** Returns response with indentations and line breaks. */
|
|
3246
|
+
prettyPrint?:
|
|
3247
|
+
boolean;
|
|
3248
|
+
/** 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. */
|
|
3249
|
+
quotaUser?:
|
|
3250
|
+
string;
|
|
3251
|
+
/**
|
|
3252
|
+
* 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
|
|
3253
|
+
* 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
|
|
3254
|
+
* maximum length of 63 characters.
|
|
3255
|
+
*/
|
|
3256
|
+
rbacrolebindingId?:
|
|
3257
|
+
string;
|
|
3258
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3259
|
+
upload_protocol?:
|
|
3260
|
+
string;
|
|
3261
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3262
|
+
uploadType?:
|
|
3263
|
+
string;
|
|
3264
|
+
},
|
|
3265
|
+
body: RBACRoleBinding): Request<Operation>;
|
|
3266
|
+
/** Deletes a Membership RBACRoleBinding. */
|
|
3267
|
+
delete(request?: {
|
|
3268
|
+
/** V1 error format. */
|
|
3269
|
+
"$.xgafv"?:
|
|
3270
|
+
string;
|
|
3271
|
+
/** OAuth access token. */
|
|
3272
|
+
access_token?:
|
|
3273
|
+
string;
|
|
3274
|
+
/** Data format for response. */
|
|
3275
|
+
alt?:
|
|
3276
|
+
string;
|
|
3277
|
+
/** JSONP */
|
|
3278
|
+
callback?:
|
|
3279
|
+
string;
|
|
3280
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3281
|
+
fields?:
|
|
3282
|
+
string;
|
|
3283
|
+
/** 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. */
|
|
3284
|
+
key?:
|
|
3285
|
+
string;
|
|
3286
|
+
/** Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`. */
|
|
3287
|
+
name:
|
|
3288
|
+
string;
|
|
3289
|
+
/** OAuth 2.0 token for the current user. */
|
|
3290
|
+
oauth_token?:
|
|
3291
|
+
string;
|
|
3292
|
+
/** Returns response with indentations and line breaks. */
|
|
3293
|
+
prettyPrint?:
|
|
3294
|
+
boolean;
|
|
3295
|
+
/** 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. */
|
|
3296
|
+
quotaUser?:
|
|
3297
|
+
string;
|
|
3298
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3299
|
+
upload_protocol?:
|
|
3300
|
+
string;
|
|
3301
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3302
|
+
uploadType?:
|
|
3303
|
+
string;
|
|
3304
|
+
}): Request<Operation>;
|
|
3305
|
+
/** Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources. */
|
|
3306
|
+
generateMembershipRBACRoleBindingYAML(request: {
|
|
3307
|
+
/** V1 error format. */
|
|
3308
|
+
"$.xgafv"?:
|
|
3309
|
+
string;
|
|
3310
|
+
/** OAuth access token. */
|
|
3311
|
+
access_token?:
|
|
3312
|
+
string;
|
|
3313
|
+
/** Data format for response. */
|
|
3314
|
+
alt?:
|
|
3315
|
+
string;
|
|
3316
|
+
/** JSONP */
|
|
3317
|
+
callback?:
|
|
3318
|
+
string;
|
|
3319
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3320
|
+
fields?:
|
|
3321
|
+
string;
|
|
3322
|
+
/** 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. */
|
|
3323
|
+
key?:
|
|
3324
|
+
string;
|
|
3325
|
+
/** OAuth 2.0 token for the current user. */
|
|
3326
|
+
oauth_token?:
|
|
3327
|
+
string;
|
|
3328
|
+
/** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`. */
|
|
3329
|
+
parent:
|
|
3330
|
+
string;
|
|
3331
|
+
/** Returns response with indentations and line breaks. */
|
|
3332
|
+
prettyPrint?:
|
|
3333
|
+
boolean;
|
|
3334
|
+
/** 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. */
|
|
3335
|
+
quotaUser?:
|
|
3336
|
+
string;
|
|
3337
|
+
/**
|
|
3338
|
+
* 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
|
|
3339
|
+
* 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
|
|
3340
|
+
* maximum length of 63 characters.
|
|
3341
|
+
*/
|
|
3342
|
+
rbacrolebindingId?:
|
|
3343
|
+
string;
|
|
3344
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3345
|
+
upload_protocol?:
|
|
3346
|
+
string;
|
|
3347
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3348
|
+
uploadType?:
|
|
3349
|
+
string;
|
|
3350
|
+
/** Request body */
|
|
3351
|
+
resource:
|
|
3352
|
+
RBACRoleBinding;
|
|
3353
|
+
}): Request<GenerateMembershipRBACRoleBindingYAMLResponse>;
|
|
3354
|
+
generateMembershipRBACRoleBindingYAML(request: {
|
|
3355
|
+
/** V1 error format. */
|
|
3356
|
+
"$.xgafv"?:
|
|
3357
|
+
string;
|
|
3358
|
+
/** OAuth access token. */
|
|
3359
|
+
access_token?:
|
|
3360
|
+
string;
|
|
3361
|
+
/** Data format for response. */
|
|
3362
|
+
alt?:
|
|
3363
|
+
string;
|
|
3364
|
+
/** JSONP */
|
|
3365
|
+
callback?:
|
|
3366
|
+
string;
|
|
3367
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3368
|
+
fields?:
|
|
3369
|
+
string;
|
|
3370
|
+
/** 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. */
|
|
3371
|
+
key?:
|
|
3372
|
+
string;
|
|
3373
|
+
/** OAuth 2.0 token for the current user. */
|
|
3374
|
+
oauth_token?:
|
|
3375
|
+
string;
|
|
3376
|
+
/** Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format `projects/*/locations/*/memberships/*`. */
|
|
3377
|
+
parent:
|
|
3378
|
+
string;
|
|
3379
|
+
/** Returns response with indentations and line breaks. */
|
|
3380
|
+
prettyPrint?:
|
|
3381
|
+
boolean;
|
|
3382
|
+
/** 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. */
|
|
3383
|
+
quotaUser?:
|
|
3384
|
+
string;
|
|
3385
|
+
/**
|
|
3386
|
+
* 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
|
|
3387
|
+
* 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
|
|
3388
|
+
* maximum length of 63 characters.
|
|
3389
|
+
*/
|
|
3390
|
+
rbacrolebindingId?:
|
|
3391
|
+
string;
|
|
3392
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3393
|
+
upload_protocol?:
|
|
3394
|
+
string;
|
|
3395
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3396
|
+
uploadType?:
|
|
3397
|
+
string;
|
|
3398
|
+
},
|
|
3399
|
+
body: RBACRoleBinding): Request<GenerateMembershipRBACRoleBindingYAMLResponse>;
|
|
3400
|
+
/** Returns the details of a Membership RBACRoleBinding. */
|
|
3401
|
+
get(request?: {
|
|
3402
|
+
/** V1 error format. */
|
|
3403
|
+
"$.xgafv"?:
|
|
3404
|
+
string;
|
|
3405
|
+
/** OAuth access token. */
|
|
3406
|
+
access_token?:
|
|
3407
|
+
string;
|
|
3408
|
+
/** Data format for response. */
|
|
3409
|
+
alt?:
|
|
3410
|
+
string;
|
|
3411
|
+
/** JSONP */
|
|
3412
|
+
callback?:
|
|
3413
|
+
string;
|
|
3414
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3415
|
+
fields?:
|
|
3416
|
+
string;
|
|
3417
|
+
/** 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. */
|
|
3418
|
+
key?:
|
|
3419
|
+
string;
|
|
3420
|
+
/** Required. The RBACRoleBinding resource name in the format `projects/*/locations/*/memberships/*/rbacrolebindings/*`. */
|
|
3421
|
+
name:
|
|
3422
|
+
string;
|
|
3423
|
+
/** OAuth 2.0 token for the current user. */
|
|
3424
|
+
oauth_token?:
|
|
3425
|
+
string;
|
|
3426
|
+
/** Returns response with indentations and line breaks. */
|
|
3427
|
+
prettyPrint?:
|
|
3428
|
+
boolean;
|
|
3429
|
+
/** 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. */
|
|
3430
|
+
quotaUser?:
|
|
3431
|
+
string;
|
|
3432
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3433
|
+
upload_protocol?:
|
|
3434
|
+
string;
|
|
3435
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3436
|
+
uploadType?:
|
|
3437
|
+
string;
|
|
3438
|
+
}): Request<RBACRoleBinding>;
|
|
3439
|
+
/** Lists all Membership RBACRoleBindings. */
|
|
3440
|
+
list(request?: {
|
|
3441
|
+
/** V1 error format. */
|
|
3442
|
+
"$.xgafv"?:
|
|
3443
|
+
string;
|
|
3444
|
+
/** OAuth access token. */
|
|
3445
|
+
access_token?:
|
|
3446
|
+
string;
|
|
3447
|
+
/** Data format for response. */
|
|
3448
|
+
alt?:
|
|
3449
|
+
string;
|
|
3450
|
+
/** JSONP */
|
|
3451
|
+
callback?:
|
|
3452
|
+
string;
|
|
3453
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3454
|
+
fields?:
|
|
3455
|
+
string;
|
|
3456
|
+
/** 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. */
|
|
3457
|
+
key?:
|
|
3458
|
+
string;
|
|
3459
|
+
/** OAuth 2.0 token for the current user. */
|
|
3460
|
+
oauth_token?:
|
|
3461
|
+
string;
|
|
3462
|
+
/** 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. */
|
|
3463
|
+
pageSize?:
|
|
3464
|
+
number;
|
|
3465
|
+
/** Optional. Token returned by previous call to `ListMembershipRBACRoleBindings` which specifies the position in the list from where to continue listing the resources. */
|
|
3466
|
+
pageToken?:
|
|
3467
|
+
string;
|
|
3468
|
+
/** Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*/locations/*/memberships/*`. */
|
|
3469
|
+
parent:
|
|
3470
|
+
string;
|
|
3471
|
+
/** Returns response with indentations and line breaks. */
|
|
3472
|
+
prettyPrint?:
|
|
3473
|
+
boolean;
|
|
3474
|
+
/** 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. */
|
|
3475
|
+
quotaUser?:
|
|
3476
|
+
string;
|
|
3477
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3478
|
+
upload_protocol?:
|
|
3479
|
+
string;
|
|
3480
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3481
|
+
uploadType?:
|
|
3482
|
+
string;
|
|
3483
|
+
}): Request<ListMembershipRBACRoleBindingsResponse>;
|
|
3484
|
+
/** Updates a Membership RBACRoleBinding. */
|
|
3485
|
+
patch(request: {
|
|
3486
|
+
/** V1 error format. */
|
|
3487
|
+
"$.xgafv"?:
|
|
3488
|
+
string;
|
|
3489
|
+
/** OAuth access token. */
|
|
3490
|
+
access_token?:
|
|
3491
|
+
string;
|
|
3492
|
+
/** Data format for response. */
|
|
3493
|
+
alt?:
|
|
3494
|
+
string;
|
|
3495
|
+
/** JSONP */
|
|
3496
|
+
callback?:
|
|
3497
|
+
string;
|
|
3498
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3499
|
+
fields?:
|
|
3500
|
+
string;
|
|
3501
|
+
/** 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. */
|
|
3502
|
+
key?:
|
|
3503
|
+
string;
|
|
3504
|
+
/**
|
|
3505
|
+
* The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or
|
|
3506
|
+
* `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
|
|
3507
|
+
*/
|
|
3508
|
+
name:
|
|
3509
|
+
string;
|
|
3510
|
+
/** OAuth 2.0 token for the current user. */
|
|
3511
|
+
oauth_token?:
|
|
3512
|
+
string;
|
|
3513
|
+
/** Returns response with indentations and line breaks. */
|
|
3514
|
+
prettyPrint?:
|
|
3515
|
+
boolean;
|
|
3516
|
+
/** 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. */
|
|
3517
|
+
quotaUser?:
|
|
3518
|
+
string;
|
|
3519
|
+
/** Required. The fields to be updated. */
|
|
3520
|
+
updateMask?:
|
|
3521
|
+
string;
|
|
3522
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3523
|
+
upload_protocol?:
|
|
3524
|
+
string;
|
|
3525
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3526
|
+
uploadType?:
|
|
3527
|
+
string;
|
|
3528
|
+
/** Request body */
|
|
3529
|
+
resource:
|
|
3530
|
+
RBACRoleBinding;
|
|
3531
|
+
}): Request<Operation>;
|
|
3532
|
+
patch(request: {
|
|
3533
|
+
/** V1 error format. */
|
|
3534
|
+
"$.xgafv"?:
|
|
3535
|
+
string;
|
|
3536
|
+
/** OAuth access token. */
|
|
3537
|
+
access_token?:
|
|
3538
|
+
string;
|
|
3539
|
+
/** Data format for response. */
|
|
3540
|
+
alt?:
|
|
3541
|
+
string;
|
|
3542
|
+
/** JSONP */
|
|
3543
|
+
callback?:
|
|
3544
|
+
string;
|
|
3545
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3546
|
+
fields?:
|
|
3547
|
+
string;
|
|
3548
|
+
/** 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. */
|
|
3549
|
+
key?:
|
|
3550
|
+
string;
|
|
3551
|
+
/**
|
|
3552
|
+
* The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or
|
|
3553
|
+
* `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
|
|
3554
|
+
*/
|
|
3555
|
+
name:
|
|
3556
|
+
string;
|
|
3557
|
+
/** OAuth 2.0 token for the current user. */
|
|
3558
|
+
oauth_token?:
|
|
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
|
+
/** Required. The fields to be updated. */
|
|
3567
|
+
updateMask?:
|
|
3568
|
+
string;
|
|
3569
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3570
|
+
upload_protocol?:
|
|
3571
|
+
string;
|
|
3572
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3573
|
+
uploadType?:
|
|
3574
|
+
string;
|
|
3575
|
+
},
|
|
3576
|
+
body: RBACRoleBinding): Request<Operation>;
|
|
3577
|
+
}
|
|
3152
3578
|
interface MembershipsResource {
|
|
3153
3579
|
/**
|
|
3154
3580
|
* 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 +4291,8 @@ declare namespace gapi.client {
|
|
|
3865
4291
|
body: ValidateCreateMembershipRequest): Request<ValidateCreateMembershipResponse>;
|
|
3866
4292
|
bindings:
|
|
3867
4293
|
BindingsResource;
|
|
4294
|
+
rbacrolebindings:
|
|
4295
|
+
RbacrolebindingsResource;
|
|
3868
4296
|
}
|
|
3869
4297
|
interface RbacrolebindingsResource {
|
|
3870
4298
|
/** Creates a RBACRoleBinding. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230620
|
|
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",
|
|
@@ -386,10 +386,6 @@ gapi.load('client', async () => {
|
|
|
386
386
|
syncRev: "Test string",
|
|
387
387
|
syncWaitSecs: "Test string",
|
|
388
388
|
},
|
|
389
|
-
managed: {
|
|
390
|
-
enabled: true,
|
|
391
|
-
stopSyncing: true,
|
|
392
|
-
},
|
|
393
389
|
metricsGcpServiceAccountEmail: "Test string",
|
|
394
390
|
oci: {
|
|
395
391
|
gcpServiceAccountEmail: "Test string",
|
|
@@ -400,12 +396,14 @@ gapi.load('client', async () => {
|
|
|
400
396
|
},
|
|
401
397
|
preventDrift: true,
|
|
402
398
|
sourceFormat: "Test string",
|
|
399
|
+
stopSyncing: true,
|
|
403
400
|
},
|
|
404
401
|
hierarchyController: {
|
|
405
402
|
enabled: true,
|
|
406
403
|
enableHierarchicalResourceQuota: true,
|
|
407
404
|
enablePodTreeLabels: true,
|
|
408
405
|
},
|
|
406
|
+
management: "Test string",
|
|
409
407
|
policyController: {
|
|
410
408
|
auditIntervalSeconds: "Test string",
|
|
411
409
|
enabled: true,
|
|
@@ -818,10 +816,6 @@ gapi.load('client', async () => {
|
|
|
818
816
|
syncRev: "Test string",
|
|
819
817
|
syncWaitSecs: "Test string",
|
|
820
818
|
},
|
|
821
|
-
managed: {
|
|
822
|
-
enabled: true,
|
|
823
|
-
stopSyncing: true,
|
|
824
|
-
},
|
|
825
819
|
metricsGcpServiceAccountEmail: "Test string",
|
|
826
820
|
oci: {
|
|
827
821
|
gcpServiceAccountEmail: "Test string",
|
|
@@ -832,12 +826,14 @@ gapi.load('client', async () => {
|
|
|
832
826
|
},
|
|
833
827
|
preventDrift: true,
|
|
834
828
|
sourceFormat: "Test string",
|
|
829
|
+
stopSyncing: true,
|
|
835
830
|
},
|
|
836
831
|
hierarchyController: {
|
|
837
832
|
enabled: true,
|
|
838
833
|
enableHierarchicalResourceQuota: true,
|
|
839
834
|
enablePodTreeLabels: true,
|
|
840
835
|
},
|
|
836
|
+
management: "Test string",
|
|
841
837
|
policyController: {
|
|
842
838
|
auditIntervalSeconds: "Test string",
|
|
843
839
|
enabled: true,
|
|
@@ -857,7 +853,6 @@ gapi.load('client', async () => {
|
|
|
857
853
|
},
|
|
858
854
|
version: "Test string",
|
|
859
855
|
},
|
|
860
|
-
fleetInherited: true,
|
|
861
856
|
fleetobservability: {
|
|
862
857
|
},
|
|
863
858
|
identityservice: {
|
|
@@ -899,6 +894,9 @@ gapi.load('client', async () => {
|
|
|
899
894
|
defaultChannel: "Test string",
|
|
900
895
|
management: "Test string",
|
|
901
896
|
},
|
|
897
|
+
origin: {
|
|
898
|
+
type: "Test string",
|
|
899
|
+
},
|
|
902
900
|
policycontroller: {
|
|
903
901
|
policyControllerHubConfig: {
|
|
904
902
|
auditIntervalSeconds: "Test string",
|
|
@@ -1082,10 +1080,6 @@ gapi.load('client', async () => {
|
|
|
1082
1080
|
syncRev: "Test string",
|
|
1083
1081
|
syncWaitSecs: "Test string",
|
|
1084
1082
|
},
|
|
1085
|
-
managed: {
|
|
1086
|
-
enabled: true,
|
|
1087
|
-
stopSyncing: true,
|
|
1088
|
-
},
|
|
1089
1083
|
metricsGcpServiceAccountEmail: "Test string",
|
|
1090
1084
|
oci: {
|
|
1091
1085
|
gcpServiceAccountEmail: "Test string",
|
|
@@ -1096,12 +1090,14 @@ gapi.load('client', async () => {
|
|
|
1096
1090
|
},
|
|
1097
1091
|
preventDrift: true,
|
|
1098
1092
|
sourceFormat: "Test string",
|
|
1093
|
+
stopSyncing: true,
|
|
1099
1094
|
},
|
|
1100
1095
|
hierarchyController: {
|
|
1101
1096
|
enabled: true,
|
|
1102
1097
|
enableHierarchicalResourceQuota: true,
|
|
1103
1098
|
enablePodTreeLabels: true,
|
|
1104
1099
|
},
|
|
1100
|
+
management: "Test string",
|
|
1105
1101
|
policyController: {
|
|
1106
1102
|
auditIntervalSeconds: "Test string",
|
|
1107
1103
|
enabled: true,
|
|
@@ -1910,6 +1906,77 @@ gapi.load('client', async () => {
|
|
|
1910
1906
|
uid: "Test string",
|
|
1911
1907
|
updateTime: "Test string",
|
|
1912
1908
|
});
|
|
1909
|
+
/** Creates a Membership RBACRoleBinding. */
|
|
1910
|
+
await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.create({
|
|
1911
|
+
parent: "Test string",
|
|
1912
|
+
rbacrolebindingId: "Test string",
|
|
1913
|
+
}, {
|
|
1914
|
+
createTime: "Test string",
|
|
1915
|
+
deleteTime: "Test string",
|
|
1916
|
+
group: "Test string",
|
|
1917
|
+
name: "Test string",
|
|
1918
|
+
role: {
|
|
1919
|
+
predefinedRole: "Test string",
|
|
1920
|
+
},
|
|
1921
|
+
state: {
|
|
1922
|
+
code: "Test string",
|
|
1923
|
+
},
|
|
1924
|
+
uid: "Test string",
|
|
1925
|
+
updateTime: "Test string",
|
|
1926
|
+
user: "Test string",
|
|
1927
|
+
});
|
|
1928
|
+
/** Deletes a Membership RBACRoleBinding. */
|
|
1929
|
+
await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.delete({
|
|
1930
|
+
name: "Test string",
|
|
1931
|
+
});
|
|
1932
|
+
/** Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources. */
|
|
1933
|
+
await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML({
|
|
1934
|
+
parent: "Test string",
|
|
1935
|
+
rbacrolebindingId: "Test string",
|
|
1936
|
+
}, {
|
|
1937
|
+
createTime: "Test string",
|
|
1938
|
+
deleteTime: "Test string",
|
|
1939
|
+
group: "Test string",
|
|
1940
|
+
name: "Test string",
|
|
1941
|
+
role: {
|
|
1942
|
+
predefinedRole: "Test string",
|
|
1943
|
+
},
|
|
1944
|
+
state: {
|
|
1945
|
+
code: "Test string",
|
|
1946
|
+
},
|
|
1947
|
+
uid: "Test string",
|
|
1948
|
+
updateTime: "Test string",
|
|
1949
|
+
user: "Test string",
|
|
1950
|
+
});
|
|
1951
|
+
/** Returns the details of a Membership RBACRoleBinding. */
|
|
1952
|
+
await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.get({
|
|
1953
|
+
name: "Test string",
|
|
1954
|
+
});
|
|
1955
|
+
/** Lists all Membership RBACRoleBindings. */
|
|
1956
|
+
await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.list({
|
|
1957
|
+
pageSize: 42,
|
|
1958
|
+
pageToken: "Test string",
|
|
1959
|
+
parent: "Test string",
|
|
1960
|
+
});
|
|
1961
|
+
/** Updates a Membership RBACRoleBinding. */
|
|
1962
|
+
await gapi.client.gkehub.projects.locations.memberships.rbacrolebindings.patch({
|
|
1963
|
+
name: "Test string",
|
|
1964
|
+
updateMask: "Test string",
|
|
1965
|
+
}, {
|
|
1966
|
+
createTime: "Test string",
|
|
1967
|
+
deleteTime: "Test string",
|
|
1968
|
+
group: "Test string",
|
|
1969
|
+
name: "Test string",
|
|
1970
|
+
role: {
|
|
1971
|
+
predefinedRole: "Test string",
|
|
1972
|
+
},
|
|
1973
|
+
state: {
|
|
1974
|
+
code: "Test string",
|
|
1975
|
+
},
|
|
1976
|
+
uid: "Test string",
|
|
1977
|
+
updateTime: "Test string",
|
|
1978
|
+
user: "Test string",
|
|
1979
|
+
});
|
|
1913
1980
|
/** Creates a fleet namespace. */
|
|
1914
1981
|
await gapi.client.gkehub.projects.locations.namespaces.create({
|
|
1915
1982
|
namespaceId: "Test string",
|