@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20220729

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 ADDED
@@ -0,0 +1,2445 @@
1
+ /* Type definitions for non-npm package GKE Hub API v1alpha 0.0 */
2
+ // Project: https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://gkehub.googleapis.com/$discovery/rest?version=v1alpha
13
+ // Revision: 20220729
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load GKE Hub API v1alpha */
19
+ function load(urlOrObject: "https://gkehub.googleapis.com/$discovery/rest?version=v1alpha"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "gkehub", version: "v1alpha"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "gkehub", version: "v1alpha", callback: () => any): void;
24
+
25
+ namespace gkehub {
26
+ interface AnthosObservabilityFeatureSpec {
27
+ /** default membership spec for unconfigured memberships */
28
+ defaultMembershipSpec?: AnthosObservabilityMembershipSpec;
29
+ }
30
+ interface AnthosObservabilityMembershipSpec {
31
+ /** use full of metrics rather than optimized metrics. See https://cloud.google.com/anthos/clusters/docs/on-prem/1.8/concepts/logging-and-monitoring#optimized_metrics_default_metrics */
32
+ doNotOptimizeMetrics?: boolean;
33
+ /** enable collecting and reporting metrics and logs from user apps See go/onyx-application-metrics-logs-user-guide */
34
+ enableStackdriverOnApplications?: boolean;
35
+ /** the version of stackdriver operator used by this feature */
36
+ version?: string;
37
+ }
38
+ interface AnthosVMMembershipSpec {
39
+ /** List of configurations of the Anthos For VM subfeatures that are to be enabled */
40
+ subfeaturesSpec?: AnthosVMSubFeatureSpec[];
41
+ }
42
+ interface AnthosVMMembershipState {
43
+ /** State of the local PE-controller inside the cluster */
44
+ localControllerState?: LocalControllerState;
45
+ /** List of AnthosVM subfeature states */
46
+ subfeatureState?: AnthosVMSubFeatureState[];
47
+ }
48
+ interface AnthosVMSubFeatureSpec {
49
+ /**
50
+ * Indicates whether the subfeature should be enabled on the cluster or not. If set to true, the subfeature's control plane and resources will be installed in the cluster. If set to
51
+ * false, the oneof spec if present will be ignored and nothing will be installed in the cluster.
52
+ */
53
+ enabled?: boolean;
54
+ /** MigrateSpec repsents the configuration for Migrate subfeature. */
55
+ migrateSpec?: any;
56
+ /** ServiceMeshSpec repsents the configuration for Service Mesh subfeature. */
57
+ serviceMeshSpec?: any;
58
+ }
59
+ interface AnthosVMSubFeatureState {
60
+ /** Description represents human readable description of the subfeature state. If the deployment failed, this should also contain the reason for the failure. */
61
+ description?: string;
62
+ /** InstallationState represents the state of installation of the subfeature in the cluster. */
63
+ installationState?: string;
64
+ /** MigrateState represents the state of the Migrate subfeature. */
65
+ migrateState?: any;
66
+ /** ServiceMeshState represents the state of the Service Mesh subfeature. */
67
+ serviceMeshState?: any;
68
+ }
69
+ // tslint:disable-next-line:no-empty-interface
70
+ interface AppDevExperienceFeatureSpec {
71
+ }
72
+ interface AppDevExperienceFeatureState {
73
+ /** Status of subcomponent that detects configured Service Mesh resources. */
74
+ networkingInstallSucceeded?: Status;
75
+ }
76
+ interface ApplianceCluster {
77
+ /** Immutable. Self-link of the GCP resource for the Appliance Cluster. For example: //transferappliance.googleapis.com/projects/my-project/locations/us-west1-a/appliances/my-appliance */
78
+ resourceLink?: string;
79
+ }
80
+ interface AuditConfig {
81
+ /** The configuration for logging of each type of permission. */
82
+ auditLogConfigs?: AuditLogConfig[];
83
+ /**
84
+ * Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all
85
+ * services.
86
+ */
87
+ service?: string;
88
+ }
89
+ interface AuditLogConfig {
90
+ /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
91
+ exemptedMembers?: string[];
92
+ /** The log type that this config enables. */
93
+ logType?: string;
94
+ }
95
+ interface Authority {
96
+ /** Output only. An identity provider that reflects the `issuer` in the workload identity pool. */
97
+ identityProvider?: string;
98
+ /**
99
+ * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters. If set, then Google will allow valid OIDC tokens
100
+ * from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables
101
+ * Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
102
+ */
103
+ issuer?: string;
104
+ /**
105
+ * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517). When this field is set, OIDC discovery will NOT be performed on `issuer`, and instead OIDC tokens
106
+ * will be validated using this field.
107
+ */
108
+ oidcJwks?: string;
109
+ /**
110
+ * Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships
111
+ * that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.
112
+ */
113
+ workloadIdentityPool?: string;
114
+ }
115
+ interface Binding {
116
+ /**
117
+ * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`,
118
+ * then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
119
+ * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
120
+ */
121
+ condition?: Expr;
122
+ /**
123
+ * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
124
+ * the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
125
+ * account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
126
+ * represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example,
127
+ * `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
128
+ * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. *
129
+ * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
130
+ * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
131
+ * account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently
132
+ * deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in
133
+ * the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
134
+ */
135
+ members?: string[];
136
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
137
+ role?: string;
138
+ }
139
+ // tslint:disable-next-line:no-empty-interface
140
+ interface CancelOperationRequest {
141
+ }
142
+ interface CloudAuditLoggingFeatureSpec {
143
+ /**
144
+ * Service account that should be allowlisted to send the audit logs; eg cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must already exist, but do not need to
145
+ * have any permissions granted to them. The customer's entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.)
146
+ */
147
+ allowlistedServiceAccounts?: string[];
148
+ }
149
+ interface CloudBuildMembershipSpec {
150
+ /** Whether it is allowed to run the privileged builds on the cluster or not. */
151
+ securityPolicy?: string;
152
+ /** Version of the cloud build software on the cluster. */
153
+ version?: string;
154
+ }
155
+ interface CommonFeatureSpec {
156
+ /** Anthos Observability spec */
157
+ anthosobservability?: AnthosObservabilityFeatureSpec;
158
+ /** Appdevexperience specific spec. */
159
+ appdevexperience?: any;
160
+ /** Cloud Audit Logging-specific spec. */
161
+ cloudauditlogging?: CloudAuditLoggingFeatureSpec;
162
+ /** Multicluster Ingress-specific spec. */
163
+ multiclusteringress?: MultiClusterIngressFeatureSpec;
164
+ /** Workload Certificate spec. */
165
+ workloadcertificate?: FeatureSpec;
166
+ }
167
+ interface CommonFeatureState {
168
+ /** Appdevexperience specific state. */
169
+ appdevexperience?: AppDevExperienceFeatureState;
170
+ /** Service Mesh-specific state. */
171
+ servicemesh?: ServiceMeshFeatureState;
172
+ /** Output only. The "running state" of the Feature in this Hub. */
173
+ state?: FeatureState;
174
+ }
175
+ interface ConfigManagementBinauthzConfig {
176
+ /** Whether binauthz is enabled in this cluster. */
177
+ enabled?: boolean;
178
+ }
179
+ interface ConfigManagementBinauthzState {
180
+ /** The version of binauthz that is installed. */
181
+ version?: ConfigManagementBinauthzVersion;
182
+ /** The state of the binauthz webhook. */
183
+ webhook?: string;
184
+ }
185
+ interface ConfigManagementBinauthzVersion {
186
+ /** The version of the binauthz webhook. */
187
+ webhookVersion?: string;
188
+ }
189
+ interface ConfigManagementConfigSync {
190
+ /**
191
+ * 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
192
+ * ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of git field.
193
+ */
194
+ enabled?: boolean;
195
+ /** Git repo configuration for the cluster. */
196
+ git?: ConfigManagementGitConfig;
197
+ /** OCI repo configuration for the cluster */
198
+ oci?: ConfigManagementOciConfig;
199
+ /** Set to true to enable the Config Sync admission webhook to prevent drifts. If set to `false`, disables the Config Sync admission webhook and does not prevent drifts. */
200
+ preventDrift?: boolean;
201
+ /** Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. */
202
+ sourceFormat?: string;
203
+ }
204
+ interface ConfigManagementConfigSyncDeploymentState {
205
+ /** Deployment state of admission-webhook */
206
+ admissionWebhook?: string;
207
+ /** Deployment state of the git-sync pod */
208
+ gitSync?: string;
209
+ /** Deployment state of the importer pod */
210
+ importer?: string;
211
+ /** Deployment state of the monitor pod */
212
+ monitor?: string;
213
+ /** Deployment state of reconciler-manager pod */
214
+ reconcilerManager?: string;
215
+ /** Deployment state of root-reconciler */
216
+ rootReconciler?: string;
217
+ /** Deployment state of the syncer pod */
218
+ syncer?: string;
219
+ }
220
+ interface ConfigManagementConfigSyncState {
221
+ /** Information about the deployment of ConfigSync, including the version of the various Pods deployed */
222
+ deploymentState?: ConfigManagementConfigSyncDeploymentState;
223
+ /** The state of ConfigSync's process to sync configs to a cluster */
224
+ syncState?: ConfigManagementSyncState;
225
+ /** The version of ConfigSync deployed */
226
+ version?: ConfigManagementConfigSyncVersion;
227
+ }
228
+ interface ConfigManagementConfigSyncVersion {
229
+ /** Version of the deployed admission_webhook pod */
230
+ admissionWebhook?: string;
231
+ /** Version of the deployed git-sync pod */
232
+ gitSync?: string;
233
+ /** Version of the deployed importer pod */
234
+ importer?: string;
235
+ /** Version of the deployed monitor pod */
236
+ monitor?: string;
237
+ /** Version of the deployed reconciler-manager pod */
238
+ reconcilerManager?: string;
239
+ /** Version of the deployed reconciler container in root-reconciler pod */
240
+ rootReconciler?: string;
241
+ /** Version of the deployed syncer pod */
242
+ syncer?: string;
243
+ }
244
+ interface ConfigManagementErrorResource {
245
+ /** Group/version/kind of the resource that is causing an error */
246
+ resourceGvk?: ConfigManagementGroupVersionKind;
247
+ /** Metadata name of the resource that is causing an error */
248
+ resourceName?: string;
249
+ /** Namespace of the resource that is causing an error */
250
+ resourceNamespace?: string;
251
+ /** Path in the git repo of the erroneous config */
252
+ sourcePath?: string;
253
+ }
254
+ interface ConfigManagementGatekeeperDeploymentState {
255
+ /** Status of gatekeeper-audit deployment. */
256
+ gatekeeperAudit?: string;
257
+ /** Status of gatekeeper-controller-manager pod. */
258
+ gatekeeperControllerManagerState?: string;
259
+ /** Status of the pod serving the mutation webhook. */
260
+ gatekeeperMutation?: string;
261
+ }
262
+ interface ConfigManagementGitConfig {
263
+ /** The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. */
264
+ gcpServiceAccountEmail?: string;
265
+ /** URL for the HTTPS proxy to be used when communicating with the Git repo. */
266
+ httpsProxy?: string;
267
+ /** The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. */
268
+ policyDir?: string;
269
+ /** Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. Required. */
270
+ secretType?: string;
271
+ /** The branch of the repository to sync from. Default: master. */
272
+ syncBranch?: string;
273
+ /** The URL of the Git repository to use as the source of truth. */
274
+ syncRepo?: string;
275
+ /** Git revision (tag or hash) to check out. Default HEAD. */
276
+ syncRev?: string;
277
+ /** Period in seconds between consecutive syncs. Default: 15. */
278
+ syncWaitSecs?: string;
279
+ }
280
+ interface ConfigManagementGroupVersionKind {
281
+ /** Kubernetes Group */
282
+ group?: string;
283
+ /** Kubernetes Kind */
284
+ kind?: string;
285
+ /** Kubernetes Version */
286
+ version?: string;
287
+ }
288
+ interface ConfigManagementHierarchyControllerConfig {
289
+ /** Whether Hierarchy Controller is enabled in this cluster. */
290
+ enabled?: boolean;
291
+ /** Whether hierarchical resource quota is enabled in this cluster. */
292
+ enableHierarchicalResourceQuota?: boolean;
293
+ /** Whether pod tree labels are enabled in this cluster. */
294
+ enablePodTreeLabels?: boolean;
295
+ }
296
+ interface ConfigManagementHierarchyControllerDeploymentState {
297
+ /** The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) */
298
+ extension?: string;
299
+ /** The deployment state for open source HNC (e.g. v0.7.0-hc.0) */
300
+ hnc?: string;
301
+ }
302
+ interface ConfigManagementHierarchyControllerState {
303
+ /** The deployment state for Hierarchy Controller */
304
+ state?: ConfigManagementHierarchyControllerDeploymentState;
305
+ /** The version for Hierarchy Controller */
306
+ version?: ConfigManagementHierarchyControllerVersion;
307
+ }
308
+ interface ConfigManagementHierarchyControllerVersion {
309
+ /** Version for Hierarchy Controller extension */
310
+ extension?: string;
311
+ /** Version for open source HNC */
312
+ hnc?: string;
313
+ }
314
+ interface ConfigManagementInstallError {
315
+ /** A string representing the user facing error message */
316
+ errorMessage?: string;
317
+ }
318
+ interface ConfigManagementMembershipSpec {
319
+ /** Binauthz conifguration for the cluster. */
320
+ binauthz?: ConfigManagementBinauthzConfig;
321
+ /** Config Sync configuration for the cluster. */
322
+ configSync?: ConfigManagementConfigSync;
323
+ /** Hierarchy Controller configuration for the cluster. */
324
+ hierarchyController?: ConfigManagementHierarchyControllerConfig;
325
+ /** Policy Controller configuration for the cluster. */
326
+ policyController?: ConfigManagementPolicyController;
327
+ /** Version of ACM installed. */
328
+ version?: string;
329
+ }
330
+ interface ConfigManagementMembershipState {
331
+ /** Binauthz status */
332
+ binauthzState?: ConfigManagementBinauthzState;
333
+ /**
334
+ * The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the
335
+ * cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.
336
+ */
337
+ clusterName?: string;
338
+ /** Current sync status */
339
+ configSyncState?: ConfigManagementConfigSyncState;
340
+ /** Hierarchy Controller status */
341
+ hierarchyControllerState?: ConfigManagementHierarchyControllerState;
342
+ /** Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state */
343
+ membershipSpec?: ConfigManagementMembershipSpec;
344
+ /** Current install status of ACM's Operator */
345
+ operatorState?: ConfigManagementOperatorState;
346
+ /** PolicyController status */
347
+ policyControllerState?: ConfigManagementPolicyControllerState;
348
+ }
349
+ interface ConfigManagementOciConfig {
350
+ /** The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. */
351
+ gcpServiceAccountEmail?: string;
352
+ /** The absolute path of the directory that contains the local resources. Default: the root directory of the image. */
353
+ policyDir?: string;
354
+ /** Type of secret configured for access to the Git repo. */
355
+ secretType?: string;
356
+ /** The OCI image repository URL for the package to sync from. e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. */
357
+ syncRepo?: string;
358
+ /** Period in seconds between consecutive syncs. Default: 15. */
359
+ syncWaitSecs?: string;
360
+ }
361
+ interface ConfigManagementOperatorState {
362
+ /** The state of the Operator's deployment */
363
+ deploymentState?: string;
364
+ /** Install errors. */
365
+ errors?: ConfigManagementInstallError[];
366
+ /** The semenatic version number of the operator */
367
+ version?: string;
368
+ }
369
+ interface ConfigManagementPolicyController {
370
+ /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
371
+ auditIntervalSeconds?: string;
372
+ /** Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. */
373
+ enabled?: boolean;
374
+ /** The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. */
375
+ exemptableNamespaces?: string[];
376
+ /** Logs all denies and dry run failures. */
377
+ logDeniesEnabled?: boolean;
378
+ /** Monitoring specifies the configuration of monitoring. */
379
+ monitoring?: ConfigManagementPolicyControllerMonitoring;
380
+ /** Enable or disable mutation in policy controller. If true, mutation CRDs, webhook and controller deployment will be deployed to the cluster. */
381
+ mutationEnabled?: boolean;
382
+ /** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
383
+ referentialRulesEnabled?: boolean;
384
+ /** Installs the default template library along with Policy Controller. */
385
+ templateLibraryInstalled?: boolean;
386
+ }
387
+ interface ConfigManagementPolicyControllerMonitoring {
388
+ /** Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export. */
389
+ backends?: string[];
390
+ }
391
+ interface ConfigManagementPolicyControllerState {
392
+ /** The state about the policy controller installation. */
393
+ deploymentState?: ConfigManagementGatekeeperDeploymentState;
394
+ /** The version of Gatekeeper Policy Controller deployed. */
395
+ version?: ConfigManagementPolicyControllerVersion;
396
+ }
397
+ interface ConfigManagementPolicyControllerVersion {
398
+ /** The gatekeeper image tag that is composed of ACM version, git tag, build number. */
399
+ version?: string;
400
+ }
401
+ interface ConfigManagementSyncError {
402
+ /** An ACM defined error code */
403
+ code?: string;
404
+ /** A description of the error */
405
+ errorMessage?: string;
406
+ /** A list of config(s) associated with the error, if any */
407
+ errorResources?: ConfigManagementErrorResource[];
408
+ }
409
+ interface ConfigManagementSyncState {
410
+ /** Sync status code */
411
+ code?: string;
412
+ /** A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist. */
413
+ errors?: ConfigManagementSyncError[];
414
+ /** Token indicating the state of the importer. */
415
+ importToken?: string;
416
+ /** Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String */
417
+ lastSync?: string;
418
+ /** Timestamp type of when ACM last successfully synced the repo */
419
+ lastSyncTime?: string;
420
+ /** Token indicating the state of the repo. */
421
+ sourceToken?: string;
422
+ /** Token indicating the state of the syncer. */
423
+ syncToken?: string;
424
+ }
425
+ interface ConnectAgentResource {
426
+ /** YAML manifest of the resource. */
427
+ manifest?: string;
428
+ /** Kubernetes type of the resource. */
429
+ type?: TypeMeta;
430
+ }
431
+ interface EdgeCluster {
432
+ /** Immutable. Self-link of the GCP resource for the Edge Cluster. For example: //edgecontainer.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster */
433
+ resourceLink?: string;
434
+ }
435
+ // tslint:disable-next-line:no-empty-interface
436
+ interface Empty {
437
+ }
438
+ interface Expr {
439
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
440
+ description?: string;
441
+ /** Textual representation of an expression in Common Expression Language syntax. */
442
+ expression?: string;
443
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
444
+ location?: string;
445
+ /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
446
+ title?: string;
447
+ }
448
+ interface Feature {
449
+ /** Output only. When the Feature resource was created. */
450
+ createTime?: string;
451
+ /** Output only. When the Feature resource was deleted. */
452
+ deleteTime?: string;
453
+ /** GCP labels for this Feature. */
454
+ labels?: { [P in string]: string };
455
+ /**
456
+ * Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which
457
+ * Membership the configuration is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project, {l} is a valid location and {m} is a valid Membership in
458
+ * this project at that location. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same
459
+ * Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this
460
+ * reason, it is recommended the same format be used for all entries when mutating a Feature.
461
+ */
462
+ membershipSpecs?: { [P in string]: MembershipFeatureSpec };
463
+ /**
464
+ * Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is
465
+ * for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that
466
+ * location. {p} MUST match the Feature's project number.
467
+ */
468
+ membershipStates?: { [P in string]: MembershipFeatureState };
469
+ /** Output only. The full, unique name of this Feature resource in the format `projects/*‍/locations/*‍/features/*`. */
470
+ name?: string;
471
+ /** Output only. State of the Feature resource itself. */
472
+ resourceState?: FeatureResourceState;
473
+ /** Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused. */
474
+ spec?: CommonFeatureSpec;
475
+ /** Output only. The Hub-wide Feature state. */
476
+ state?: CommonFeatureState;
477
+ /** Output only. When the Feature resource was last updated. */
478
+ updateTime?: string;
479
+ }
480
+ interface FeatureResourceState {
481
+ /** The current state of the Feature resource in the Hub API. */
482
+ state?: string;
483
+ }
484
+ interface FeatureSpec {
485
+ /** Specifies default membership spec. Users can override the default in the member_configs for each member. */
486
+ defaultConfig?: MembershipSpec;
487
+ /** Immutable. Specifies CA configuration. */
488
+ provisionGoogleCa?: string;
489
+ }
490
+ interface FeatureState {
491
+ /** The high-level, machine-readable status of this Feature. */
492
+ code?: string;
493
+ /** A human-readable description of the current status. */
494
+ description?: string;
495
+ /** The time this status and any related Feature-specific details were updated. */
496
+ updateTime?: string;
497
+ }
498
+ interface Fleet {
499
+ /** Output only. When the Fleet was created. */
500
+ createTime?: string;
501
+ /** Output only. When the Fleet was deleted. */
502
+ deleteTime?: string;
503
+ /**
504
+ * Optional. A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen,
505
+ * single-quote, double-quote, space, and exclamation point. Example: `Production Fleet`
506
+ */
507
+ displayName?: string;
508
+ /**
509
+ * Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each GCP project can have at most one fleet
510
+ * resource, named "default".
511
+ */
512
+ name?: string;
513
+ /** Output only. State of the namespace resource. */
514
+ state?: FleetLifecycleState;
515
+ /**
516
+ * Output only. Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created,
517
+ * it gets a different uid.
518
+ */
519
+ uid?: string;
520
+ /** Output only. When the Fleet was last updated. */
521
+ updateTime?: string;
522
+ }
523
+ interface FleetLifecycleState {
524
+ /** Output only. The current state of the Fleet resource. */
525
+ code?: string;
526
+ }
527
+ interface GenerateConnectManifestResponse {
528
+ /** The ordered list of Kubernetes resources that need to be applied to the cluster for GKE Connect agent installation/upgrade. */
529
+ manifest?: ConnectAgentResource[];
530
+ }
531
+ interface GkeCluster {
532
+ /** Output only. If cluster_missing is set then it denotes that the GKE cluster no longer exists in the GKE Control Plane. */
533
+ clusterMissing?: boolean;
534
+ /**
535
+ * Immutable. Self-link of the GCP resource for the GKE cluster. For example: //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster Zonal clusters are
536
+ * also supported.
537
+ */
538
+ resourceLink?: string;
539
+ }
540
+ interface GoogleRpcStatus {
541
+ /** The status code, which should be an enum value of google.rpc.Code. */
542
+ code?: number;
543
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
544
+ details?: Array<{ [P in string]: any }>;
545
+ /**
546
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
547
+ * client.
548
+ */
549
+ message?: string;
550
+ }
551
+ interface IdentityServiceAuthMethod {
552
+ /** AzureAD specific Configuration. */
553
+ azureadConfig?: IdentityServiceAzureADConfig;
554
+ /** GoogleConfig specific configuration */
555
+ googleConfig?: IdentityServiceGoogleConfig;
556
+ /** Identifier for auth config. */
557
+ name?: string;
558
+ /** OIDC specific configuration. */
559
+ oidcConfig?: IdentityServiceOidcConfig;
560
+ /** Proxy server address to use for auth method. */
561
+ proxy?: string;
562
+ }
563
+ interface IdentityServiceAzureADConfig {
564
+ /** ID for the registered client application that makes authentication requests to the Azure AD identity provider. */
565
+ clientId?: string;
566
+ /** Input only. Unencrypted AzureAD client secret will be passed to the GKE Hub CLH. */
567
+ clientSecret?: string;
568
+ /** Output only. Encrypted AzureAD client secret. */
569
+ encryptedClientSecret?: string;
570
+ /** The redirect URL that kubectl uses for authorization. */
571
+ kubectlRedirectUri?: string;
572
+ /** Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant. */
573
+ tenant?: string;
574
+ }
575
+ interface IdentityServiceGoogleConfig {
576
+ /** Disable automatic configuration of Google Plugin on supported platforms. */
577
+ disable?: boolean;
578
+ }
579
+ interface IdentityServiceMembershipSpec {
580
+ /** A member may support multiple auth methods. */
581
+ authMethods?: IdentityServiceAuthMethod[];
582
+ }
583
+ interface IdentityServiceMembershipState {
584
+ /** The reason of the failure. */
585
+ failureReason?: string;
586
+ /** Installed AIS version. This is the AIS version installed on this member. The values makes sense iff state is OK. */
587
+ installedVersion?: string;
588
+ /** Last reconciled membership configuration */
589
+ memberConfig?: IdentityServiceMembershipSpec;
590
+ /** Deployment state on this member */
591
+ state?: string;
592
+ }
593
+ interface IdentityServiceOidcConfig {
594
+ /** PEM-encoded CA for OIDC provider. */
595
+ certificateAuthorityData?: string;
596
+ /** ID for OIDC client application. */
597
+ clientId?: string;
598
+ /** Input only. Unencrypted OIDC client secret will be passed to the GKE Hub CLH. */
599
+ clientSecret?: string;
600
+ /** Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console. */
601
+ deployCloudConsoleProxy?: boolean;
602
+ /** Enable access token. */
603
+ enableAccessToken?: boolean;
604
+ /** Output only. Encrypted OIDC Client secret */
605
+ encryptedClientSecret?: string;
606
+ /** Comma-separated list of key-value pairs. */
607
+ extraParams?: string;
608
+ /** Prefix to prepend to group name. */
609
+ groupPrefix?: string;
610
+ /** Claim in OIDC ID token that holds group information. */
611
+ groupsClaim?: string;
612
+ /** URI for the OIDC provider. This should point to the level below .well-known/openid-configuration. */
613
+ issuerUri?: string;
614
+ /** Registered redirect uri to redirect users going through OAuth flow using kubectl plugin. */
615
+ kubectlRedirectUri?: string;
616
+ /** Comma-separated list of identifiers. */
617
+ scopes?: string;
618
+ /** Claim in OIDC ID token that holds username. */
619
+ userClaim?: string;
620
+ /** Prefix to prepend to user name. */
621
+ userPrefix?: string;
622
+ }
623
+ interface KubernetesMetadata {
624
+ /** Output only. Kubernetes API server version string as reported by `/version`. */
625
+ kubernetesApiServerVersion?: string;
626
+ /** Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB. */
627
+ memoryMb?: number;
628
+ /** Output only. Node count as reported by Kubernetes nodes resources. */
629
+ nodeCount?: number;
630
+ /**
631
+ * Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like
632
+ * GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.
633
+ */
634
+ nodeProviderId?: string;
635
+ /**
636
+ * Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for
637
+ * API consumers.
638
+ */
639
+ updateTime?: string;
640
+ /** Output only. vCPU count as reported by Kubernetes nodes resources. */
641
+ vcpuCount?: number;
642
+ }
643
+ interface KubernetesResource {
644
+ /**
645
+ * Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from
646
+ * CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the
647
+ * caller should make a UpdateMembership call with an empty field mask.
648
+ */
649
+ connectResources?: ResourceManifest[];
650
+ /**
651
+ * Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly. Callers should provide the CR that is currently
652
+ * present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered
653
+ * with another Membership.
654
+ */
655
+ membershipCrManifest?: string;
656
+ /**
657
+ * Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership
658
+ * returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the
659
+ * resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.
660
+ */
661
+ membershipResources?: ResourceManifest[];
662
+ /** Optional. Options for Kubernetes resource generation. */
663
+ resourceOptions?: ResourceOptions;
664
+ }
665
+ interface ListAdminClusterMembershipsResponse {
666
+ /** The list of matching Memberships of admin clusters. */
667
+ adminClusterMemberships?: Membership[];
668
+ /** A token to request the next page of resources from the `ListAdminClusterMemberships` method. The value of an empty string means that there are no more resources to return. */
669
+ nextPageToken?: string;
670
+ /** List of locations that could not be reached while fetching this list. */
671
+ unreachable?: string[];
672
+ }
673
+ interface ListFeaturesResponse {
674
+ /** A token to request the next page of resources from the `ListFeatures` method. The value of an empty string means that there are no more resources to return. */
675
+ nextPageToken?: string;
676
+ /** The list of matching Features */
677
+ resources?: Feature[];
678
+ }
679
+ interface ListFleetsResponse {
680
+ /** The list of matching fleets. */
681
+ fleets?: Fleet[];
682
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. The token is only valid for 1h. */
683
+ nextPageToken?: string;
684
+ }
685
+ interface ListLocationsResponse {
686
+ /** A list of locations that matches the specified filter in the request. */
687
+ locations?: Location[];
688
+ /** The standard List next-page token. */
689
+ nextPageToken?: string;
690
+ }
691
+ interface ListMembershipsResponse {
692
+ /** 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. */
693
+ nextPageToken?: string;
694
+ /** The list of matching Memberships. */
695
+ resources?: Membership[];
696
+ /** List of locations that could not be reached while fetching this list. */
697
+ unreachable?: string[];
698
+ }
699
+ interface ListOperationsResponse {
700
+ /** The standard List next-page token. */
701
+ nextPageToken?: string;
702
+ /** A list of operations that matches the specified filter in the request. */
703
+ operations?: Operation[];
704
+ }
705
+ interface LocalControllerState {
706
+ /** Description represents the human readable description of the current state of the local PE controller */
707
+ description?: string;
708
+ /** InstallationState represents the state of deployment of the local PE controller in the cluster. */
709
+ installationState?: string;
710
+ }
711
+ interface Location {
712
+ /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
713
+ displayName?: string;
714
+ /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
715
+ labels?: { [P in string]: string };
716
+ /** The canonical id for this location. For example: `"us-east1"`. */
717
+ locationId?: string;
718
+ /** Service-specific metadata. For example the available capacity at the given location. */
719
+ metadata?: { [P in string]: any };
720
+ /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
721
+ name?: string;
722
+ }
723
+ interface Membership {
724
+ /**
725
+ * Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details:
726
+ * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
727
+ */
728
+ authority?: Authority;
729
+ /** Output only. When the Membership was created. */
730
+ createTime?: string;
731
+ /** Output only. When the Membership was deleted. */
732
+ deleteTime?: string;
733
+ /** Output only. Description of this membership, limited to 63 characters. Must match the regex: `a-zA-Z0-9*` This field is present for legacy purposes. */
734
+ description?: string;
735
+ /** Optional. Endpoint information to reach this member. */
736
+ endpoint?: MembershipEndpoint;
737
+ /**
738
+ * Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. The ID must match the regex: `a-zA-Z0-9*`
739
+ * If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.
740
+ */
741
+ externalId?: string;
742
+ /** Optional. GCP labels for this membership. */
743
+ labels?: { [P in string]: string };
744
+ /**
745
+ * Output only. For clusters using Connect, the timestamp of the most recent connection established with Google Cloud. This time is updated every several minutes, not continuously. For
746
+ * clusters that do not use GKE Connect, or that have never connected successfully, this field will be unset.
747
+ */
748
+ lastConnectionTime?: string;
749
+ /**
750
+ * Output only. The full, unique name of this Membership resource in the format `projects/*‍/locations/*‍/memberships/{membership_id}`, set during creation. `membership_id` must be a
751
+ * valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric
752
+ * character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
753
+ */
754
+ name?: string;
755
+ /** Output only. State of the Membership resource. */
756
+ state?: MembershipState;
757
+ /**
758
+ * Output only. Google-generated UUID for this resource. This is unique across all Membership resources. If a Membership resource is deleted and another resource with the same name is
759
+ * created, it gets a different unique_id.
760
+ */
761
+ uniqueId?: string;
762
+ /** Output only. When the Membership was last updated. */
763
+ updateTime?: string;
764
+ }
765
+ interface MembershipEndpoint {
766
+ /** Optional. Specific information for a GDC Edge Appliance cluster. */
767
+ applianceCluster?: ApplianceCluster;
768
+ /** Optional. Specific information for a Google Edge cluster. */
769
+ edgeCluster?: EdgeCluster;
770
+ /** Optional. Specific information for a GKE-on-GCP cluster. */
771
+ gkeCluster?: GkeCluster;
772
+ /** Output only. Useful Kubernetes-specific metadata. */
773
+ kubernetesMetadata?: KubernetesMetadata;
774
+ /**
775
+ * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources: * Ensure that the cluster is
776
+ * exclusively registered to one and only one Hub Membership. * Propagate Workload Pool Information available in the Membership Authority field. * Ensure proper initial configuration
777
+ * of default Hub Features.
778
+ */
779
+ kubernetesResource?: KubernetesResource;
780
+ /** Optional. Specific information for a GKE Multi-Cloud cluster. */
781
+ multiCloudCluster?: MultiCloudCluster;
782
+ /** Optional. Specific information for a GKE On-Prem cluster. An onprem user-cluster who has no resourceLink is not allowed to use this field, it should have a nil "type" instead. */
783
+ onPremCluster?: OnPremCluster;
784
+ }
785
+ interface MembershipFeatureSpec {
786
+ /** Anthos Observability-specific spec */
787
+ anthosobservability?: AnthosObservabilityMembershipSpec;
788
+ /** AnthosVM spec. */
789
+ anthosvm?: AnthosVMMembershipSpec;
790
+ /** Cloud Build-specific spec */
791
+ cloudbuild?: CloudBuildMembershipSpec;
792
+ /** Config Management-specific spec. */
793
+ configmanagement?: ConfigManagementMembershipSpec;
794
+ /** Identity Service-specific spec. */
795
+ identityservice?: IdentityServiceMembershipSpec;
796
+ /** Anthos Service Mesh-specific spec */
797
+ mesh?: ServiceMeshMembershipSpec;
798
+ /** Policy Controller spec. */
799
+ policycontroller?: PolicyControllerMembershipSpec;
800
+ /** Workload Certificate spec. */
801
+ workloadcertificate?: MembershipSpec;
802
+ }
803
+ interface MembershipFeatureState {
804
+ /** AnthosVM state. */
805
+ anthosvm?: AnthosVMMembershipState;
806
+ /** Appdevexperience specific state. */
807
+ appdevexperience?: AppDevExperienceFeatureState;
808
+ /** Config Management-specific state. */
809
+ configmanagement?: ConfigManagementMembershipState;
810
+ /** Identity Service-specific state. */
811
+ identityservice?: IdentityServiceMembershipState;
812
+ /** Metering-specific state. */
813
+ metering?: MeteringMembershipState;
814
+ /** Policycontroller-specific state. */
815
+ policycontroller?: PolicyControllerMembershipState;
816
+ /** Service Mesh-specific state. */
817
+ servicemesh?: ServiceMeshMembershipState;
818
+ /** The high-level state of this Feature for a single membership. */
819
+ state?: FeatureState;
820
+ }
821
+ interface MembershipSpec {
822
+ /** Specifies workload certificate management. */
823
+ certificateManagement?: string;
824
+ }
825
+ interface MembershipState {
826
+ /** Output only. The current state of the Membership resource. */
827
+ code?: string;
828
+ }
829
+ interface MeteringMembershipState {
830
+ /** The time stamp of the most recent measurement of the number of vCPUs in the cluster. */
831
+ lastMeasurementTime?: string;
832
+ /** The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision). */
833
+ preciseLastMeasuredClusterVcpuCapacity?: number;
834
+ }
835
+ // tslint:disable-next-line:no-empty-interface
836
+ interface MigrateSpec {
837
+ }
838
+ // tslint:disable-next-line:no-empty-interface
839
+ interface MigrateState {
840
+ }
841
+ interface MultiCloudCluster {
842
+ /** Output only. If cluster_missing is set then it denotes that API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster no longer exists. */
843
+ clusterMissing?: boolean;
844
+ /**
845
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For example: //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
846
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
847
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attachedClusters/my-cluster
848
+ */
849
+ resourceLink?: string;
850
+ }
851
+ interface MultiClusterIngressFeatureSpec {
852
+ /** Deprecated: This field will be ignored and should not be set. Customer's billing structure. */
853
+ billing?: string;
854
+ /** Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar` */
855
+ configMembership?: string;
856
+ }
857
+ interface OnPremCluster {
858
+ /** Immutable. Whether the cluster is an admin cluster. */
859
+ adminCluster?: boolean;
860
+ /** Output only. If cluster_missing is set then it denotes that API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no longer exists. */
861
+ clusterMissing?: boolean;
862
+ /** Immutable. The on prem cluster's type. */
863
+ clusterType?: string;
864
+ /**
865
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
866
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
867
+ */
868
+ resourceLink?: string;
869
+ }
870
+ interface Operation {
871
+ /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
872
+ done?: boolean;
873
+ /** The error result of the operation in case of failure or cancellation. */
874
+ error?: GoogleRpcStatus;
875
+ /**
876
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
877
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
878
+ */
879
+ metadata?: { [P in string]: any };
880
+ /**
881
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
882
+ * with `operations/{unique_id}`.
883
+ */
884
+ name?: string;
885
+ /**
886
+ * 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
887
+ * 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
888
+ * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
889
+ */
890
+ response?: { [P in string]: any };
891
+ }
892
+ interface OperationMetadata {
893
+ /** Output only. API version used to start the operation. */
894
+ apiVersion?: string;
895
+ /**
896
+ * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a
897
+ * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
898
+ */
899
+ cancelRequested?: boolean;
900
+ /** Output only. The time the operation was created. */
901
+ createTime?: string;
902
+ /** Output only. The time the operation finished running. */
903
+ endTime?: string;
904
+ /** Output only. Human-readable status of the operation, if any. */
905
+ statusDetail?: string;
906
+ /** Output only. Server-defined resource path for the target of the operation. */
907
+ target?: string;
908
+ /** Output only. Name of the verb executed by the operation. */
909
+ verb?: string;
910
+ }
911
+ interface Policy {
912
+ /** Specifies cloud audit logging configuration for this policy. */
913
+ auditConfigs?: AuditConfig[];
914
+ /**
915
+ * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings`
916
+ * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a
917
+ * principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another
918
+ * 1,450 principals to the `bindings` in the `Policy`.
919
+ */
920
+ bindings?: Binding[];
921
+ /**
922
+ * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make
923
+ * use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems
924
+ * are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM
925
+ * Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
926
+ * policy, and all of the conditions in the version `3` policy are lost.
927
+ */
928
+ etag?: string;
929
+ /**
930
+ * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings
931
+ * must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a
932
+ * policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use
933
+ * IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
934
+ * policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave
935
+ * the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
936
+ */
937
+ version?: number;
938
+ }
939
+ interface PolicyControllerHubConfig {
940
+ /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
941
+ auditIntervalSeconds?: string;
942
+ /** The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. */
943
+ exemptableNamespaces?: string[];
944
+ /**
945
+ * The install_spec represents the intended state specified by the latest request that mutated install_spec in the feature spec, not the lifecycle state of the feature observed by the
946
+ * Hub feature controller that is reported in the feature state.
947
+ */
948
+ installSpec?: string;
949
+ /** Logs all denies and dry run failures. */
950
+ logDeniesEnabled?: boolean;
951
+ /** Monitoring specifies the configuration of monitoring. */
952
+ monitoring?: PolicyControllerMonitoringConfig;
953
+ /** Enables the ability to mutate resources using Policy Controller. */
954
+ mutationEnabled?: boolean;
955
+ /** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
956
+ referentialRulesEnabled?: boolean;
957
+ /** Configures the library templates to install along with Policy Controller. */
958
+ templateLibraryConfig?: PolicyControllerTemplateLibraryConfig;
959
+ }
960
+ interface PolicyControllerHubState {
961
+ /** Map from deployment name to deployment state. Example deployments are gatekeeper-controller-manager, gatekeeper-audit deployment, and gatekeeper-mutation. */
962
+ deploymentStates?: { [P in string]: string };
963
+ /** The version of Gatekeeper Policy Controller deployed. */
964
+ version?: PolicyControllerHubVersion;
965
+ }
966
+ interface PolicyControllerHubVersion {
967
+ /** The gatekeeper image tag that is composed of ACM version, git tag, build number. */
968
+ version?: string;
969
+ }
970
+ interface PolicyControllerMembershipSpec {
971
+ /** Policy Controller configuration for the cluster. */
972
+ policyControllerHubConfig?: PolicyControllerHubConfig;
973
+ /** Version of Policy Controller installed. */
974
+ version?: string;
975
+ }
976
+ interface PolicyControllerMembershipState {
977
+ /**
978
+ * The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed PC on the
979
+ * cluster manually prior to enabling the PC hub feature. Unique within a Policy Controller installation.
980
+ */
981
+ clusterName?: string;
982
+ /** Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state */
983
+ membershipSpec?: PolicyControllerMembershipSpec;
984
+ /** Policy Controller state observed by the Policy Controller Hub */
985
+ policyControllerHubState?: PolicyControllerHubState;
986
+ /** The lifecycle state Policy Controller is in. */
987
+ state?: string;
988
+ }
989
+ interface PolicyControllerMonitoringConfig {
990
+ /** Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export. */
991
+ backends?: string[];
992
+ }
993
+ interface PolicyControllerTemplateLibraryConfig {
994
+ /** Whether the standard template library should be installed or not. */
995
+ included?: boolean;
996
+ }
997
+ interface ResourceManifest {
998
+ /**
999
+ * 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
1000
+ * resource in a cluster.
1001
+ */
1002
+ clusterScoped?: boolean;
1003
+ /** YAML manifest of the resource. */
1004
+ manifest?: string;
1005
+ }
1006
+ interface ResourceOptions {
1007
+ /**
1008
+ * Optional. The Connect agent version to use for connect_resources. Defaults to the latest GKE Connect version. The version must be a currently supported version, obsolete versions
1009
+ * will be rejected.
1010
+ */
1011
+ connectVersion?: string;
1012
+ /**
1013
+ * Optional. Major version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, `apiextensions/v1beta1`
1014
+ * or`apiextensions/v1`.
1015
+ */
1016
+ k8sVersion?: string;
1017
+ /**
1018
+ * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for CustomResourceDefinition resources. This option should be set for clusters with Kubernetes apiserver versions
1019
+ * <1.16.
1020
+ */
1021
+ v1beta1Crd?: boolean;
1022
+ }
1023
+ interface ServiceMeshAnalysisMessage {
1024
+ /** A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. */
1025
+ args?: { [P in string]: any };
1026
+ /** A human readable description of what the error means. It is suitable for non-internationalize display purposes. */
1027
+ description?: string;
1028
+ /** Details common to all types of Istio and ServiceMesh analysis messages. */
1029
+ messageBase?: ServiceMeshAnalysisMessageBase;
1030
+ /**
1031
+ * A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster *
1032
+ * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
1033
+ */
1034
+ resourcePaths?: string[];
1035
+ }
1036
+ interface ServiceMeshAnalysisMessageBase {
1037
+ /** A url pointing to the Service Mesh or Istio documentation for this specific error type. */
1038
+ documentationUrl?: string;
1039
+ /** Represents how severe a message is. */
1040
+ level?: string;
1041
+ /** Represents the specific type of a message. */
1042
+ type?: ServiceMeshType;
1043
+ }
1044
+ interface ServiceMeshControlPlaneManagement {
1045
+ /** Explanation of state. */
1046
+ details?: ServiceMeshStatusDetails[];
1047
+ /** LifecycleState of control plane management. */
1048
+ state?: string;
1049
+ }
1050
+ interface ServiceMeshDataPlaneManagement {
1051
+ /** Explanation of the status. */
1052
+ details?: ServiceMeshStatusDetails[];
1053
+ /** Lifecycle status of data plane management. */
1054
+ state?: string;
1055
+ }
1056
+ interface ServiceMeshFeatureState {
1057
+ /** Output only. Results of running Service Mesh analyzers. */
1058
+ analysisMessages?: ServiceMeshAnalysisMessage[];
1059
+ }
1060
+ interface ServiceMeshMembershipSpec {
1061
+ /** Enables automatic control plane management. */
1062
+ controlPlane?: string;
1063
+ /** Determines which release channel to use for default injection and service mesh APIs. */
1064
+ defaultChannel?: string;
1065
+ }
1066
+ interface ServiceMeshMembershipState {
1067
+ /** Output only. Results of running Service Mesh analyzers. */
1068
+ analysisMessages?: ServiceMeshAnalysisMessage[];
1069
+ /** The API version (i.e. Istio CRD version) for configuring service mesh in this cluster. This version is influenced by the `default_channel` field. */
1070
+ configApiVersion?: string;
1071
+ /** Output only. Status of control plane management */
1072
+ controlPlaneManagement?: ServiceMeshControlPlaneManagement;
1073
+ /** Output only. Status of data plane management. */
1074
+ dataPlaneManagement?: ServiceMeshDataPlaneManagement;
1075
+ }
1076
+ // tslint:disable-next-line:no-empty-interface
1077
+ interface ServiceMeshSpec {
1078
+ }
1079
+ // tslint:disable-next-line:no-empty-interface
1080
+ interface ServiceMeshState {
1081
+ }
1082
+ interface ServiceMeshStatusDetails {
1083
+ /** A machine-readable code that further describes a broad status. */
1084
+ code?: string;
1085
+ /** Human-readable explanation of code. */
1086
+ details?: string;
1087
+ }
1088
+ interface ServiceMeshType {
1089
+ /** A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) */
1090
+ code?: string;
1091
+ /**
1092
+ * A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field
1093
+ * in open-source Istio.)
1094
+ */
1095
+ displayName?: string;
1096
+ }
1097
+ interface SetIamPolicyRequest {
1098
+ /**
1099
+ * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
1100
+ * services (such as Projects) might reject them.
1101
+ */
1102
+ policy?: Policy;
1103
+ /**
1104
+ * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:
1105
+ * `paths: "bindings, etag"`
1106
+ */
1107
+ updateMask?: string;
1108
+ }
1109
+ interface Status {
1110
+ /** Code specifies AppDevExperienceFeature's subcomponent ready state. */
1111
+ code?: string;
1112
+ /** Description is populated if Code is Failed, explaining why it has failed. */
1113
+ description?: string;
1114
+ }
1115
+ interface TestIamPermissionsRequest {
1116
+ /**
1117
+ * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
1118
+ * Overview](https://cloud.google.com/iam/docs/overview#permissions).
1119
+ */
1120
+ permissions?: string[];
1121
+ }
1122
+ interface TestIamPermissionsResponse {
1123
+ /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
1124
+ permissions?: string[];
1125
+ }
1126
+ interface TypeMeta {
1127
+ /** APIVersion of the resource (e.g. v1). */
1128
+ apiVersion?: string;
1129
+ /** Kind of the resource (e.g. Deployment). */
1130
+ kind?: string;
1131
+ }
1132
+ interface FleetsResource {
1133
+ /** Returns all fleets within an organization or a project that the caller has access to. */
1134
+ list(request?: {
1135
+ /** V1 error format. */
1136
+ "$.xgafv"?: string;
1137
+ /** OAuth access token. */
1138
+ access_token?: string;
1139
+ /** Data format for response. */
1140
+ alt?: string;
1141
+ /** JSONP */
1142
+ callback?: string;
1143
+ /** Selector specifying which fields to include in a partial response. */
1144
+ fields?: string;
1145
+ /** 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. */
1146
+ key?: string;
1147
+ /** OAuth 2.0 token for the current user. */
1148
+ oauth_token?: string;
1149
+ /**
1150
+ * Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000;
1151
+ * values above 1000 will be coerced to 1000.
1152
+ */
1153
+ pageSize?: number;
1154
+ /**
1155
+ * Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets`
1156
+ * must match the call that provided the page token.
1157
+ */
1158
+ pageToken?: string;
1159
+ /** Required. The organization or project to list for Fleets under, in the format `organizations/*‍/locations/*` or `projects/*‍/locations/*`. */
1160
+ parent: string;
1161
+ /** Returns response with indentations and line breaks. */
1162
+ prettyPrint?: boolean;
1163
+ /** 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. */
1164
+ quotaUser?: string;
1165
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1166
+ upload_protocol?: string;
1167
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1168
+ uploadType?: string;
1169
+ }): Request<ListFleetsResponse>;
1170
+ }
1171
+ interface LocationsResource {
1172
+ fleets: FleetsResource;
1173
+ }
1174
+ interface OrganizationsResource {
1175
+ locations: LocationsResource;
1176
+ }
1177
+ interface FeaturesResource {
1178
+ /** Adds a new Feature. */
1179
+ create(request: {
1180
+ /** V1 error format. */
1181
+ "$.xgafv"?: string;
1182
+ /** OAuth access token. */
1183
+ access_token?: string;
1184
+ /** Data format for response. */
1185
+ alt?: string;
1186
+ /** JSONP */
1187
+ callback?: string;
1188
+ /** The ID of the feature to create. */
1189
+ featureId?: string;
1190
+ /** Selector specifying which fields to include in a partial response. */
1191
+ fields?: string;
1192
+ /** 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. */
1193
+ key?: string;
1194
+ /** OAuth 2.0 token for the current user. */
1195
+ oauth_token?: string;
1196
+ /** Required. The parent (project and location) where the Feature will be created. Specified in the format `projects/*‍/locations/*`. */
1197
+ parent: string;
1198
+ /** Returns response with indentations and line breaks. */
1199
+ prettyPrint?: boolean;
1200
+ /** 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. */
1201
+ quotaUser?: string;
1202
+ /**
1203
+ * A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been
1204
+ * completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request
1205
+ * times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the
1206
+ * second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported
1207
+ * (00000000-0000-0000-0000-000000000000).
1208
+ */
1209
+ requestId?: string;
1210
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1211
+ upload_protocol?: string;
1212
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1213
+ uploadType?: string;
1214
+ /** Request body */
1215
+ resource: Feature;
1216
+ }): Request<Operation>;
1217
+ create(request: {
1218
+ /** V1 error format. */
1219
+ "$.xgafv"?: string;
1220
+ /** OAuth access token. */
1221
+ access_token?: string;
1222
+ /** Data format for response. */
1223
+ alt?: string;
1224
+ /** JSONP */
1225
+ callback?: string;
1226
+ /** The ID of the feature to create. */
1227
+ featureId?: string;
1228
+ /** Selector specifying which fields to include in a partial response. */
1229
+ fields?: string;
1230
+ /** 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. */
1231
+ key?: string;
1232
+ /** OAuth 2.0 token for the current user. */
1233
+ oauth_token?: string;
1234
+ /** Required. The parent (project and location) where the Feature will be created. Specified in the format `projects/*‍/locations/*`. */
1235
+ parent: string;
1236
+ /** Returns response with indentations and line breaks. */
1237
+ prettyPrint?: boolean;
1238
+ /** 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. */
1239
+ quotaUser?: string;
1240
+ /**
1241
+ * A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been
1242
+ * completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request
1243
+ * times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the
1244
+ * second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported
1245
+ * (00000000-0000-0000-0000-000000000000).
1246
+ */
1247
+ requestId?: string;
1248
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1249
+ upload_protocol?: string;
1250
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1251
+ uploadType?: string;
1252
+ },
1253
+ body: Feature): Request<Operation>;
1254
+ /** Removes a Feature. */
1255
+ delete(request?: {
1256
+ /** V1 error format. */
1257
+ "$.xgafv"?: string;
1258
+ /** OAuth access token. */
1259
+ access_token?: string;
1260
+ /** Data format for response. */
1261
+ alt?: string;
1262
+ /** JSONP */
1263
+ callback?: string;
1264
+ /** Selector specifying which fields to include in a partial response. */
1265
+ fields?: string;
1266
+ /**
1267
+ * If set to true, the delete will ignore any outstanding resources for this Feature (that is, `FeatureState.has_resources` is set to true). These resources will NOT be cleaned up
1268
+ * or modified in any way.
1269
+ */
1270
+ force?: boolean;
1271
+ /** 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. */
1272
+ key?: string;
1273
+ /** Required. The Feature resource name in the format `projects/*‍/locations/*‍/features/*`. */
1274
+ name: string;
1275
+ /** OAuth 2.0 token for the current user. */
1276
+ oauth_token?: string;
1277
+ /** Returns response with indentations and line breaks. */
1278
+ prettyPrint?: boolean;
1279
+ /** 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. */
1280
+ quotaUser?: string;
1281
+ /**
1282
+ * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
1283
+ * been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the
1284
+ * request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
1285
+ * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
1286
+ * supported (00000000-0000-0000-0000-000000000000).
1287
+ */
1288
+ requestId?: string;
1289
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1290
+ upload_protocol?: string;
1291
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1292
+ uploadType?: string;
1293
+ }): Request<Operation>;
1294
+ /** Gets details of a single Feature. */
1295
+ get(request?: {
1296
+ /** V1 error format. */
1297
+ "$.xgafv"?: string;
1298
+ /** OAuth access token. */
1299
+ access_token?: string;
1300
+ /** Data format for response. */
1301
+ alt?: string;
1302
+ /** JSONP */
1303
+ callback?: string;
1304
+ /** Selector specifying which fields to include in a partial response. */
1305
+ fields?: string;
1306
+ /** 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. */
1307
+ key?: string;
1308
+ /** Required. The Feature resource name in the format `projects/*‍/locations/*‍/features/*` */
1309
+ name: string;
1310
+ /** OAuth 2.0 token for the current user. */
1311
+ oauth_token?: string;
1312
+ /** Returns response with indentations and line breaks. */
1313
+ prettyPrint?: boolean;
1314
+ /** 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. */
1315
+ quotaUser?: string;
1316
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1317
+ upload_protocol?: string;
1318
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1319
+ uploadType?: string;
1320
+ }): Request<Feature>;
1321
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1322
+ getIamPolicy(request?: {
1323
+ /** V1 error format. */
1324
+ "$.xgafv"?: string;
1325
+ /** OAuth access token. */
1326
+ access_token?: string;
1327
+ /** Data format for response. */
1328
+ alt?: string;
1329
+ /** JSONP */
1330
+ callback?: string;
1331
+ /** Selector specifying which fields to include in a partial response. */
1332
+ fields?: string;
1333
+ /** 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. */
1334
+ key?: string;
1335
+ /** OAuth 2.0 token for the current user. */
1336
+ oauth_token?: string;
1337
+ /**
1338
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
1339
+ * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
1340
+ * in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
1341
+ * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
1342
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1343
+ */
1344
+ "options.requestedPolicyVersion"?: number;
1345
+ /** Returns response with indentations and line breaks. */
1346
+ prettyPrint?: boolean;
1347
+ /** 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. */
1348
+ quotaUser?: string;
1349
+ /**
1350
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1351
+ * field.
1352
+ */
1353
+ resource: string;
1354
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1355
+ upload_protocol?: string;
1356
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1357
+ uploadType?: string;
1358
+ }): Request<Policy>;
1359
+ /** Lists Features in a given project and location. */
1360
+ list(request?: {
1361
+ /** V1 error format. */
1362
+ "$.xgafv"?: string;
1363
+ /** OAuth access token. */
1364
+ access_token?: string;
1365
+ /** Data format for response. */
1366
+ alt?: string;
1367
+ /** JSONP */
1368
+ callback?: string;
1369
+ /** Selector specifying which fields to include in a partial response. */
1370
+ fields?: string;
1371
+ /**
1372
+ * Lists Features that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples: - Feature with the name "servicemesh" in project
1373
+ * "foo-proj": name = "projects/foo-proj/locations/global/features/servicemesh" - Features that have a label called `foo`: labels.foo:* - Features that have a label called `foo`
1374
+ * whose value is `bar`: labels.foo = bar
1375
+ */
1376
+ filter?: string;
1377
+ /** 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. */
1378
+ key?: string;
1379
+ /** OAuth 2.0 token for the current user. */
1380
+ oauth_token?: string;
1381
+ /** One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering. */
1382
+ orderBy?: string;
1383
+ /** 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. */
1384
+ pageSize?: number;
1385
+ /** Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources. */
1386
+ pageToken?: string;
1387
+ /** Required. The parent (project and location) where the Features will be listed. Specified in the format `projects/*‍/locations/*`. */
1388
+ parent: string;
1389
+ /** Returns response with indentations and line breaks. */
1390
+ prettyPrint?: boolean;
1391
+ /** 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. */
1392
+ quotaUser?: string;
1393
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1394
+ upload_protocol?: string;
1395
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1396
+ uploadType?: string;
1397
+ }): Request<ListFeaturesResponse>;
1398
+ /** Updates an existing Feature. */
1399
+ patch(request: {
1400
+ /** V1 error format. */
1401
+ "$.xgafv"?: string;
1402
+ /** OAuth access token. */
1403
+ access_token?: string;
1404
+ /** Data format for response. */
1405
+ alt?: string;
1406
+ /** JSONP */
1407
+ callback?: string;
1408
+ /** Selector specifying which fields to include in a partial response. */
1409
+ fields?: string;
1410
+ /** 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. */
1411
+ key?: string;
1412
+ /** Required. The Feature resource name in the format `projects/*‍/locations/*‍/features/*`. */
1413
+ name: string;
1414
+ /** OAuth 2.0 token for the current user. */
1415
+ oauth_token?: string;
1416
+ /** Returns response with indentations and line breaks. */
1417
+ prettyPrint?: boolean;
1418
+ /** 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. */
1419
+ quotaUser?: string;
1420
+ /**
1421
+ * A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been
1422
+ * completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request
1423
+ * times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the
1424
+ * second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported
1425
+ * (00000000-0000-0000-0000-000000000000).
1426
+ */
1427
+ requestId?: string;
1428
+ /** Mask of fields to update. */
1429
+ updateMask?: string;
1430
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1431
+ upload_protocol?: string;
1432
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1433
+ uploadType?: string;
1434
+ /** Request body */
1435
+ resource: Feature;
1436
+ }): Request<Operation>;
1437
+ patch(request: {
1438
+ /** V1 error format. */
1439
+ "$.xgafv"?: string;
1440
+ /** OAuth access token. */
1441
+ access_token?: string;
1442
+ /** Data format for response. */
1443
+ alt?: string;
1444
+ /** JSONP */
1445
+ callback?: string;
1446
+ /** Selector specifying which fields to include in a partial response. */
1447
+ fields?: string;
1448
+ /** 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. */
1449
+ key?: string;
1450
+ /** Required. The Feature resource name in the format `projects/*‍/locations/*‍/features/*`. */
1451
+ name: string;
1452
+ /** OAuth 2.0 token for the current user. */
1453
+ oauth_token?: string;
1454
+ /** Returns response with indentations and line breaks. */
1455
+ prettyPrint?: boolean;
1456
+ /** 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. */
1457
+ quotaUser?: string;
1458
+ /**
1459
+ * A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been
1460
+ * completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request
1461
+ * times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the
1462
+ * second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported
1463
+ * (00000000-0000-0000-0000-000000000000).
1464
+ */
1465
+ requestId?: string;
1466
+ /** Mask of fields to update. */
1467
+ updateMask?: string;
1468
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1469
+ upload_protocol?: string;
1470
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1471
+ uploadType?: string;
1472
+ },
1473
+ body: Feature): Request<Operation>;
1474
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1475
+ setIamPolicy(request: {
1476
+ /** V1 error format. */
1477
+ "$.xgafv"?: string;
1478
+ /** OAuth access token. */
1479
+ access_token?: string;
1480
+ /** Data format for response. */
1481
+ alt?: string;
1482
+ /** JSONP */
1483
+ callback?: string;
1484
+ /** Selector specifying which fields to include in a partial response. */
1485
+ fields?: string;
1486
+ /** 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. */
1487
+ key?: string;
1488
+ /** OAuth 2.0 token for the current user. */
1489
+ oauth_token?: string;
1490
+ /** Returns response with indentations and line breaks. */
1491
+ prettyPrint?: boolean;
1492
+ /** 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. */
1493
+ quotaUser?: string;
1494
+ /**
1495
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1496
+ * field.
1497
+ */
1498
+ resource: string;
1499
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1500
+ upload_protocol?: string;
1501
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1502
+ uploadType?: string;
1503
+ },
1504
+ body: SetIamPolicyRequest): Request<Policy>;
1505
+ /**
1506
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
1507
+ * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
1508
+ */
1509
+ testIamPermissions(request: {
1510
+ /** V1 error format. */
1511
+ "$.xgafv"?: string;
1512
+ /** OAuth access token. */
1513
+ access_token?: string;
1514
+ /** Data format for response. */
1515
+ alt?: string;
1516
+ /** JSONP */
1517
+ callback?: string;
1518
+ /** Selector specifying which fields to include in a partial response. */
1519
+ fields?: string;
1520
+ /** 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. */
1521
+ key?: string;
1522
+ /** OAuth 2.0 token for the current user. */
1523
+ oauth_token?: string;
1524
+ /** Returns response with indentations and line breaks. */
1525
+ prettyPrint?: boolean;
1526
+ /** 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. */
1527
+ quotaUser?: string;
1528
+ /**
1529
+ * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
1530
+ * this field.
1531
+ */
1532
+ resource: string;
1533
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1534
+ upload_protocol?: string;
1535
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1536
+ uploadType?: string;
1537
+ },
1538
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1539
+ }
1540
+ interface FleetsResource {
1541
+ /** Creates a fleet. */
1542
+ create(request: {
1543
+ /** V1 error format. */
1544
+ "$.xgafv"?: string;
1545
+ /** OAuth access token. */
1546
+ access_token?: string;
1547
+ /** Data format for response. */
1548
+ alt?: string;
1549
+ /** JSONP */
1550
+ callback?: string;
1551
+ /** Selector specifying which fields to include in a partial response. */
1552
+ fields?: string;
1553
+ /** 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. */
1554
+ key?: string;
1555
+ /** OAuth 2.0 token for the current user. */
1556
+ oauth_token?: string;
1557
+ /** Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*‍/locations/*`. */
1558
+ parent: string;
1559
+ /** Returns response with indentations and line breaks. */
1560
+ prettyPrint?: boolean;
1561
+ /** 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. */
1562
+ quotaUser?: string;
1563
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1564
+ upload_protocol?: string;
1565
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1566
+ uploadType?: string;
1567
+ /** Request body */
1568
+ resource: Fleet;
1569
+ }): Request<Operation>;
1570
+ create(request: {
1571
+ /** V1 error format. */
1572
+ "$.xgafv"?: string;
1573
+ /** OAuth access token. */
1574
+ access_token?: string;
1575
+ /** Data format for response. */
1576
+ alt?: string;
1577
+ /** JSONP */
1578
+ callback?: string;
1579
+ /** Selector specifying which fields to include in a partial response. */
1580
+ fields?: string;
1581
+ /** 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. */
1582
+ key?: string;
1583
+ /** OAuth 2.0 token for the current user. */
1584
+ oauth_token?: string;
1585
+ /** Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*‍/locations/*`. */
1586
+ parent: string;
1587
+ /** Returns response with indentations and line breaks. */
1588
+ prettyPrint?: boolean;
1589
+ /** 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. */
1590
+ quotaUser?: string;
1591
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1592
+ upload_protocol?: string;
1593
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1594
+ uploadType?: string;
1595
+ },
1596
+ body: Fleet): Request<Operation>;
1597
+ /** Removes a Fleet. There must be no memberships remaining in the Fleet. */
1598
+ delete(request?: {
1599
+ /** V1 error format. */
1600
+ "$.xgafv"?: string;
1601
+ /** OAuth access token. */
1602
+ access_token?: string;
1603
+ /** Data format for response. */
1604
+ alt?: string;
1605
+ /** JSONP */
1606
+ callback?: string;
1607
+ /** Selector specifying which fields to include in a partial response. */
1608
+ fields?: string;
1609
+ /** 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. */
1610
+ key?: string;
1611
+ /** Required. The Fleet resource name in the format `projects/*‍/locations/*‍/fleets/*`. */
1612
+ name: string;
1613
+ /** OAuth 2.0 token for the current user. */
1614
+ oauth_token?: string;
1615
+ /** Returns response with indentations and line breaks. */
1616
+ prettyPrint?: boolean;
1617
+ /** 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. */
1618
+ quotaUser?: string;
1619
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1620
+ upload_protocol?: string;
1621
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1622
+ uploadType?: string;
1623
+ }): Request<Operation>;
1624
+ /** Returns the details of a fleet. */
1625
+ get(request?: {
1626
+ /** V1 error format. */
1627
+ "$.xgafv"?: string;
1628
+ /** OAuth access token. */
1629
+ access_token?: string;
1630
+ /** Data format for response. */
1631
+ alt?: string;
1632
+ /** JSONP */
1633
+ callback?: string;
1634
+ /** Selector specifying which fields to include in a partial response. */
1635
+ fields?: string;
1636
+ /** 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. */
1637
+ key?: string;
1638
+ /** Required. The Fleet resource name in the format `projects/*‍/locations/*‍/fleets/*`. */
1639
+ name: string;
1640
+ /** OAuth 2.0 token for the current user. */
1641
+ oauth_token?: string;
1642
+ /** Returns response with indentations and line breaks. */
1643
+ prettyPrint?: boolean;
1644
+ /** 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. */
1645
+ quotaUser?: string;
1646
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1647
+ upload_protocol?: string;
1648
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1649
+ uploadType?: string;
1650
+ }): Request<Fleet>;
1651
+ /** Returns all fleets within an organization or a project that the caller has access to. */
1652
+ list(request?: {
1653
+ /** V1 error format. */
1654
+ "$.xgafv"?: string;
1655
+ /** OAuth access token. */
1656
+ access_token?: string;
1657
+ /** Data format for response. */
1658
+ alt?: string;
1659
+ /** JSONP */
1660
+ callback?: string;
1661
+ /** Selector specifying which fields to include in a partial response. */
1662
+ fields?: string;
1663
+ /** 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. */
1664
+ key?: string;
1665
+ /** OAuth 2.0 token for the current user. */
1666
+ oauth_token?: string;
1667
+ /**
1668
+ * Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000;
1669
+ * values above 1000 will be coerced to 1000.
1670
+ */
1671
+ pageSize?: number;
1672
+ /**
1673
+ * Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets`
1674
+ * must match the call that provided the page token.
1675
+ */
1676
+ pageToken?: string;
1677
+ /** Required. The organization or project to list for Fleets under, in the format `organizations/*‍/locations/*` or `projects/*‍/locations/*`. */
1678
+ parent: string;
1679
+ /** Returns response with indentations and line breaks. */
1680
+ prettyPrint?: boolean;
1681
+ /** 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. */
1682
+ quotaUser?: string;
1683
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1684
+ upload_protocol?: string;
1685
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1686
+ uploadType?: string;
1687
+ }): Request<ListFleetsResponse>;
1688
+ /** Updates a fleet. */
1689
+ patch(request: {
1690
+ /** V1 error format. */
1691
+ "$.xgafv"?: string;
1692
+ /** OAuth access token. */
1693
+ access_token?: string;
1694
+ /** Data format for response. */
1695
+ alt?: string;
1696
+ /** JSONP */
1697
+ callback?: string;
1698
+ /** Selector specifying which fields to include in a partial response. */
1699
+ fields?: string;
1700
+ /** 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. */
1701
+ key?: string;
1702
+ /**
1703
+ * Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each GCP project can have at most one fleet
1704
+ * resource, named "default".
1705
+ */
1706
+ name: string;
1707
+ /** OAuth 2.0 token for the current user. */
1708
+ oauth_token?: string;
1709
+ /** Returns response with indentations and line breaks. */
1710
+ prettyPrint?: boolean;
1711
+ /** 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. */
1712
+ quotaUser?: string;
1713
+ /** Required. The fields to be updated; */
1714
+ updateMask?: string;
1715
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1716
+ upload_protocol?: string;
1717
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1718
+ uploadType?: string;
1719
+ /** Request body */
1720
+ resource: Fleet;
1721
+ }): Request<Operation>;
1722
+ patch(request: {
1723
+ /** V1 error format. */
1724
+ "$.xgafv"?: string;
1725
+ /** OAuth access token. */
1726
+ access_token?: string;
1727
+ /** Data format for response. */
1728
+ alt?: string;
1729
+ /** JSONP */
1730
+ callback?: string;
1731
+ /** Selector specifying which fields to include in a partial response. */
1732
+ fields?: string;
1733
+ /** 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. */
1734
+ key?: string;
1735
+ /**
1736
+ * Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each GCP project can have at most one fleet
1737
+ * resource, named "default".
1738
+ */
1739
+ name: string;
1740
+ /** OAuth 2.0 token for the current user. */
1741
+ oauth_token?: string;
1742
+ /** Returns response with indentations and line breaks. */
1743
+ prettyPrint?: boolean;
1744
+ /** 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. */
1745
+ quotaUser?: string;
1746
+ /** Required. The fields to be updated; */
1747
+ updateMask?: string;
1748
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1749
+ upload_protocol?: string;
1750
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1751
+ uploadType?: string;
1752
+ },
1753
+ body: Fleet): Request<Operation>;
1754
+ }
1755
+ interface MembershipsResource {
1756
+ /**
1757
+ * Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at
1758
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
1759
+ */
1760
+ create(request: {
1761
+ /** V1 error format. */
1762
+ "$.xgafv"?: string;
1763
+ /** OAuth access token. */
1764
+ access_token?: string;
1765
+ /** Data format for response. */
1766
+ alt?: string;
1767
+ /** JSONP */
1768
+ callback?: string;
1769
+ /** Selector specifying which fields to include in a partial response. */
1770
+ fields?: string;
1771
+ /** 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. */
1772
+ key?: string;
1773
+ /**
1774
+ * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case
1775
+ * 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
1776
+ * length of 63 characters.
1777
+ */
1778
+ membershipId?: string;
1779
+ /** OAuth 2.0 token for the current user. */
1780
+ oauth_token?: string;
1781
+ /** Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects/*‍/locations/*`. */
1782
+ parent: string;
1783
+ /** Returns response with indentations and line breaks. */
1784
+ prettyPrint?: boolean;
1785
+ /** 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. */
1786
+ quotaUser?: string;
1787
+ /**
1788
+ * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
1789
+ * been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the
1790
+ * request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
1791
+ * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
1792
+ * supported (00000000-0000-0000-0000-000000000000).
1793
+ */
1794
+ requestId?: string;
1795
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1796
+ upload_protocol?: string;
1797
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1798
+ uploadType?: string;
1799
+ /** Request body */
1800
+ resource: Membership;
1801
+ }): Request<Operation>;
1802
+ create(request: {
1803
+ /** V1 error format. */
1804
+ "$.xgafv"?: string;
1805
+ /** OAuth access token. */
1806
+ access_token?: string;
1807
+ /** Data format for response. */
1808
+ alt?: string;
1809
+ /** JSONP */
1810
+ callback?: string;
1811
+ /** Selector specifying which fields to include in a partial response. */
1812
+ fields?: string;
1813
+ /** 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. */
1814
+ key?: string;
1815
+ /**
1816
+ * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case
1817
+ * 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
1818
+ * length of 63 characters.
1819
+ */
1820
+ membershipId?: string;
1821
+ /** OAuth 2.0 token for the current user. */
1822
+ oauth_token?: string;
1823
+ /** Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects/*‍/locations/*`. */
1824
+ parent: string;
1825
+ /** Returns response with indentations and line breaks. */
1826
+ prettyPrint?: boolean;
1827
+ /** 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. */
1828
+ quotaUser?: string;
1829
+ /**
1830
+ * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
1831
+ * been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the
1832
+ * request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
1833
+ * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
1834
+ * supported (00000000-0000-0000-0000-000000000000).
1835
+ */
1836
+ requestId?: string;
1837
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1838
+ upload_protocol?: string;
1839
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1840
+ uploadType?: string;
1841
+ },
1842
+ body: Membership): Request<Operation>;
1843
+ /**
1844
+ * Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at
1845
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
1846
+ */
1847
+ delete(request?: {
1848
+ /** V1 error format. */
1849
+ "$.xgafv"?: string;
1850
+ /** OAuth access token. */
1851
+ access_token?: string;
1852
+ /** Data format for response. */
1853
+ alt?: string;
1854
+ /** JSONP */
1855
+ callback?: string;
1856
+ /** Selector specifying which fields to include in a partial response. */
1857
+ fields?: string;
1858
+ /** 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. */
1859
+ key?: string;
1860
+ /** Required. The Membership resource name in the format `projects/*‍/locations/*‍/memberships/*`. */
1861
+ name: string;
1862
+ /** OAuth 2.0 token for the current user. */
1863
+ oauth_token?: string;
1864
+ /** Returns response with indentations and line breaks. */
1865
+ prettyPrint?: boolean;
1866
+ /** 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. */
1867
+ quotaUser?: string;
1868
+ /**
1869
+ * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
1870
+ * been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the
1871
+ * request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
1872
+ * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
1873
+ * supported (00000000-0000-0000-0000-000000000000).
1874
+ */
1875
+ requestId?: string;
1876
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1877
+ upload_protocol?: string;
1878
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1879
+ uploadType?: string;
1880
+ }): Request<Operation>;
1881
+ /**
1882
+ * Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method
1883
+ * directly.
1884
+ */
1885
+ generateConnectManifest(request?: {
1886
+ /** V1 error format. */
1887
+ "$.xgafv"?: string;
1888
+ /** OAuth access token. */
1889
+ access_token?: string;
1890
+ /** Data format for response. */
1891
+ alt?: string;
1892
+ /** JSONP */
1893
+ callback?: string;
1894
+ /** Selector specifying which fields to include in a partial response. */
1895
+ fields?: string;
1896
+ /** Optional. The image pull secret content for the registry, if not public. */
1897
+ imagePullSecretContent?: string;
1898
+ /** Optional. If true, generate the resources for upgrade only. Some resources generated only for installation (e.g. secrets) will be excluded. */
1899
+ isUpgrade?: boolean;
1900
+ /** 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. */
1901
+ key?: string;
1902
+ /** Required. The Membership resource name the Agent will associate with, in the format `projects/*‍/locations/*‍/memberships/*`. */
1903
+ name: string;
1904
+ /**
1905
+ * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`. The Connect Agent is authorized automatically when run in the default namespace. Otherwise,
1906
+ * explicit authorization must be granted with an additional IAM binding.
1907
+ */
1908
+ namespace?: string;
1909
+ /** OAuth 2.0 token for the current user. */
1910
+ oauth_token?: string;
1911
+ /** Returns response with indentations and line breaks. */
1912
+ prettyPrint?: boolean;
1913
+ /**
1914
+ * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com requires the use of a proxy. Format must be in the form `http(s)://{proxy_address}`,
1915
+ * depending on the HTTP/HTTPS protocol supported by the proxy. This will direct the connect agent's outbound traffic through a HTTP(S) proxy.
1916
+ */
1917
+ proxy?: string;
1918
+ /** 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. */
1919
+ quotaUser?: string;
1920
+ /** Optional. The registry to fetch the connect agent image from. Defaults to gcr.io/gkeconnect. */
1921
+ registry?: string;
1922
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1923
+ upload_protocol?: string;
1924
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1925
+ uploadType?: string;
1926
+ /** Optional. The Connect agent version to use. Defaults to the most current version. */
1927
+ version?: string;
1928
+ }): Request<GenerateConnectManifestResponse>;
1929
+ /** Gets the details of a Membership. */
1930
+ get(request?: {
1931
+ /** V1 error format. */
1932
+ "$.xgafv"?: string;
1933
+ /** OAuth access token. */
1934
+ access_token?: string;
1935
+ /** Data format for response. */
1936
+ alt?: string;
1937
+ /** JSONP */
1938
+ callback?: string;
1939
+ /** Selector specifying which fields to include in a partial response. */
1940
+ fields?: string;
1941
+ /** 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. */
1942
+ key?: string;
1943
+ /** Required. The Membership resource name in the format `projects/*‍/locations/*‍/memberships/*`. */
1944
+ name: string;
1945
+ /** OAuth 2.0 token for the current user. */
1946
+ oauth_token?: string;
1947
+ /** Returns response with indentations and line breaks. */
1948
+ prettyPrint?: boolean;
1949
+ /** 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. */
1950
+ quotaUser?: string;
1951
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1952
+ upload_protocol?: string;
1953
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1954
+ uploadType?: string;
1955
+ }): Request<Membership>;
1956
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1957
+ getIamPolicy(request?: {
1958
+ /** V1 error format. */
1959
+ "$.xgafv"?: string;
1960
+ /** OAuth access token. */
1961
+ access_token?: string;
1962
+ /** Data format for response. */
1963
+ alt?: string;
1964
+ /** JSONP */
1965
+ callback?: string;
1966
+ /** Selector specifying which fields to include in a partial response. */
1967
+ fields?: string;
1968
+ /** 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. */
1969
+ key?: string;
1970
+ /** OAuth 2.0 token for the current user. */
1971
+ oauth_token?: string;
1972
+ /**
1973
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
1974
+ * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
1975
+ * in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
1976
+ * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
1977
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1978
+ */
1979
+ "options.requestedPolicyVersion"?: number;
1980
+ /** Returns response with indentations and line breaks. */
1981
+ prettyPrint?: boolean;
1982
+ /** 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. */
1983
+ quotaUser?: string;
1984
+ /**
1985
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1986
+ * field.
1987
+ */
1988
+ resource: string;
1989
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1990
+ upload_protocol?: string;
1991
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1992
+ uploadType?: string;
1993
+ }): Request<Policy>;
1994
+ /** Lists Memberships in a given project and location. */
1995
+ list(request?: {
1996
+ /** V1 error format. */
1997
+ "$.xgafv"?: string;
1998
+ /** OAuth access token. */
1999
+ access_token?: string;
2000
+ /** Data format for response. */
2001
+ alt?: string;
2002
+ /** JSONP */
2003
+ callback?: string;
2004
+ /** Selector specifying which fields to include in a partial response. */
2005
+ fields?: string;
2006
+ /**
2007
+ * Optional. Lists Memberships that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples: - Name is `bar` in project `foo-proj` and
2008
+ * location `global`: name = "projects/foo-proj/locations/global/membership/bar" - Memberships that have a label called `foo`: labels.foo:* - Memberships that have a label called
2009
+ * `foo` whose value is `bar`: labels.foo = bar - Memberships in the CREATING state: state = CREATING
2010
+ */
2011
+ filter?: string;
2012
+ /** 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. */
2013
+ key?: string;
2014
+ /** OAuth 2.0 token for the current user. */
2015
+ oauth_token?: string;
2016
+ /** Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering. */
2017
+ orderBy?: string;
2018
+ /** 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. */
2019
+ pageSize?: number;
2020
+ /** Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources. */
2021
+ pageToken?: string;
2022
+ /** Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*‍/locations/*`. */
2023
+ parent: string;
2024
+ /** Returns response with indentations and line breaks. */
2025
+ prettyPrint?: boolean;
2026
+ /** 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. */
2027
+ quotaUser?: string;
2028
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2029
+ upload_protocol?: string;
2030
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2031
+ uploadType?: string;
2032
+ }): Request<ListMembershipsResponse>;
2033
+ /** Lists Memberships of admin clusters in a given project and location. **This method is only used internally**. */
2034
+ listAdmin(request?: {
2035
+ /** V1 error format. */
2036
+ "$.xgafv"?: string;
2037
+ /** OAuth access token. */
2038
+ access_token?: string;
2039
+ /** Data format for response. */
2040
+ alt?: string;
2041
+ /** JSONP */
2042
+ callback?: string;
2043
+ /** Selector specifying which fields to include in a partial response. */
2044
+ fields?: string;
2045
+ /** Optional. Lists Memberships of admin clusters that match the filter expression. */
2046
+ filter?: string;
2047
+ /** 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. */
2048
+ key?: string;
2049
+ /** OAuth 2.0 token for the current user. */
2050
+ oauth_token?: string;
2051
+ /** Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering. */
2052
+ orderBy?: string;
2053
+ /** 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. */
2054
+ pageSize?: number;
2055
+ /** Optional. Token returned by previous call to `ListAdminClusterMemberships` which specifies the position in the list from where to continue listing the resources. */
2056
+ pageToken?: string;
2057
+ /** Required. The parent (project and location) where the Memberships of admin cluster will be listed. Specified in the format `projects/*‍/locations/*`. */
2058
+ parent: string;
2059
+ /** Returns response with indentations and line breaks. */
2060
+ prettyPrint?: boolean;
2061
+ /** 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. */
2062
+ quotaUser?: string;
2063
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2064
+ upload_protocol?: string;
2065
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2066
+ uploadType?: string;
2067
+ }): Request<ListAdminClusterMembershipsResponse>;
2068
+ /** Updates an existing Membership. */
2069
+ patch(request: {
2070
+ /** V1 error format. */
2071
+ "$.xgafv"?: string;
2072
+ /** OAuth access token. */
2073
+ access_token?: string;
2074
+ /** Data format for response. */
2075
+ alt?: string;
2076
+ /** JSONP */
2077
+ callback?: string;
2078
+ /** Selector specifying which fields to include in a partial response. */
2079
+ fields?: string;
2080
+ /** 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. */
2081
+ key?: string;
2082
+ /** Required. The Membership resource name in the format `projects/*‍/locations/*‍/memberships/*`. */
2083
+ name: string;
2084
+ /** OAuth 2.0 token for the current user. */
2085
+ oauth_token?: string;
2086
+ /** Returns response with indentations and line breaks. */
2087
+ prettyPrint?: boolean;
2088
+ /** 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. */
2089
+ quotaUser?: string;
2090
+ /**
2091
+ * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
2092
+ * been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the
2093
+ * request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
2094
+ * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
2095
+ * supported (00000000-0000-0000-0000-000000000000).
2096
+ */
2097
+ requestId?: string;
2098
+ /** Required. Mask of fields to update. */
2099
+ updateMask?: string;
2100
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2101
+ upload_protocol?: string;
2102
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2103
+ uploadType?: string;
2104
+ /** Request body */
2105
+ resource: Membership;
2106
+ }): Request<Operation>;
2107
+ patch(request: {
2108
+ /** V1 error format. */
2109
+ "$.xgafv"?: string;
2110
+ /** OAuth access token. */
2111
+ access_token?: string;
2112
+ /** Data format for response. */
2113
+ alt?: string;
2114
+ /** JSONP */
2115
+ callback?: string;
2116
+ /** Selector specifying which fields to include in a partial response. */
2117
+ fields?: string;
2118
+ /** 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. */
2119
+ key?: string;
2120
+ /** Required. The Membership resource name in the format `projects/*‍/locations/*‍/memberships/*`. */
2121
+ name: string;
2122
+ /** OAuth 2.0 token for the current user. */
2123
+ oauth_token?: string;
2124
+ /** Returns response with indentations and line breaks. */
2125
+ prettyPrint?: boolean;
2126
+ /** 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. */
2127
+ quotaUser?: string;
2128
+ /**
2129
+ * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
2130
+ * been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the
2131
+ * request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
2132
+ * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
2133
+ * supported (00000000-0000-0000-0000-000000000000).
2134
+ */
2135
+ requestId?: string;
2136
+ /** Required. Mask of fields to update. */
2137
+ updateMask?: string;
2138
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2139
+ upload_protocol?: string;
2140
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2141
+ uploadType?: string;
2142
+ },
2143
+ body: Membership): Request<Operation>;
2144
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2145
+ setIamPolicy(request: {
2146
+ /** V1 error format. */
2147
+ "$.xgafv"?: string;
2148
+ /** OAuth access token. */
2149
+ access_token?: string;
2150
+ /** Data format for response. */
2151
+ alt?: string;
2152
+ /** JSONP */
2153
+ callback?: string;
2154
+ /** Selector specifying which fields to include in a partial response. */
2155
+ fields?: string;
2156
+ /** 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. */
2157
+ key?: string;
2158
+ /** OAuth 2.0 token for the current user. */
2159
+ oauth_token?: string;
2160
+ /** Returns response with indentations and line breaks. */
2161
+ prettyPrint?: boolean;
2162
+ /** 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. */
2163
+ quotaUser?: string;
2164
+ /**
2165
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
2166
+ * field.
2167
+ */
2168
+ resource: string;
2169
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2170
+ upload_protocol?: string;
2171
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2172
+ uploadType?: string;
2173
+ },
2174
+ body: SetIamPolicyRequest): Request<Policy>;
2175
+ /**
2176
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
2177
+ * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
2178
+ */
2179
+ testIamPermissions(request: {
2180
+ /** V1 error format. */
2181
+ "$.xgafv"?: string;
2182
+ /** OAuth access token. */
2183
+ access_token?: string;
2184
+ /** Data format for response. */
2185
+ alt?: string;
2186
+ /** JSONP */
2187
+ callback?: string;
2188
+ /** Selector specifying which fields to include in a partial response. */
2189
+ fields?: string;
2190
+ /** 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. */
2191
+ key?: string;
2192
+ /** OAuth 2.0 token for the current user. */
2193
+ oauth_token?: string;
2194
+ /** Returns response with indentations and line breaks. */
2195
+ prettyPrint?: boolean;
2196
+ /** 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. */
2197
+ quotaUser?: string;
2198
+ /**
2199
+ * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
2200
+ * this field.
2201
+ */
2202
+ resource: string;
2203
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2204
+ upload_protocol?: string;
2205
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2206
+ uploadType?: string;
2207
+ },
2208
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2209
+ }
2210
+ interface OperationsResource {
2211
+ /**
2212
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
2213
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
2214
+ * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
2215
+ * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
2216
+ */
2217
+ cancel(request: {
2218
+ /** V1 error format. */
2219
+ "$.xgafv"?: string;
2220
+ /** OAuth access token. */
2221
+ access_token?: string;
2222
+ /** Data format for response. */
2223
+ alt?: string;
2224
+ /** JSONP */
2225
+ callback?: string;
2226
+ /** Selector specifying which fields to include in a partial response. */
2227
+ fields?: string;
2228
+ /** 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. */
2229
+ key?: string;
2230
+ /** The name of the operation resource to be cancelled. */
2231
+ name: string;
2232
+ /** OAuth 2.0 token for the current user. */
2233
+ oauth_token?: string;
2234
+ /** Returns response with indentations and line breaks. */
2235
+ prettyPrint?: boolean;
2236
+ /** 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. */
2237
+ quotaUser?: string;
2238
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2239
+ upload_protocol?: string;
2240
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2241
+ uploadType?: string;
2242
+ /** Request body */
2243
+ resource: CancelOperationRequest;
2244
+ }): Request<{}>;
2245
+ cancel(request: {
2246
+ /** V1 error format. */
2247
+ "$.xgafv"?: string;
2248
+ /** OAuth access token. */
2249
+ access_token?: string;
2250
+ /** Data format for response. */
2251
+ alt?: string;
2252
+ /** JSONP */
2253
+ callback?: string;
2254
+ /** Selector specifying which fields to include in a partial response. */
2255
+ fields?: string;
2256
+ /** 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. */
2257
+ key?: string;
2258
+ /** The name of the operation resource to be cancelled. */
2259
+ name: string;
2260
+ /** OAuth 2.0 token for the current user. */
2261
+ oauth_token?: string;
2262
+ /** Returns response with indentations and line breaks. */
2263
+ prettyPrint?: boolean;
2264
+ /** 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. */
2265
+ quotaUser?: string;
2266
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2267
+ upload_protocol?: string;
2268
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2269
+ uploadType?: string;
2270
+ },
2271
+ body: CancelOperationRequest): Request<{}>;
2272
+ /**
2273
+ * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
2274
+ * support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2275
+ */
2276
+ delete(request?: {
2277
+ /** V1 error format. */
2278
+ "$.xgafv"?: string;
2279
+ /** OAuth access token. */
2280
+ access_token?: string;
2281
+ /** Data format for response. */
2282
+ alt?: string;
2283
+ /** JSONP */
2284
+ callback?: string;
2285
+ /** Selector specifying which fields to include in a partial response. */
2286
+ fields?: string;
2287
+ /** 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. */
2288
+ key?: string;
2289
+ /** The name of the operation resource to be deleted. */
2290
+ name: string;
2291
+ /** OAuth 2.0 token for the current user. */
2292
+ oauth_token?: string;
2293
+ /** Returns response with indentations and line breaks. */
2294
+ prettyPrint?: boolean;
2295
+ /** 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. */
2296
+ quotaUser?: string;
2297
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2298
+ upload_protocol?: string;
2299
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2300
+ uploadType?: string;
2301
+ }): Request<{}>;
2302
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2303
+ get(request?: {
2304
+ /** V1 error format. */
2305
+ "$.xgafv"?: string;
2306
+ /** OAuth access token. */
2307
+ access_token?: string;
2308
+ /** Data format for response. */
2309
+ alt?: string;
2310
+ /** JSONP */
2311
+ callback?: string;
2312
+ /** Selector specifying which fields to include in a partial response. */
2313
+ fields?: string;
2314
+ /** 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. */
2315
+ key?: string;
2316
+ /** The name of the operation resource. */
2317
+ name: string;
2318
+ /** OAuth 2.0 token for the current user. */
2319
+ oauth_token?: string;
2320
+ /** Returns response with indentations and line breaks. */
2321
+ prettyPrint?: boolean;
2322
+ /** 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. */
2323
+ quotaUser?: string;
2324
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2325
+ upload_protocol?: string;
2326
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2327
+ uploadType?: string;
2328
+ }): Request<Operation>;
2329
+ /**
2330
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
2331
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
2332
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
2333
+ * ensure the name binding is the parent resource, without the operations collection id.
2334
+ */
2335
+ list(request?: {
2336
+ /** V1 error format. */
2337
+ "$.xgafv"?: string;
2338
+ /** OAuth access token. */
2339
+ access_token?: string;
2340
+ /** Data format for response. */
2341
+ alt?: string;
2342
+ /** JSONP */
2343
+ callback?: string;
2344
+ /** Selector specifying which fields to include in a partial response. */
2345
+ fields?: string;
2346
+ /** The standard list filter. */
2347
+ filter?: string;
2348
+ /** 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. */
2349
+ key?: string;
2350
+ /** The name of the operation's parent resource. */
2351
+ name: string;
2352
+ /** OAuth 2.0 token for the current user. */
2353
+ oauth_token?: string;
2354
+ /** The standard list page size. */
2355
+ pageSize?: number;
2356
+ /** The standard list page token. */
2357
+ pageToken?: string;
2358
+ /** Returns response with indentations and line breaks. */
2359
+ prettyPrint?: boolean;
2360
+ /** 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. */
2361
+ quotaUser?: string;
2362
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2363
+ upload_protocol?: string;
2364
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2365
+ uploadType?: string;
2366
+ }): Request<ListOperationsResponse>;
2367
+ }
2368
+ interface LocationsResource {
2369
+ /** Gets information about a location. */
2370
+ get(request?: {
2371
+ /** V1 error format. */
2372
+ "$.xgafv"?: string;
2373
+ /** OAuth access token. */
2374
+ access_token?: string;
2375
+ /** Data format for response. */
2376
+ alt?: string;
2377
+ /** JSONP */
2378
+ callback?: string;
2379
+ /** Selector specifying which fields to include in a partial response. */
2380
+ fields?: string;
2381
+ /** 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. */
2382
+ key?: string;
2383
+ /** Resource name for the location. */
2384
+ name: string;
2385
+ /** OAuth 2.0 token for the current user. */
2386
+ oauth_token?: string;
2387
+ /** Returns response with indentations and line breaks. */
2388
+ prettyPrint?: boolean;
2389
+ /** 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. */
2390
+ quotaUser?: string;
2391
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2392
+ upload_protocol?: string;
2393
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2394
+ uploadType?: string;
2395
+ }): Request<Location>;
2396
+ /** Lists information about the supported locations for this service. */
2397
+ list(request?: {
2398
+ /** V1 error format. */
2399
+ "$.xgafv"?: string;
2400
+ /** OAuth access token. */
2401
+ access_token?: string;
2402
+ /** Data format for response. */
2403
+ alt?: string;
2404
+ /** JSONP */
2405
+ callback?: string;
2406
+ /** Selector specifying which fields to include in a partial response. */
2407
+ fields?: string;
2408
+ /**
2409
+ * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
2410
+ * [AIP-160](https://google.aip.dev/160).
2411
+ */
2412
+ filter?: string;
2413
+ /** 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. */
2414
+ key?: string;
2415
+ /** The resource that owns the locations collection, if applicable. */
2416
+ name: string;
2417
+ /** OAuth 2.0 token for the current user. */
2418
+ oauth_token?: string;
2419
+ /** The maximum number of results to return. If not set, the service selects a default. */
2420
+ pageSize?: number;
2421
+ /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
2422
+ pageToken?: string;
2423
+ /** Returns response with indentations and line breaks. */
2424
+ prettyPrint?: boolean;
2425
+ /** 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. */
2426
+ quotaUser?: string;
2427
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2428
+ upload_protocol?: string;
2429
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2430
+ uploadType?: string;
2431
+ }): Request<ListLocationsResponse>;
2432
+ features: FeaturesResource;
2433
+ fleets: FleetsResource;
2434
+ memberships: MembershipsResource;
2435
+ operations: OperationsResource;
2436
+ }
2437
+ interface ProjectsResource {
2438
+ locations: LocationsResource;
2439
+ }
2440
+
2441
+ const organizations: OrganizationsResource;
2442
+
2443
+ const projects: ProjectsResource;
2444
+ }
2445
+ }