@maxim_mazurok/gapi.client.privateca-v1 0.0.20220804

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,2858 @@
1
+ /* Type definitions for non-npm package Certificate Authority API v1 0.0 */
2
+ // Project: https://cloud.google.com/
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://privateca.googleapis.com/$discovery/rest?version=v1
13
+ // Revision: 20220804
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Certificate Authority API v1 */
19
+ function load(urlOrObject: "https://privateca.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "privateca", version: "v1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "privateca", version: "v1", callback: () => any): void;
24
+
25
+ namespace privateca {
26
+ interface AccessUrls {
27
+ /** The URL where this CertificateAuthority's CA certificate is published. This will only be set for CAs that have been activated. */
28
+ caCertificateAccessUrl?: string;
29
+ /** The URLs where this CertificateAuthority's CRLs are published. This will only be set for CAs that have been activated. */
30
+ crlAccessUrls?: string[];
31
+ }
32
+ interface ActivateCertificateAuthorityRequest {
33
+ /** Required. The signed CA certificate issued from FetchCertificateAuthorityCsrResponse.pem_csr. */
34
+ pemCaCertificate?: string;
35
+ /**
36
+ * Optional. An 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
37
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times
38
+ * 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 second
39
+ * 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
40
+ * (00000000-0000-0000-0000-000000000000).
41
+ */
42
+ requestId?: string;
43
+ /** Required. Must include information about the issuer of 'pem_ca_certificate', and any further issuers until the self-signed CA. */
44
+ subordinateConfig?: SubordinateConfig;
45
+ }
46
+ interface AllowedKeyType {
47
+ /** Represents an allowed Elliptic Curve key type. */
48
+ ellipticCurve?: EcKeyType;
49
+ /** Represents an allowed RSA key type. */
50
+ rsa?: RsaKeyType;
51
+ }
52
+ interface AuditConfig {
53
+ /** The configuration for logging of each type of permission. */
54
+ auditLogConfigs?: AuditLogConfig[];
55
+ /**
56
+ * 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
57
+ * services.
58
+ */
59
+ service?: string;
60
+ }
61
+ interface AuditLogConfig {
62
+ /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
63
+ exemptedMembers?: string[];
64
+ /** The log type that this config enables. */
65
+ logType?: string;
66
+ }
67
+ interface Binding {
68
+ /**
69
+ * 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`,
70
+ * 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
71
+ * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
72
+ */
73
+ condition?: Expr;
74
+ /**
75
+ * 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
76
+ * 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
77
+ * account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
78
+ * represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
79
+ * for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
80
+ * `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. *
81
+ * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
82
+ * `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. *
83
+ * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
84
+ * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
85
+ * 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
86
+ * 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
87
+ * the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
88
+ */
89
+ members?: string[];
90
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
91
+ role?: string;
92
+ }
93
+ // tslint:disable-next-line:no-empty-interface
94
+ interface CancelOperationRequest {
95
+ }
96
+ interface CaOptions {
97
+ /** Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this value is missing, the extension will be omitted from the CA certificate. */
98
+ isCa?: boolean;
99
+ /**
100
+ * Optional. Refers to the path length restriction X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value
101
+ * is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.
102
+ */
103
+ maxIssuerPathLength?: number;
104
+ }
105
+ interface CaPool {
106
+ /** Optional. The IssuancePolicy to control how Certificates will be issued from this CaPool. */
107
+ issuancePolicy?: IssuancePolicy;
108
+ /** Optional. Labels with user-defined metadata. */
109
+ labels?: { [P in string]: string };
110
+ /** Output only. The resource name for this CaPool in the format `projects/*‍/locations/*‍/caPools/*`. */
111
+ name?: string;
112
+ /** Optional. The PublishingOptions to follow when issuing Certificates from any CertificateAuthority in this CaPool. */
113
+ publishingOptions?: PublishingOptions;
114
+ /** Required. Immutable. The Tier of this CaPool. */
115
+ tier?: string;
116
+ }
117
+ interface CertChain {
118
+ /** The certificates that form the CA chain, from leaf to root order. */
119
+ certificates?: string[];
120
+ }
121
+ interface Certificate {
122
+ /** Output only. A structured description of the issued X.509 certificate. */
123
+ certificateDescription?: CertificateDescription;
124
+ /**
125
+ * Immutable. The resource name for a CertificateTemplate used to issue this certificate, in the format `projects/*‍/locations/*‍/certificateTemplates/*`. If this is specified, the
126
+ * caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the Certificate.
127
+ */
128
+ certificateTemplate?: string;
129
+ /** Immutable. A description of the certificate and key that does not require X.509 or ASN.1. */
130
+ config?: CertificateConfig;
131
+ /** Output only. The time at which this Certificate was created. */
132
+ createTime?: string;
133
+ /** Output only. The resource name of the issuing CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
134
+ issuerCertificateAuthority?: string;
135
+ /** Optional. Labels with user-defined metadata. */
136
+ labels?: { [P in string]: string };
137
+ /**
138
+ * Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may
139
+ * be truncated if it would extend past the life of any certificate authority in the issuing chain.
140
+ */
141
+ lifetime?: string;
142
+ /** Output only. The resource name for this Certificate in the format `projects/*‍/locations/*‍/caPools/*‍/certificates/*`. */
143
+ name?: string;
144
+ /** Output only. The pem-encoded, signed X.509 certificate. */
145
+ pemCertificate?: string;
146
+ /** Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246. */
147
+ pemCertificateChain?: string[];
148
+ /** Immutable. A pem-encoded X.509 certificate signing request (CSR). */
149
+ pemCsr?: string;
150
+ /** Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. */
151
+ revocationDetails?: RevocationDetails;
152
+ /** Immutable. Specifies how the Certificate's identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used. */
153
+ subjectMode?: string;
154
+ /** Output only. The time at which this Certificate was updated. */
155
+ updateTime?: string;
156
+ }
157
+ interface CertificateAuthority {
158
+ /** Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs. */
159
+ accessUrls?: AccessUrls;
160
+ /** Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root. */
161
+ caCertificateDescriptions?: CertificateDescription[];
162
+ /** Required. Immutable. The config used to create a self-signed X.509 certificate or CSR. */
163
+ config?: CertificateConfig;
164
+ /** Output only. The time at which this CertificateAuthority was created. */
165
+ createTime?: string;
166
+ /** Output only. The time at which this CertificateAuthority was soft deleted, if it is in the DELETED state. */
167
+ deleteTime?: string;
168
+ /** Output only. The time at which this CertificateAuthority will be permanently purged, if it is in the DELETED state. */
169
+ expireTime?: string;
170
+ /**
171
+ * Immutable. The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any
172
+ * prefixes (such as `gs://`) or suffixes (such as `.googleapis.com`). For example, to use a bucket named `my-bucket`, you would simply specify `my-bucket`. If not specified, a managed
173
+ * bucket will be created.
174
+ */
175
+ gcsBucket?: string;
176
+ /**
177
+ * Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign
178
+ * the self-signed CA certificate. Otherwise, it is used to sign a CSR.
179
+ */
180
+ keySpec?: KeyVersionSpec;
181
+ /** Optional. Labels with user-defined metadata. */
182
+ labels?: { [P in string]: string };
183
+ /** Required. Immutable. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. */
184
+ lifetime?: string;
185
+ /** Output only. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
186
+ name?: string;
187
+ /**
188
+ * Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element
189
+ * (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.
190
+ */
191
+ pemCaCertificates?: string[];
192
+ /** Output only. The State for this CertificateAuthority. */
193
+ state?: string;
194
+ /**
195
+ * Optional. If this is a subordinate CertificateAuthority, this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this
196
+ * CertificateAuthority must continue to validate.
197
+ */
198
+ subordinateConfig?: SubordinateConfig;
199
+ /** Output only. The CaPool.Tier of the CaPool that includes this CertificateAuthority. */
200
+ tier?: string;
201
+ /** Required. Immutable. The Type of this CertificateAuthority. */
202
+ type?: string;
203
+ /** Output only. The time at which this CertificateAuthority was last updated. */
204
+ updateTime?: string;
205
+ }
206
+ interface CertificateConfig {
207
+ /**
208
+ * Optional. The public key that corresponds to this config. This is, for example, used when issuing Certificates, but not when creating a self-signed CertificateAuthority or
209
+ * CertificateAuthority CSR.
210
+ */
211
+ publicKey?: PublicKey;
212
+ /** Required. Specifies some of the values in a certificate that are related to the subject. */
213
+ subjectConfig?: SubjectConfig;
214
+ /** Required. Describes how some of the technical X.509 fields in a certificate should be populated. */
215
+ x509Config?: X509Parameters;
216
+ }
217
+ interface CertificateDescription {
218
+ /** Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. */
219
+ aiaIssuingCertificateUrls?: string[];
220
+ /** Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 */
221
+ authorityKeyId?: KeyId;
222
+ /** The hash of the x.509 certificate. */
223
+ certFingerprint?: CertificateFingerprint;
224
+ /** Describes a list of locations to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13 */
225
+ crlDistributionPoints?: string[];
226
+ /** The public key that corresponds to an issued certificate. */
227
+ publicKey?: PublicKey;
228
+ /** Describes some of the values in a certificate that are related to the subject and lifetime. */
229
+ subjectDescription?: SubjectDescription;
230
+ /** Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. */
231
+ subjectKeyId?: KeyId;
232
+ /** Describes some of the technical X.509 fields in a certificate. */
233
+ x509Description?: X509Parameters;
234
+ }
235
+ interface CertificateExtensionConstraints {
236
+ /** Optional. A set of ObjectIds identifying custom X.509 extensions. Will be combined with known_extensions to determine the full set of X.509 extensions. */
237
+ additionalExtensions?: ObjectId[];
238
+ /** Optional. A set of named X.509 extensions. Will be combined with additional_extensions to determine the full set of X.509 extensions. */
239
+ knownExtensions?: string[];
240
+ }
241
+ interface CertificateFingerprint {
242
+ /** The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. */
243
+ sha256Hash?: string;
244
+ }
245
+ interface CertificateIdentityConstraints {
246
+ /**
247
+ * Required. If this is true, the SubjectAltNames extension may be copied from a certificate request into the signed certificate. Otherwise, the requested SubjectAltNames will be
248
+ * discarded.
249
+ */
250
+ allowSubjectAltNamesPassthrough?: boolean;
251
+ /** Required. If this is true, the Subject field may be copied from a certificate request into the signed certificate. Otherwise, the requested Subject will be discarded. */
252
+ allowSubjectPassthrough?: boolean;
253
+ /**
254
+ * Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and
255
+ * some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
256
+ */
257
+ celExpression?: Expr;
258
+ }
259
+ interface CertificateRevocationList {
260
+ /** Output only. The location where 'pem_crl' can be accessed. */
261
+ accessUrl?: string;
262
+ /** Output only. The time at which this CertificateRevocationList was created. */
263
+ createTime?: string;
264
+ /** Optional. Labels with user-defined metadata. */
265
+ labels?: { [P in string]: string };
266
+ /** Output only. The resource name for this CertificateRevocationList in the format `projects/*‍/locations/*‍/caPools/*certificateAuthorities/*‍/ certificateRevocationLists/*`. */
267
+ name?: string;
268
+ /** Output only. The PEM-encoded X.509 CRL. */
269
+ pemCrl?: string;
270
+ /** Output only. The revision ID of this CertificateRevocationList. A new revision is committed whenever a new CRL is published. The format is an 8-character hexadecimal string. */
271
+ revisionId?: string;
272
+ /** Output only. The revoked serial numbers that appear in pem_crl. */
273
+ revokedCertificates?: RevokedCertificate[];
274
+ /** Output only. The CRL sequence number that appears in pem_crl. */
275
+ sequenceNumber?: string;
276
+ /** Output only. The State for this CertificateRevocationList. */
277
+ state?: string;
278
+ /** Output only. The time at which this CertificateRevocationList was updated. */
279
+ updateTime?: string;
280
+ }
281
+ interface CertificateTemplate {
282
+ /** Output only. The time at which this CertificateTemplate was created. */
283
+ createTime?: string;
284
+ /** Optional. A human-readable description of scenarios this template is intended for. */
285
+ description?: string;
286
+ /**
287
+ * Optional. Describes constraints on identities that may be appear in Certificates issued using this template. If this is omitted, then this template will not add restrictions on a
288
+ * certificate's identity.
289
+ */
290
+ identityConstraints?: CertificateIdentityConstraints;
291
+ /** Optional. Labels with user-defined metadata. */
292
+ labels?: { [P in string]: string };
293
+ /** Output only. The resource name for this CertificateTemplate in the format `projects/*‍/locations/*‍/certificateTemplates/*`. */
294
+ name?: string;
295
+ /**
296
+ * Optional. Describes the set of X.509 extensions that may appear in a Certificate issued using this CertificateTemplate. If a certificate request sets extensions that don't appear in
297
+ * the passthrough_extensions, those extensions will be dropped. If the issuing CaPool's IssuancePolicy defines baseline_values that don't appear here, the certificate issuance request
298
+ * will fail. If this is omitted, then this template will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this
299
+ * CertificateTemplate's predefined_values.
300
+ */
301
+ passthroughExtensions?: CertificateExtensionConstraints;
302
+ /**
303
+ * Optional. A set of X.509 values that will be applied to all issued certificates that use this template. If the certificate request includes conflicting values for the same
304
+ * properties, they will be overwritten by the values defined here. If the issuing CaPool's IssuancePolicy defines conflicting baseline_values for the same properties, the certificate
305
+ * issuance request will fail.
306
+ */
307
+ predefinedValues?: X509Parameters;
308
+ /** Output only. The time at which this CertificateTemplate was updated. */
309
+ updateTime?: string;
310
+ }
311
+ interface DisableCertificateAuthorityRequest {
312
+ /**
313
+ * Optional. An 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
314
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times
315
+ * 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 second
316
+ * 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
317
+ * (00000000-0000-0000-0000-000000000000).
318
+ */
319
+ requestId?: string;
320
+ }
321
+ interface EcKeyType {
322
+ /** Optional. A signature algorithm that must be used. If this is omitted, any EC-based signature algorithm will be allowed. */
323
+ signatureAlgorithm?: string;
324
+ }
325
+ // tslint:disable-next-line:no-empty-interface
326
+ interface Empty {
327
+ }
328
+ interface EnableCertificateAuthorityRequest {
329
+ /**
330
+ * Optional. An 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
331
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times
332
+ * 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 second
333
+ * 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
334
+ * (00000000-0000-0000-0000-000000000000).
335
+ */
336
+ requestId?: string;
337
+ }
338
+ interface Expr {
339
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
340
+ description?: string;
341
+ /** Textual representation of an expression in Common Expression Language syntax. */
342
+ expression?: string;
343
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
344
+ location?: string;
345
+ /** 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. */
346
+ title?: string;
347
+ }
348
+ interface ExtendedKeyUsageOptions {
349
+ /** Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client authentication", though regularly used for non-WWW TLS. */
350
+ clientAuth?: boolean;
351
+ /** Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". */
352
+ codeSigning?: boolean;
353
+ /** Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". */
354
+ emailProtection?: boolean;
355
+ /** Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". */
356
+ ocspSigning?: boolean;
357
+ /** Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server authentication", though regularly used for non-WWW TLS. */
358
+ serverAuth?: boolean;
359
+ /** Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". */
360
+ timeStamping?: boolean;
361
+ }
362
+ interface FetchCaCertsRequest {
363
+ /**
364
+ * Optional. An 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
365
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times
366
+ * 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 second
367
+ * 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
368
+ * (00000000-0000-0000-0000-000000000000).
369
+ */
370
+ requestId?: string;
371
+ }
372
+ interface FetchCaCertsResponse {
373
+ /** The PEM encoded CA certificate chains of all ACTIVE CertificateAuthority resources in this CaPool. */
374
+ caCerts?: CertChain[];
375
+ }
376
+ interface FetchCertificateAuthorityCsrResponse {
377
+ /** Output only. The PEM-encoded signed certificate signing request (CSR). */
378
+ pemCsr?: string;
379
+ }
380
+ interface IssuanceModes {
381
+ /** Optional. When true, allows callers to create Certificates by specifying a CertificateConfig. */
382
+ allowConfigBasedIssuance?: boolean;
383
+ /** Optional. When true, allows callers to create Certificates by specifying a CSR. */
384
+ allowCsrBasedIssuance?: boolean;
385
+ }
386
+ interface IssuancePolicy {
387
+ /** Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates. */
388
+ allowedIssuanceModes?: IssuanceModes;
389
+ /** Optional. If any AllowedKeyType is specified, then the certificate request's public key must match one of the key types listed here. Otherwise, any key may be used. */
390
+ allowedKeyTypes?: AllowedKeyType[];
391
+ /**
392
+ * Optional. A set of X.509 values that will be applied to all certificates issued through this CaPool. If a certificate request includes conflicting values for the same properties,
393
+ * they will be overwritten by the values defined here. If a certificate request uses a CertificateTemplate that defines conflicting predefined_values for the same properties, the
394
+ * certificate issuance request will fail.
395
+ */
396
+ baselineValues?: X509Parameters;
397
+ /**
398
+ * Optional. Describes constraints on identities that may appear in Certificates issued through this CaPool. If this is omitted, then this CaPool will not add restrictions on a
399
+ * certificate's identity.
400
+ */
401
+ identityConstraints?: CertificateIdentityConstraints;
402
+ /**
403
+ * Optional. The maximum lifetime allowed for issued Certificates. Note that if the issuing CertificateAuthority expires before a Certificate's requested maximum_lifetime, the
404
+ * effective lifetime will be explicitly truncated to match it.
405
+ */
406
+ maximumLifetime?: string;
407
+ /**
408
+ * Optional. Describes the set of X.509 extensions that may appear in a Certificate issued through this CaPool. If a certificate request sets extensions that don't appear in the
409
+ * passthrough_extensions, those extensions will be dropped. If a certificate request uses a CertificateTemplate with predefined_values that don't appear here, the certificate issuance
410
+ * request will fail. If this is omitted, then this CaPool will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this
411
+ * CaPool's baseline_values.
412
+ */
413
+ passthroughExtensions?: CertificateExtensionConstraints;
414
+ }
415
+ interface KeyId {
416
+ /** Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. */
417
+ keyId?: string;
418
+ }
419
+ interface KeyUsage {
420
+ /** Describes high-level ways in which a key may be used. */
421
+ baseKeyUsage?: KeyUsageOptions;
422
+ /** Detailed scenarios in which a key may be used. */
423
+ extendedKeyUsage?: ExtendedKeyUsageOptions;
424
+ /** Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. */
425
+ unknownExtendedKeyUsages?: ObjectId[];
426
+ }
427
+ interface KeyUsageOptions {
428
+ /** The key may be used to sign certificates. */
429
+ certSign?: boolean;
430
+ /** The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". */
431
+ contentCommitment?: boolean;
432
+ /** The key may be used sign certificate revocation lists. */
433
+ crlSign?: boolean;
434
+ /** The key may be used to encipher data. */
435
+ dataEncipherment?: boolean;
436
+ /** The key may be used to decipher only. */
437
+ decipherOnly?: boolean;
438
+ /** The key may be used for digital signatures. */
439
+ digitalSignature?: boolean;
440
+ /** The key may be used to encipher only. */
441
+ encipherOnly?: boolean;
442
+ /** The key may be used in a key agreement protocol. */
443
+ keyAgreement?: boolean;
444
+ /** The key may be used to encipher other keys. */
445
+ keyEncipherment?: boolean;
446
+ }
447
+ interface KeyVersionSpec {
448
+ /** The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as `HSM`. */
449
+ algorithm?: string;
450
+ /**
451
+ * The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/*‍/locations/*‍/keyRings/*‍/cryptoKeys/*‍/cryptoKeyVersions/*`. This option enables full
452
+ * flexibility in the key's capabilities and properties.
453
+ */
454
+ cloudKmsKeyVersion?: string;
455
+ }
456
+ interface ListCaPoolsResponse {
457
+ /** The list of CaPools. */
458
+ caPools?: CaPool[];
459
+ /** A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of results. */
460
+ nextPageToken?: string;
461
+ /** A list of locations (e.g. "us-west1") that could not be reached. */
462
+ unreachable?: string[];
463
+ }
464
+ interface ListCertificateAuthoritiesResponse {
465
+ /** The list of CertificateAuthorities. */
466
+ certificateAuthorities?: CertificateAuthority[];
467
+ /** A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of results. */
468
+ nextPageToken?: string;
469
+ /** A list of locations (e.g. "us-west1") that could not be reached. */
470
+ unreachable?: string[];
471
+ }
472
+ interface ListCertificateRevocationListsResponse {
473
+ /** The list of CertificateRevocationLists. */
474
+ certificateRevocationLists?: CertificateRevocationList[];
475
+ /** A token to retrieve next page of results. Pass this value in ListCertificateRevocationListsRequest.next_page_token to retrieve the next page of results. */
476
+ nextPageToken?: string;
477
+ /** A list of locations (e.g. "us-west1") that could not be reached. */
478
+ unreachable?: string[];
479
+ }
480
+ interface ListCertificatesResponse {
481
+ /** The list of Certificates. */
482
+ certificates?: Certificate[];
483
+ /** A token to retrieve next page of results. Pass this value in ListCertificatesRequest.next_page_token to retrieve the next page of results. */
484
+ nextPageToken?: string;
485
+ /** A list of locations (e.g. "us-west1") that could not be reached. */
486
+ unreachable?: string[];
487
+ }
488
+ interface ListCertificateTemplatesResponse {
489
+ /** The list of CertificateTemplates. */
490
+ certificateTemplates?: CertificateTemplate[];
491
+ /** A token to retrieve next page of results. Pass this value in ListCertificateTemplatesRequest.next_page_token to retrieve the next page of results. */
492
+ nextPageToken?: string;
493
+ /** A list of locations (e.g. "us-west1") that could not be reached. */
494
+ unreachable?: string[];
495
+ }
496
+ interface ListLocationsResponse {
497
+ /** A list of locations that matches the specified filter in the request. */
498
+ locations?: Location[];
499
+ /** The standard List next-page token. */
500
+ nextPageToken?: string;
501
+ }
502
+ interface ListOperationsResponse {
503
+ /** The standard List next-page token. */
504
+ nextPageToken?: string;
505
+ /** A list of operations that matches the specified filter in the request. */
506
+ operations?: Operation[];
507
+ }
508
+ interface Location {
509
+ /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
510
+ displayName?: string;
511
+ /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
512
+ labels?: { [P in string]: string };
513
+ /** The canonical id for this location. For example: `"us-east1"`. */
514
+ locationId?: string;
515
+ /** Service-specific metadata. For example the available capacity at the given location. */
516
+ metadata?: { [P in string]: any };
517
+ /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
518
+ name?: string;
519
+ }
520
+ interface ObjectId {
521
+ /** Required. The parts of an OID path. The most significant parts of the path come first. */
522
+ objectIdPath?: number[];
523
+ }
524
+ interface Operation {
525
+ /** 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. */
526
+ done?: boolean;
527
+ /** The error result of the operation in case of failure or cancellation. */
528
+ error?: Status;
529
+ /**
530
+ * 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
531
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
532
+ */
533
+ metadata?: { [P in string]: any };
534
+ /**
535
+ * 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
536
+ * with `operations/{unique_id}`.
537
+ */
538
+ name?: string;
539
+ /**
540
+ * 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
541
+ * 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
542
+ * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
543
+ */
544
+ response?: { [P in string]: any };
545
+ }
546
+ interface OperationMetadata {
547
+ /** Output only. API version used to start the operation. */
548
+ apiVersion?: string;
549
+ /** Output only. The time the operation was created. */
550
+ createTime?: string;
551
+ /** Output only. The time the operation finished running. */
552
+ endTime?: string;
553
+ /**
554
+ * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a
555
+ * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
556
+ */
557
+ requestedCancellation?: boolean;
558
+ /** Output only. Human-readable status of the operation, if any. */
559
+ statusMessage?: string;
560
+ /** Output only. Server-defined resource path for the target of the operation. */
561
+ target?: string;
562
+ /** Output only. Name of the verb executed by the operation. */
563
+ verb?: string;
564
+ }
565
+ interface Policy {
566
+ /** Specifies cloud audit logging configuration for this policy. */
567
+ auditConfigs?: AuditConfig[];
568
+ /**
569
+ * 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`
570
+ * 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
571
+ * 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
572
+ * 1,450 principals to the `bindings` in the `Policy`.
573
+ */
574
+ bindings?: Binding[];
575
+ /**
576
+ * `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
577
+ * 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
578
+ * 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
579
+ * 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`
580
+ * policy, and all of the conditions in the version `3` policy are lost.
581
+ */
582
+ etag?: string;
583
+ /**
584
+ * 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
585
+ * 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
586
+ * 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
587
+ * 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`
588
+ * 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
589
+ * 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).
590
+ */
591
+ version?: number;
592
+ }
593
+ interface PublicKey {
594
+ /** Required. The format of the public key. */
595
+ format?: string;
596
+ /** Required. A public key. The padding and encoding must match with the `KeyFormat` value specified for the `format` field. */
597
+ key?: string;
598
+ }
599
+ interface PublishingOptions {
600
+ /**
601
+ * Optional. When true, publishes each CertificateAuthority's CA certificate and includes its URL in the "Authority Information Access" X.509 extension in all issued Certificates. If
602
+ * this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.
603
+ */
604
+ publishCaCert?: boolean;
605
+ /**
606
+ * Optional. When true, publishes each CertificateAuthority's CRL and includes its URL in the "CRL Distribution Points" X.509 extension in all issued Certificates. If this is false,
607
+ * CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild
608
+ * daily. CRLs are also rebuilt shortly after a certificate is revoked.
609
+ */
610
+ publishCrl?: boolean;
611
+ }
612
+ interface ReconciliationOperationMetadata {
613
+ /** DEPRECATED. Use exclusive_action instead. */
614
+ deleteResource?: boolean;
615
+ exclusiveAction?: string;
616
+ }
617
+ interface RevocationDetails {
618
+ /** Indicates why a Certificate was revoked. */
619
+ revocationState?: string;
620
+ /** The time at which this Certificate was revoked. */
621
+ revocationTime?: string;
622
+ }
623
+ interface RevokeCertificateRequest {
624
+ /** Required. The RevocationReason for revoking this certificate. */
625
+ reason?: string;
626
+ /**
627
+ * Optional. An 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
628
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times
629
+ * 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 second
630
+ * 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
631
+ * (00000000-0000-0000-0000-000000000000).
632
+ */
633
+ requestId?: string;
634
+ }
635
+ interface RevokedCertificate {
636
+ /** The resource name for the Certificate in the format `projects/*‍/locations/*‍/caPools/*‍/certificates/*`. */
637
+ certificate?: string;
638
+ /** The serial number of the Certificate. */
639
+ hexSerialNumber?: string;
640
+ /** The reason the Certificate was revoked. */
641
+ revocationReason?: string;
642
+ }
643
+ interface RsaKeyType {
644
+ /**
645
+ * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service will not enforce an explicit upper bound on RSA modulus
646
+ * sizes.
647
+ */
648
+ maxModulusSize?: string;
649
+ /** Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service-level min RSA modulus size will continue to apply. */
650
+ minModulusSize?: string;
651
+ }
652
+ interface SetIamPolicyRequest {
653
+ /**
654
+ * 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
655
+ * services (such as Projects) might reject them.
656
+ */
657
+ policy?: Policy;
658
+ /**
659
+ * 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:
660
+ * `paths: "bindings, etag"`
661
+ */
662
+ updateMask?: string;
663
+ }
664
+ interface Status {
665
+ /** The status code, which should be an enum value of google.rpc.Code. */
666
+ code?: number;
667
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
668
+ details?: Array<{ [P in string]: any }>;
669
+ /**
670
+ * 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
671
+ * client.
672
+ */
673
+ message?: string;
674
+ }
675
+ interface Subject {
676
+ /** The "common name" of the subject. */
677
+ commonName?: string;
678
+ /** The country code of the subject. */
679
+ countryCode?: string;
680
+ /** The locality or city of the subject. */
681
+ locality?: string;
682
+ /** The organization of the subject. */
683
+ organization?: string;
684
+ /** The organizational_unit of the subject. */
685
+ organizationalUnit?: string;
686
+ /** The postal code of the subject. */
687
+ postalCode?: string;
688
+ /** The province, territory, or regional state of the subject. */
689
+ province?: string;
690
+ /** The street address of the subject. */
691
+ streetAddress?: string;
692
+ }
693
+ interface SubjectAltNames {
694
+ /** Contains additional subject alternative name values. For each custom_san, the `value` field must contain an ASN.1 encoded UTF8String. */
695
+ customSans?: X509Extension[];
696
+ /** Contains only valid, fully-qualified host names. */
697
+ dnsNames?: string[];
698
+ /** Contains only valid RFC 2822 E-mail addresses. */
699
+ emailAddresses?: string[];
700
+ /** Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. */
701
+ ipAddresses?: string[];
702
+ /** Contains only valid RFC 3986 URIs. */
703
+ uris?: string[];
704
+ }
705
+ interface SubjectConfig {
706
+ /** Required. Contains distinguished name fields such as the common name, location and organization. */
707
+ subject?: Subject;
708
+ /** Optional. The subject alternative name fields. */
709
+ subjectAltName?: SubjectAltNames;
710
+ }
711
+ interface SubjectDescription {
712
+ /** The serial number encoded in lowercase hexadecimal. */
713
+ hexSerialNumber?: string;
714
+ /** For convenience, the actual lifetime of an issued certificate. */
715
+ lifetime?: string;
716
+ /**
717
+ * The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive.
718
+ * Corresponds to 'not_before_time' + 'lifetime' - 1 second.
719
+ */
720
+ notAfterTime?: string;
721
+ /** The time at which the certificate becomes valid. */
722
+ notBeforeTime?: string;
723
+ /** Contains distinguished name fields such as the common name, location and / organization. */
724
+ subject?: Subject;
725
+ /** The subject alternative name fields. */
726
+ subjectAltName?: SubjectAltNames;
727
+ }
728
+ interface SubordinateConfig {
729
+ /**
730
+ * Required. This can refer to a CertificateAuthority that was used to create a subordinate CertificateAuthority. This field is used for information and usability purposes only. The
731
+ * resource name is in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`.
732
+ */
733
+ certificateAuthority?: string;
734
+ /** Required. Contains the PEM certificate chain for the issuers of this CertificateAuthority, but not pem certificate for this CA itself. */
735
+ pemIssuerChain?: SubordinateConfigChain;
736
+ }
737
+ interface SubordinateConfigChain {
738
+ /** Required. Expected to be in leaf-to-root order according to RFC 5246. */
739
+ pemCertificates?: string[];
740
+ }
741
+ interface TestIamPermissionsRequest {
742
+ /**
743
+ * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
744
+ * Overview](https://cloud.google.com/iam/docs/overview#permissions).
745
+ */
746
+ permissions?: string[];
747
+ }
748
+ interface TestIamPermissionsResponse {
749
+ /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
750
+ permissions?: string[];
751
+ }
752
+ interface UndeleteCertificateAuthorityRequest {
753
+ /**
754
+ * Optional. An 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
755
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times
756
+ * 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 second
757
+ * 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
758
+ * (00000000-0000-0000-0000-000000000000).
759
+ */
760
+ requestId?: string;
761
+ }
762
+ interface X509Extension {
763
+ /** Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error). */
764
+ critical?: boolean;
765
+ /** Required. The OID for this X.509 extension. */
766
+ objectId?: ObjectId;
767
+ /** Required. The value of this X.509 extension. */
768
+ value?: string;
769
+ }
770
+ interface X509Parameters {
771
+ /** Optional. Describes custom X.509 extensions. */
772
+ additionalExtensions?: X509Extension[];
773
+ /** Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. */
774
+ aiaOcspServers?: string[];
775
+ /** Optional. Describes options in this X509Parameters that are relevant in a CA certificate. */
776
+ caOptions?: CaOptions;
777
+ /** Optional. Indicates the intended use for keys that correspond to a certificate. */
778
+ keyUsage?: KeyUsage;
779
+ /** Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. */
780
+ policyIds?: ObjectId[];
781
+ }
782
+ interface CertificateRevocationListsResource {
783
+ /** Returns a CertificateRevocationList. */
784
+ get(request?: {
785
+ /** V1 error format. */
786
+ "$.xgafv"?: string;
787
+ /** OAuth access token. */
788
+ access_token?: string;
789
+ /** Data format for response. */
790
+ alt?: string;
791
+ /** JSONP */
792
+ callback?: string;
793
+ /** Selector specifying which fields to include in a partial response. */
794
+ fields?: string;
795
+ /** 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. */
796
+ key?: string;
797
+ /** Required. The name of the CertificateRevocationList to get. */
798
+ name: string;
799
+ /** OAuth 2.0 token for the current user. */
800
+ oauth_token?: string;
801
+ /** Returns response with indentations and line breaks. */
802
+ prettyPrint?: boolean;
803
+ /** 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. */
804
+ quotaUser?: string;
805
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
806
+ upload_protocol?: string;
807
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
808
+ uploadType?: string;
809
+ }): Request<CertificateRevocationList>;
810
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
811
+ getIamPolicy(request?: {
812
+ /** V1 error format. */
813
+ "$.xgafv"?: string;
814
+ /** OAuth access token. */
815
+ access_token?: string;
816
+ /** Data format for response. */
817
+ alt?: string;
818
+ /** JSONP */
819
+ callback?: string;
820
+ /** Selector specifying which fields to include in a partial response. */
821
+ fields?: string;
822
+ /** 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. */
823
+ key?: string;
824
+ /** OAuth 2.0 token for the current user. */
825
+ oauth_token?: string;
826
+ /**
827
+ * 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
828
+ * 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
829
+ * 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
830
+ * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
831
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
832
+ */
833
+ "options.requestedPolicyVersion"?: number;
834
+ /** Returns response with indentations and line breaks. */
835
+ prettyPrint?: boolean;
836
+ /** 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. */
837
+ quotaUser?: string;
838
+ /**
839
+ * 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
840
+ * field.
841
+ */
842
+ resource: string;
843
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
844
+ upload_protocol?: string;
845
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
846
+ uploadType?: string;
847
+ }): Request<Policy>;
848
+ /** Lists CertificateRevocationLists. */
849
+ list(request?: {
850
+ /** V1 error format. */
851
+ "$.xgafv"?: string;
852
+ /** OAuth access token. */
853
+ access_token?: string;
854
+ /** Data format for response. */
855
+ alt?: string;
856
+ /** JSONP */
857
+ callback?: string;
858
+ /** Selector specifying which fields to include in a partial response. */
859
+ fields?: string;
860
+ /** Optional. Only include resources that match the filter in the response. */
861
+ filter?: string;
862
+ /** 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. */
863
+ key?: string;
864
+ /** OAuth 2.0 token for the current user. */
865
+ oauth_token?: string;
866
+ /** Optional. Specify how the results should be sorted. */
867
+ orderBy?: string;
868
+ /**
869
+ * Optional. Limit on the number of CertificateRevocationLists to include in the response. Further CertificateRevocationLists can subsequently be obtained by including the
870
+ * ListCertificateRevocationListsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
871
+ */
872
+ pageSize?: number;
873
+ /** Optional. Pagination token, returned earlier via ListCertificateRevocationListsResponse.next_page_token. */
874
+ pageToken?: string;
875
+ /** Required. The resource name of the location associated with the CertificateRevocationLists, in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
876
+ parent: string;
877
+ /** Returns response with indentations and line breaks. */
878
+ prettyPrint?: boolean;
879
+ /** 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. */
880
+ quotaUser?: string;
881
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
882
+ upload_protocol?: string;
883
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
884
+ uploadType?: string;
885
+ }): Request<ListCertificateRevocationListsResponse>;
886
+ /** Update a CertificateRevocationList. */
887
+ patch(request: {
888
+ /** V1 error format. */
889
+ "$.xgafv"?: string;
890
+ /** OAuth access token. */
891
+ access_token?: string;
892
+ /** Data format for response. */
893
+ alt?: string;
894
+ /** JSONP */
895
+ callback?: string;
896
+ /** Selector specifying which fields to include in a partial response. */
897
+ fields?: string;
898
+ /** 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. */
899
+ key?: string;
900
+ /** Output only. The resource name for this CertificateRevocationList in the format `projects/*‍/locations/*‍/caPools/*certificateAuthorities/*‍/ certificateRevocationLists/*`. */
901
+ name: string;
902
+ /** OAuth 2.0 token for the current user. */
903
+ oauth_token?: string;
904
+ /** Returns response with indentations and line breaks. */
905
+ prettyPrint?: boolean;
906
+ /** 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. */
907
+ quotaUser?: string;
908
+ /**
909
+ * Optional. An 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
910
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
911
+ * 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
912
+ * 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
913
+ * (00000000-0000-0000-0000-000000000000).
914
+ */
915
+ requestId?: string;
916
+ /** Required. A list of fields to be updated in this request. */
917
+ updateMask?: string;
918
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
919
+ upload_protocol?: string;
920
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
921
+ uploadType?: string;
922
+ /** Request body */
923
+ resource: CertificateRevocationList;
924
+ }): Request<Operation>;
925
+ patch(request: {
926
+ /** V1 error format. */
927
+ "$.xgafv"?: string;
928
+ /** OAuth access token. */
929
+ access_token?: string;
930
+ /** Data format for response. */
931
+ alt?: string;
932
+ /** JSONP */
933
+ callback?: string;
934
+ /** Selector specifying which fields to include in a partial response. */
935
+ fields?: string;
936
+ /** 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. */
937
+ key?: string;
938
+ /** Output only. The resource name for this CertificateRevocationList in the format `projects/*‍/locations/*‍/caPools/*certificateAuthorities/*‍/ certificateRevocationLists/*`. */
939
+ name: string;
940
+ /** OAuth 2.0 token for the current user. */
941
+ oauth_token?: string;
942
+ /** Returns response with indentations and line breaks. */
943
+ prettyPrint?: boolean;
944
+ /** 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. */
945
+ quotaUser?: string;
946
+ /**
947
+ * Optional. An 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
948
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
949
+ * 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
950
+ * 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
951
+ * (00000000-0000-0000-0000-000000000000).
952
+ */
953
+ requestId?: string;
954
+ /** Required. A list of fields to be updated in this request. */
955
+ updateMask?: string;
956
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
957
+ upload_protocol?: string;
958
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
959
+ uploadType?: string;
960
+ },
961
+ body: CertificateRevocationList): Request<Operation>;
962
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
963
+ setIamPolicy(request: {
964
+ /** V1 error format. */
965
+ "$.xgafv"?: string;
966
+ /** OAuth access token. */
967
+ access_token?: string;
968
+ /** Data format for response. */
969
+ alt?: string;
970
+ /** JSONP */
971
+ callback?: string;
972
+ /** Selector specifying which fields to include in a partial response. */
973
+ fields?: string;
974
+ /** 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. */
975
+ key?: string;
976
+ /** OAuth 2.0 token for the current user. */
977
+ oauth_token?: string;
978
+ /** Returns response with indentations and line breaks. */
979
+ prettyPrint?: boolean;
980
+ /** 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. */
981
+ quotaUser?: string;
982
+ /**
983
+ * 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
984
+ * field.
985
+ */
986
+ resource: string;
987
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
988
+ upload_protocol?: string;
989
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
990
+ uploadType?: string;
991
+ },
992
+ body: SetIamPolicyRequest): Request<Policy>;
993
+ /**
994
+ * 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
995
+ * 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.
996
+ */
997
+ testIamPermissions(request: {
998
+ /** V1 error format. */
999
+ "$.xgafv"?: string;
1000
+ /** OAuth access token. */
1001
+ access_token?: string;
1002
+ /** Data format for response. */
1003
+ alt?: string;
1004
+ /** JSONP */
1005
+ callback?: string;
1006
+ /** Selector specifying which fields to include in a partial response. */
1007
+ fields?: string;
1008
+ /** 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. */
1009
+ key?: string;
1010
+ /** OAuth 2.0 token for the current user. */
1011
+ oauth_token?: string;
1012
+ /** Returns response with indentations and line breaks. */
1013
+ prettyPrint?: boolean;
1014
+ /** 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. */
1015
+ quotaUser?: string;
1016
+ /**
1017
+ * 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
1018
+ * this field.
1019
+ */
1020
+ resource: string;
1021
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1022
+ upload_protocol?: string;
1023
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1024
+ uploadType?: string;
1025
+ },
1026
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1027
+ }
1028
+ interface CertificateAuthoritiesResource {
1029
+ /**
1030
+ * Activate a CertificateAuthority that is in state AWAITING_USER_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from
1031
+ * FetchCertificateAuthorityCsr, this method can complete the activation process.
1032
+ */
1033
+ activate(request: {
1034
+ /** V1 error format. */
1035
+ "$.xgafv"?: string;
1036
+ /** OAuth access token. */
1037
+ access_token?: string;
1038
+ /** Data format for response. */
1039
+ alt?: string;
1040
+ /** JSONP */
1041
+ callback?: string;
1042
+ /** Selector specifying which fields to include in a partial response. */
1043
+ fields?: string;
1044
+ /** 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. */
1045
+ key?: string;
1046
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1047
+ name: string;
1048
+ /** OAuth 2.0 token for the current user. */
1049
+ oauth_token?: string;
1050
+ /** Returns response with indentations and line breaks. */
1051
+ prettyPrint?: boolean;
1052
+ /** 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. */
1053
+ quotaUser?: string;
1054
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1055
+ upload_protocol?: string;
1056
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1057
+ uploadType?: string;
1058
+ /** Request body */
1059
+ resource: ActivateCertificateAuthorityRequest;
1060
+ }): Request<Operation>;
1061
+ activate(request: {
1062
+ /** V1 error format. */
1063
+ "$.xgafv"?: string;
1064
+ /** OAuth access token. */
1065
+ access_token?: string;
1066
+ /** Data format for response. */
1067
+ alt?: string;
1068
+ /** JSONP */
1069
+ callback?: string;
1070
+ /** Selector specifying which fields to include in a partial response. */
1071
+ fields?: string;
1072
+ /** 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. */
1073
+ key?: string;
1074
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1075
+ name: string;
1076
+ /** OAuth 2.0 token for the current user. */
1077
+ oauth_token?: string;
1078
+ /** Returns response with indentations and line breaks. */
1079
+ prettyPrint?: boolean;
1080
+ /** 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. */
1081
+ quotaUser?: string;
1082
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1083
+ upload_protocol?: string;
1084
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1085
+ uploadType?: string;
1086
+ },
1087
+ body: ActivateCertificateAuthorityRequest): Request<Operation>;
1088
+ /** Create a new CertificateAuthority in a given Project and Location. */
1089
+ create(request: {
1090
+ /** V1 error format. */
1091
+ "$.xgafv"?: string;
1092
+ /** OAuth access token. */
1093
+ access_token?: string;
1094
+ /** Data format for response. */
1095
+ alt?: string;
1096
+ /** JSONP */
1097
+ callback?: string;
1098
+ /** Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}` */
1099
+ certificateAuthorityId?: string;
1100
+ /** Selector specifying which fields to include in a partial response. */
1101
+ fields?: string;
1102
+ /** 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. */
1103
+ key?: string;
1104
+ /** OAuth 2.0 token for the current user. */
1105
+ oauth_token?: string;
1106
+ /** Required. The resource name of the CaPool associated with the CertificateAuthorities, in the format `projects/*‍/locations/*‍/caPools/*`. */
1107
+ parent: string;
1108
+ /** Returns response with indentations and line breaks. */
1109
+ prettyPrint?: boolean;
1110
+ /** 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. */
1111
+ quotaUser?: string;
1112
+ /**
1113
+ * Optional. An 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
1114
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1115
+ * 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
1116
+ * 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
1117
+ * (00000000-0000-0000-0000-000000000000).
1118
+ */
1119
+ requestId?: string;
1120
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1121
+ upload_protocol?: string;
1122
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1123
+ uploadType?: string;
1124
+ /** Request body */
1125
+ resource: CertificateAuthority;
1126
+ }): Request<Operation>;
1127
+ create(request: {
1128
+ /** V1 error format. */
1129
+ "$.xgafv"?: string;
1130
+ /** OAuth access token. */
1131
+ access_token?: string;
1132
+ /** Data format for response. */
1133
+ alt?: string;
1134
+ /** JSONP */
1135
+ callback?: string;
1136
+ /** Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}` */
1137
+ certificateAuthorityId?: string;
1138
+ /** Selector specifying which fields to include in a partial response. */
1139
+ fields?: string;
1140
+ /** 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. */
1141
+ key?: string;
1142
+ /** OAuth 2.0 token for the current user. */
1143
+ oauth_token?: string;
1144
+ /** Required. The resource name of the CaPool associated with the CertificateAuthorities, in the format `projects/*‍/locations/*‍/caPools/*`. */
1145
+ parent: string;
1146
+ /** Returns response with indentations and line breaks. */
1147
+ prettyPrint?: boolean;
1148
+ /** 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. */
1149
+ quotaUser?: string;
1150
+ /**
1151
+ * Optional. An 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
1152
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1153
+ * 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
1154
+ * 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
1155
+ * (00000000-0000-0000-0000-000000000000).
1156
+ */
1157
+ requestId?: string;
1158
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1159
+ upload_protocol?: string;
1160
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1161
+ uploadType?: string;
1162
+ },
1163
+ body: CertificateAuthority): Request<Operation>;
1164
+ /** Delete a CertificateAuthority. */
1165
+ delete(request?: {
1166
+ /** V1 error format. */
1167
+ "$.xgafv"?: string;
1168
+ /** OAuth access token. */
1169
+ access_token?: string;
1170
+ /** Data format for response. */
1171
+ alt?: string;
1172
+ /** JSONP */
1173
+ callback?: string;
1174
+ /** Selector specifying which fields to include in a partial response. */
1175
+ fields?: string;
1176
+ /** Optional. This field allows the CA to be deleted even if the CA has active certs. Active certs include both unrevoked and unexpired certs. */
1177
+ ignoreActiveCertificates?: boolean;
1178
+ /** 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. */
1179
+ key?: string;
1180
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1181
+ name: string;
1182
+ /** OAuth 2.0 token for the current user. */
1183
+ oauth_token?: string;
1184
+ /** Returns response with indentations and line breaks. */
1185
+ prettyPrint?: boolean;
1186
+ /** 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. */
1187
+ quotaUser?: string;
1188
+ /**
1189
+ * Optional. An 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
1190
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1191
+ * 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
1192
+ * 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
1193
+ * (00000000-0000-0000-0000-000000000000).
1194
+ */
1195
+ requestId?: string;
1196
+ /**
1197
+ * Optional. If this flag is set, the Certificate Authority will be deleted as soon as possible without a 30-day grace period where undeletion would have been allowed. If you
1198
+ * proceed, there will be no way to recover this CA.
1199
+ */
1200
+ skipGracePeriod?: boolean;
1201
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1202
+ upload_protocol?: string;
1203
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1204
+ uploadType?: string;
1205
+ }): Request<Operation>;
1206
+ /** Disable a CertificateAuthority. */
1207
+ disable(request: {
1208
+ /** V1 error format. */
1209
+ "$.xgafv"?: string;
1210
+ /** OAuth access token. */
1211
+ access_token?: string;
1212
+ /** Data format for response. */
1213
+ alt?: string;
1214
+ /** JSONP */
1215
+ callback?: string;
1216
+ /** Selector specifying which fields to include in a partial response. */
1217
+ fields?: string;
1218
+ /** 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. */
1219
+ key?: string;
1220
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1221
+ name: string;
1222
+ /** OAuth 2.0 token for the current user. */
1223
+ oauth_token?: string;
1224
+ /** Returns response with indentations and line breaks. */
1225
+ prettyPrint?: boolean;
1226
+ /** 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. */
1227
+ quotaUser?: string;
1228
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1229
+ upload_protocol?: string;
1230
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1231
+ uploadType?: string;
1232
+ /** Request body */
1233
+ resource: DisableCertificateAuthorityRequest;
1234
+ }): Request<Operation>;
1235
+ disable(request: {
1236
+ /** V1 error format. */
1237
+ "$.xgafv"?: string;
1238
+ /** OAuth access token. */
1239
+ access_token?: string;
1240
+ /** Data format for response. */
1241
+ alt?: string;
1242
+ /** JSONP */
1243
+ callback?: string;
1244
+ /** Selector specifying which fields to include in a partial response. */
1245
+ fields?: string;
1246
+ /** 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. */
1247
+ key?: string;
1248
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1249
+ name: string;
1250
+ /** OAuth 2.0 token for the current user. */
1251
+ oauth_token?: string;
1252
+ /** Returns response with indentations and line breaks. */
1253
+ prettyPrint?: boolean;
1254
+ /** 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. */
1255
+ quotaUser?: string;
1256
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1257
+ upload_protocol?: string;
1258
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1259
+ uploadType?: string;
1260
+ },
1261
+ body: DisableCertificateAuthorityRequest): Request<Operation>;
1262
+ /** Enable a CertificateAuthority. */
1263
+ enable(request: {
1264
+ /** V1 error format. */
1265
+ "$.xgafv"?: string;
1266
+ /** OAuth access token. */
1267
+ access_token?: string;
1268
+ /** Data format for response. */
1269
+ alt?: string;
1270
+ /** JSONP */
1271
+ callback?: string;
1272
+ /** Selector specifying which fields to include in a partial response. */
1273
+ fields?: string;
1274
+ /** 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. */
1275
+ key?: string;
1276
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1277
+ name: string;
1278
+ /** OAuth 2.0 token for the current user. */
1279
+ oauth_token?: string;
1280
+ /** Returns response with indentations and line breaks. */
1281
+ prettyPrint?: boolean;
1282
+ /** 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. */
1283
+ quotaUser?: string;
1284
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1285
+ upload_protocol?: string;
1286
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1287
+ uploadType?: string;
1288
+ /** Request body */
1289
+ resource: EnableCertificateAuthorityRequest;
1290
+ }): Request<Operation>;
1291
+ enable(request: {
1292
+ /** V1 error format. */
1293
+ "$.xgafv"?: string;
1294
+ /** OAuth access token. */
1295
+ access_token?: string;
1296
+ /** Data format for response. */
1297
+ alt?: string;
1298
+ /** JSONP */
1299
+ callback?: string;
1300
+ /** Selector specifying which fields to include in a partial response. */
1301
+ fields?: string;
1302
+ /** 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. */
1303
+ key?: string;
1304
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1305
+ name: string;
1306
+ /** OAuth 2.0 token for the current user. */
1307
+ oauth_token?: string;
1308
+ /** Returns response with indentations and line breaks. */
1309
+ prettyPrint?: boolean;
1310
+ /** 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. */
1311
+ quotaUser?: string;
1312
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1313
+ upload_protocol?: string;
1314
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1315
+ uploadType?: string;
1316
+ },
1317
+ body: EnableCertificateAuthorityRequest): Request<Operation>;
1318
+ /**
1319
+ * Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state AWAITING_USER_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the
1320
+ * desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.
1321
+ */
1322
+ fetch(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
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1336
+ name: string;
1337
+ /** OAuth 2.0 token for the current user. */
1338
+ oauth_token?: string;
1339
+ /** Returns response with indentations and line breaks. */
1340
+ prettyPrint?: boolean;
1341
+ /** 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. */
1342
+ quotaUser?: string;
1343
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1344
+ upload_protocol?: string;
1345
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1346
+ uploadType?: string;
1347
+ }): Request<FetchCertificateAuthorityCsrResponse>;
1348
+ /** Returns a CertificateAuthority. */
1349
+ get(request?: {
1350
+ /** V1 error format. */
1351
+ "$.xgafv"?: string;
1352
+ /** OAuth access token. */
1353
+ access_token?: string;
1354
+ /** Data format for response. */
1355
+ alt?: string;
1356
+ /** JSONP */
1357
+ callback?: string;
1358
+ /** Selector specifying which fields to include in a partial response. */
1359
+ fields?: string;
1360
+ /** 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. */
1361
+ key?: string;
1362
+ /** Required. The name of the CertificateAuthority to get. */
1363
+ name: string;
1364
+ /** OAuth 2.0 token for the current user. */
1365
+ oauth_token?: string;
1366
+ /** Returns response with indentations and line breaks. */
1367
+ prettyPrint?: boolean;
1368
+ /** 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. */
1369
+ quotaUser?: string;
1370
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1371
+ upload_protocol?: string;
1372
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1373
+ uploadType?: string;
1374
+ }): Request<CertificateAuthority>;
1375
+ /** Lists CertificateAuthorities. */
1376
+ list(request?: {
1377
+ /** V1 error format. */
1378
+ "$.xgafv"?: string;
1379
+ /** OAuth access token. */
1380
+ access_token?: string;
1381
+ /** Data format for response. */
1382
+ alt?: string;
1383
+ /** JSONP */
1384
+ callback?: string;
1385
+ /** Selector specifying which fields to include in a partial response. */
1386
+ fields?: string;
1387
+ /** Optional. Only include resources that match the filter in the response. */
1388
+ filter?: string;
1389
+ /** 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. */
1390
+ key?: string;
1391
+ /** OAuth 2.0 token for the current user. */
1392
+ oauth_token?: string;
1393
+ /** Optional. Specify how the results should be sorted. */
1394
+ orderBy?: string;
1395
+ /**
1396
+ * Optional. Limit on the number of CertificateAuthorities to include in the response. Further CertificateAuthorities can subsequently be obtained by including the
1397
+ * ListCertificateAuthoritiesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
1398
+ */
1399
+ pageSize?: number;
1400
+ /** Optional. Pagination token, returned earlier via ListCertificateAuthoritiesResponse.next_page_token. */
1401
+ pageToken?: string;
1402
+ /** Required. The resource name of the CaPool associated with the CertificateAuthorities, in the format `projects/*‍/locations/*‍/caPools/*`. */
1403
+ parent: string;
1404
+ /** Returns response with indentations and line breaks. */
1405
+ prettyPrint?: boolean;
1406
+ /** 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. */
1407
+ quotaUser?: string;
1408
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1409
+ upload_protocol?: string;
1410
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1411
+ uploadType?: string;
1412
+ }): Request<ListCertificateAuthoritiesResponse>;
1413
+ /** Update a CertificateAuthority. */
1414
+ patch(request: {
1415
+ /** V1 error format. */
1416
+ "$.xgafv"?: string;
1417
+ /** OAuth access token. */
1418
+ access_token?: string;
1419
+ /** Data format for response. */
1420
+ alt?: string;
1421
+ /** JSONP */
1422
+ callback?: string;
1423
+ /** Selector specifying which fields to include in a partial response. */
1424
+ fields?: string;
1425
+ /** 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. */
1426
+ key?: string;
1427
+ /** Output only. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1428
+ name: string;
1429
+ /** OAuth 2.0 token for the current user. */
1430
+ oauth_token?: string;
1431
+ /** Returns response with indentations and line breaks. */
1432
+ prettyPrint?: boolean;
1433
+ /** 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. */
1434
+ quotaUser?: string;
1435
+ /**
1436
+ * Optional. An 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
1437
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1438
+ * 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
1439
+ * 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
1440
+ * (00000000-0000-0000-0000-000000000000).
1441
+ */
1442
+ requestId?: string;
1443
+ /** Required. A list of fields to be updated in this request. */
1444
+ updateMask?: string;
1445
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1446
+ upload_protocol?: string;
1447
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1448
+ uploadType?: string;
1449
+ /** Request body */
1450
+ resource: CertificateAuthority;
1451
+ }): Request<Operation>;
1452
+ patch(request: {
1453
+ /** V1 error format. */
1454
+ "$.xgafv"?: string;
1455
+ /** OAuth access token. */
1456
+ access_token?: string;
1457
+ /** Data format for response. */
1458
+ alt?: string;
1459
+ /** JSONP */
1460
+ callback?: string;
1461
+ /** Selector specifying which fields to include in a partial response. */
1462
+ fields?: string;
1463
+ /** 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. */
1464
+ key?: string;
1465
+ /** Output only. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1466
+ name: string;
1467
+ /** OAuth 2.0 token for the current user. */
1468
+ oauth_token?: string;
1469
+ /** Returns response with indentations and line breaks. */
1470
+ prettyPrint?: boolean;
1471
+ /** 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. */
1472
+ quotaUser?: string;
1473
+ /**
1474
+ * Optional. An 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
1475
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1476
+ * 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
1477
+ * 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
1478
+ * (00000000-0000-0000-0000-000000000000).
1479
+ */
1480
+ requestId?: string;
1481
+ /** Required. A list of fields to be updated in this request. */
1482
+ updateMask?: string;
1483
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1484
+ upload_protocol?: string;
1485
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1486
+ uploadType?: string;
1487
+ },
1488
+ body: CertificateAuthority): Request<Operation>;
1489
+ /** Undelete a CertificateAuthority that has been deleted. */
1490
+ undelete(request: {
1491
+ /** V1 error format. */
1492
+ "$.xgafv"?: string;
1493
+ /** OAuth access token. */
1494
+ access_token?: string;
1495
+ /** Data format for response. */
1496
+ alt?: string;
1497
+ /** JSONP */
1498
+ callback?: string;
1499
+ /** Selector specifying which fields to include in a partial response. */
1500
+ fields?: string;
1501
+ /** 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. */
1502
+ key?: string;
1503
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1504
+ name: string;
1505
+ /** OAuth 2.0 token for the current user. */
1506
+ oauth_token?: string;
1507
+ /** Returns response with indentations and line breaks. */
1508
+ prettyPrint?: boolean;
1509
+ /** 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. */
1510
+ quotaUser?: string;
1511
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1512
+ upload_protocol?: string;
1513
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1514
+ uploadType?: string;
1515
+ /** Request body */
1516
+ resource: UndeleteCertificateAuthorityRequest;
1517
+ }): Request<Operation>;
1518
+ undelete(request: {
1519
+ /** V1 error format. */
1520
+ "$.xgafv"?: string;
1521
+ /** OAuth access token. */
1522
+ access_token?: string;
1523
+ /** Data format for response. */
1524
+ alt?: string;
1525
+ /** JSONP */
1526
+ callback?: string;
1527
+ /** Selector specifying which fields to include in a partial response. */
1528
+ fields?: string;
1529
+ /** 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. */
1530
+ key?: string;
1531
+ /** Required. The resource name for this CertificateAuthority in the format `projects/*‍/locations/*‍/caPools/*‍/certificateAuthorities/*`. */
1532
+ name: string;
1533
+ /** OAuth 2.0 token for the current user. */
1534
+ oauth_token?: string;
1535
+ /** Returns response with indentations and line breaks. */
1536
+ prettyPrint?: boolean;
1537
+ /** 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. */
1538
+ quotaUser?: string;
1539
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1540
+ upload_protocol?: string;
1541
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1542
+ uploadType?: string;
1543
+ },
1544
+ body: UndeleteCertificateAuthorityRequest): Request<Operation>;
1545
+ certificateRevocationLists: CertificateRevocationListsResource;
1546
+ }
1547
+ interface CertificatesResource {
1548
+ /** Create a new Certificate in a given Project, Location from a particular CaPool. */
1549
+ create(request: {
1550
+ /** V1 error format. */
1551
+ "$.xgafv"?: string;
1552
+ /** OAuth access token. */
1553
+ access_token?: string;
1554
+ /** Data format for response. */
1555
+ alt?: string;
1556
+ /** JSONP */
1557
+ callback?: string;
1558
+ /**
1559
+ * Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise
1560
+ * CertificateAuthority.Tier, but is optional and its value is ignored otherwise.
1561
+ */
1562
+ certificateId?: string;
1563
+ /** Selector specifying which fields to include in a partial response. */
1564
+ fields?: string;
1565
+ /**
1566
+ * Optional. The resource ID of the CertificateAuthority that should issue the certificate. This optional field will ignore the load-balancing scheme of the Pool and directly issue
1567
+ * the certificate from the CA with the specified ID, contained in the same CaPool referenced by `parent`. Per-CA quota rules apply. If left empty, a CertificateAuthority will be
1568
+ * chosen from the CaPool by the service. For example, to issue a Certificate from a Certificate Authority with resource name
1569
+ * "projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca", you can set the parent to "projects/my-project/locations/us-central1/caPools/my-pool"
1570
+ * and the issuing_certificate_authority_id to "my-ca".
1571
+ */
1572
+ issuingCertificateAuthorityId?: string;
1573
+ /** 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. */
1574
+ key?: string;
1575
+ /** OAuth 2.0 token for the current user. */
1576
+ oauth_token?: string;
1577
+ /** Required. The resource name of the CaPool associated with the Certificate, in the format `projects/*‍/locations/*‍/caPools/*`. */
1578
+ parent: string;
1579
+ /** Returns response with indentations and line breaks. */
1580
+ prettyPrint?: boolean;
1581
+ /** 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. */
1582
+ quotaUser?: string;
1583
+ /**
1584
+ * Optional. An 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
1585
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request
1586
+ * 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
1587
+ * 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
1588
+ * (00000000-0000-0000-0000-000000000000).
1589
+ */
1590
+ requestId?: 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
+ /** Optional. If this is true, no Certificate resource will be persisted regardless of the CaPool's tier, and the returned Certificate will not contain the pem_certificate field. */
1596
+ validateOnly?: boolean;
1597
+ /** Request body */
1598
+ resource: Certificate;
1599
+ }): Request<Certificate>;
1600
+ create(request: {
1601
+ /** V1 error format. */
1602
+ "$.xgafv"?: string;
1603
+ /** OAuth access token. */
1604
+ access_token?: string;
1605
+ /** Data format for response. */
1606
+ alt?: string;
1607
+ /** JSONP */
1608
+ callback?: string;
1609
+ /**
1610
+ * Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise
1611
+ * CertificateAuthority.Tier, but is optional and its value is ignored otherwise.
1612
+ */
1613
+ certificateId?: string;
1614
+ /** Selector specifying which fields to include in a partial response. */
1615
+ fields?: string;
1616
+ /**
1617
+ * Optional. The resource ID of the CertificateAuthority that should issue the certificate. This optional field will ignore the load-balancing scheme of the Pool and directly issue
1618
+ * the certificate from the CA with the specified ID, contained in the same CaPool referenced by `parent`. Per-CA quota rules apply. If left empty, a CertificateAuthority will be
1619
+ * chosen from the CaPool by the service. For example, to issue a Certificate from a Certificate Authority with resource name
1620
+ * "projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca", you can set the parent to "projects/my-project/locations/us-central1/caPools/my-pool"
1621
+ * and the issuing_certificate_authority_id to "my-ca".
1622
+ */
1623
+ issuingCertificateAuthorityId?: string;
1624
+ /** 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. */
1625
+ key?: string;
1626
+ /** OAuth 2.0 token for the current user. */
1627
+ oauth_token?: string;
1628
+ /** Required. The resource name of the CaPool associated with the Certificate, in the format `projects/*‍/locations/*‍/caPools/*`. */
1629
+ parent: string;
1630
+ /** Returns response with indentations and line breaks. */
1631
+ prettyPrint?: boolean;
1632
+ /** 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. */
1633
+ quotaUser?: string;
1634
+ /**
1635
+ * Optional. An 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
1636
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request
1637
+ * 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
1638
+ * 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
1639
+ * (00000000-0000-0000-0000-000000000000).
1640
+ */
1641
+ requestId?: string;
1642
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1643
+ upload_protocol?: string;
1644
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1645
+ uploadType?: string;
1646
+ /** Optional. If this is true, no Certificate resource will be persisted regardless of the CaPool's tier, and the returned Certificate will not contain the pem_certificate field. */
1647
+ validateOnly?: boolean;
1648
+ },
1649
+ body: Certificate): Request<Certificate>;
1650
+ /** Returns a Certificate. */
1651
+ get(request?: {
1652
+ /** V1 error format. */
1653
+ "$.xgafv"?: string;
1654
+ /** OAuth access token. */
1655
+ access_token?: string;
1656
+ /** Data format for response. */
1657
+ alt?: string;
1658
+ /** JSONP */
1659
+ callback?: string;
1660
+ /** Selector specifying which fields to include in a partial response. */
1661
+ fields?: string;
1662
+ /** 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. */
1663
+ key?: string;
1664
+ /** Required. The name of the Certificate to get. */
1665
+ name: string;
1666
+ /** OAuth 2.0 token for the current user. */
1667
+ oauth_token?: string;
1668
+ /** Returns response with indentations and line breaks. */
1669
+ prettyPrint?: boolean;
1670
+ /** 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. */
1671
+ quotaUser?: string;
1672
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1673
+ upload_protocol?: string;
1674
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1675
+ uploadType?: string;
1676
+ }): Request<Certificate>;
1677
+ /** Lists Certificates. */
1678
+ list(request?: {
1679
+ /** V1 error format. */
1680
+ "$.xgafv"?: string;
1681
+ /** OAuth access token. */
1682
+ access_token?: string;
1683
+ /** Data format for response. */
1684
+ alt?: string;
1685
+ /** JSONP */
1686
+ callback?: string;
1687
+ /** Selector specifying which fields to include in a partial response. */
1688
+ fields?: string;
1689
+ /**
1690
+ * Optional. Only include resources that match the filter in the response. For details on supported filters and syntax, see [Certificates Filtering
1691
+ * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
1692
+ */
1693
+ filter?: string;
1694
+ /** 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. */
1695
+ key?: string;
1696
+ /** OAuth 2.0 token for the current user. */
1697
+ oauth_token?: string;
1698
+ /**
1699
+ * Optional. Specify how the results should be sorted. For details on supported fields and syntax, see [Certificates Sorting
1700
+ * documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
1701
+ */
1702
+ orderBy?: string;
1703
+ /**
1704
+ * Optional. Limit on the number of Certificates to include in the response. Further Certificates can subsequently be obtained by including the
1705
+ * ListCertificatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
1706
+ */
1707
+ pageSize?: number;
1708
+ /** Optional. Pagination token, returned earlier via ListCertificatesResponse.next_page_token. */
1709
+ pageToken?: string;
1710
+ /** Required. The resource name of the location associated with the Certificates, in the format `projects/*‍/locations/*‍/caPools/*`. */
1711
+ parent: string;
1712
+ /** Returns response with indentations and line breaks. */
1713
+ prettyPrint?: boolean;
1714
+ /** 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. */
1715
+ quotaUser?: string;
1716
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1717
+ upload_protocol?: string;
1718
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1719
+ uploadType?: string;
1720
+ }): Request<ListCertificatesResponse>;
1721
+ /** Update a Certificate. Currently, the only field you can update is the labels field. */
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
+ /** Output only. The resource name for this Certificate in the format `projects/*‍/locations/*‍/caPools/*‍/certificates/*`. */
1736
+ name: string;
1737
+ /** OAuth 2.0 token for the current user. */
1738
+ oauth_token?: string;
1739
+ /** Returns response with indentations and line breaks. */
1740
+ prettyPrint?: boolean;
1741
+ /** 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. */
1742
+ quotaUser?: string;
1743
+ /**
1744
+ * Optional. An 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
1745
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1746
+ * 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
1747
+ * 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
1748
+ * (00000000-0000-0000-0000-000000000000).
1749
+ */
1750
+ requestId?: string;
1751
+ /** Required. A list of fields to be updated in this request. */
1752
+ updateMask?: string;
1753
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1754
+ upload_protocol?: string;
1755
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1756
+ uploadType?: string;
1757
+ /** Request body */
1758
+ resource: Certificate;
1759
+ }): Request<Certificate>;
1760
+ patch(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
+ /** Output only. The resource name for this Certificate in the format `projects/*‍/locations/*‍/caPools/*‍/certificates/*`. */
1774
+ name: string;
1775
+ /** OAuth 2.0 token for the current user. */
1776
+ oauth_token?: string;
1777
+ /** Returns response with indentations and line breaks. */
1778
+ prettyPrint?: boolean;
1779
+ /** 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. */
1780
+ quotaUser?: string;
1781
+ /**
1782
+ * Optional. An 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
1783
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1784
+ * 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
1785
+ * 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
1786
+ * (00000000-0000-0000-0000-000000000000).
1787
+ */
1788
+ requestId?: string;
1789
+ /** Required. A list of fields to be updated in this request. */
1790
+ updateMask?: string;
1791
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1792
+ upload_protocol?: string;
1793
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1794
+ uploadType?: string;
1795
+ },
1796
+ body: Certificate): Request<Certificate>;
1797
+ /** Revoke a Certificate. */
1798
+ revoke(request: {
1799
+ /** V1 error format. */
1800
+ "$.xgafv"?: string;
1801
+ /** OAuth access token. */
1802
+ access_token?: string;
1803
+ /** Data format for response. */
1804
+ alt?: string;
1805
+ /** JSONP */
1806
+ callback?: string;
1807
+ /** Selector specifying which fields to include in a partial response. */
1808
+ fields?: string;
1809
+ /** 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. */
1810
+ key?: string;
1811
+ /** Required. The resource name for this Certificate in the format `projects/*‍/locations/*‍/caPools/*‍/certificates/*`. */
1812
+ name: string;
1813
+ /** OAuth 2.0 token for the current user. */
1814
+ oauth_token?: string;
1815
+ /** Returns response with indentations and line breaks. */
1816
+ prettyPrint?: boolean;
1817
+ /** 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. */
1818
+ quotaUser?: string;
1819
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1820
+ upload_protocol?: string;
1821
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1822
+ uploadType?: string;
1823
+ /** Request body */
1824
+ resource: RevokeCertificateRequest;
1825
+ }): Request<Certificate>;
1826
+ revoke(request: {
1827
+ /** V1 error format. */
1828
+ "$.xgafv"?: string;
1829
+ /** OAuth access token. */
1830
+ access_token?: string;
1831
+ /** Data format for response. */
1832
+ alt?: string;
1833
+ /** JSONP */
1834
+ callback?: string;
1835
+ /** Selector specifying which fields to include in a partial response. */
1836
+ fields?: string;
1837
+ /** 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. */
1838
+ key?: string;
1839
+ /** Required. The resource name for this Certificate in the format `projects/*‍/locations/*‍/caPools/*‍/certificates/*`. */
1840
+ name: string;
1841
+ /** OAuth 2.0 token for the current user. */
1842
+ oauth_token?: string;
1843
+ /** Returns response with indentations and line breaks. */
1844
+ prettyPrint?: boolean;
1845
+ /** 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. */
1846
+ quotaUser?: string;
1847
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1848
+ upload_protocol?: string;
1849
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1850
+ uploadType?: string;
1851
+ },
1852
+ body: RevokeCertificateRequest): Request<Certificate>;
1853
+ }
1854
+ interface CaPoolsResource {
1855
+ /** Create a CaPool. */
1856
+ create(request: {
1857
+ /** V1 error format. */
1858
+ "$.xgafv"?: string;
1859
+ /** OAuth access token. */
1860
+ access_token?: string;
1861
+ /** Data format for response. */
1862
+ alt?: string;
1863
+ /** JSONP */
1864
+ callback?: string;
1865
+ /** Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}` */
1866
+ caPoolId?: string;
1867
+ /** Selector specifying which fields to include in a partial response. */
1868
+ fields?: string;
1869
+ /** 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. */
1870
+ key?: string;
1871
+ /** OAuth 2.0 token for the current user. */
1872
+ oauth_token?: string;
1873
+ /** Required. The resource name of the location associated with the CaPool, in the format `projects/*‍/locations/*`. */
1874
+ parent: string;
1875
+ /** Returns response with indentations and line breaks. */
1876
+ prettyPrint?: boolean;
1877
+ /** 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. */
1878
+ quotaUser?: string;
1879
+ /**
1880
+ * Optional. An 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
1881
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1882
+ * 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
1883
+ * 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
1884
+ * (00000000-0000-0000-0000-000000000000).
1885
+ */
1886
+ requestId?: string;
1887
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1888
+ upload_protocol?: string;
1889
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1890
+ uploadType?: string;
1891
+ /** Request body */
1892
+ resource: CaPool;
1893
+ }): Request<Operation>;
1894
+ create(request: {
1895
+ /** V1 error format. */
1896
+ "$.xgafv"?: string;
1897
+ /** OAuth access token. */
1898
+ access_token?: string;
1899
+ /** Data format for response. */
1900
+ alt?: string;
1901
+ /** JSONP */
1902
+ callback?: string;
1903
+ /** Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}` */
1904
+ caPoolId?: string;
1905
+ /** Selector specifying which fields to include in a partial response. */
1906
+ fields?: string;
1907
+ /** 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. */
1908
+ key?: string;
1909
+ /** OAuth 2.0 token for the current user. */
1910
+ oauth_token?: string;
1911
+ /** Required. The resource name of the location associated with the CaPool, in the format `projects/*‍/locations/*`. */
1912
+ parent: string;
1913
+ /** Returns response with indentations and line breaks. */
1914
+ prettyPrint?: boolean;
1915
+ /** 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. */
1916
+ quotaUser?: string;
1917
+ /**
1918
+ * Optional. An 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
1919
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1920
+ * 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
1921
+ * 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
1922
+ * (00000000-0000-0000-0000-000000000000).
1923
+ */
1924
+ requestId?: string;
1925
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1926
+ upload_protocol?: string;
1927
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1928
+ uploadType?: string;
1929
+ },
1930
+ body: CaPool): Request<Operation>;
1931
+ /** Delete a CaPool. */
1932
+ delete(request?: {
1933
+ /** V1 error format. */
1934
+ "$.xgafv"?: string;
1935
+ /** OAuth access token. */
1936
+ access_token?: string;
1937
+ /** Data format for response. */
1938
+ alt?: string;
1939
+ /** JSONP */
1940
+ callback?: string;
1941
+ /** Selector specifying which fields to include in a partial response. */
1942
+ fields?: string;
1943
+ /** 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. */
1944
+ key?: string;
1945
+ /** Required. The resource name for this CaPool in the format `projects/*‍/locations/*‍/caPools/*`. */
1946
+ name: string;
1947
+ /** OAuth 2.0 token for the current user. */
1948
+ oauth_token?: string;
1949
+ /** Returns response with indentations and line breaks. */
1950
+ prettyPrint?: boolean;
1951
+ /** 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. */
1952
+ quotaUser?: string;
1953
+ /**
1954
+ * Optional. An 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
1955
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
1956
+ * 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
1957
+ * 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
1958
+ * (00000000-0000-0000-0000-000000000000).
1959
+ */
1960
+ requestId?: string;
1961
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1962
+ upload_protocol?: string;
1963
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1964
+ uploadType?: string;
1965
+ }): Request<Operation>;
1966
+ /** FetchCaCerts returns the current trust anchor for the CaPool. This will include CA certificate chains for all ACTIVE CertificateAuthority resources in the CaPool. */
1967
+ fetchCaCerts(request: {
1968
+ /** V1 error format. */
1969
+ "$.xgafv"?: string;
1970
+ /** OAuth access token. */
1971
+ access_token?: string;
1972
+ /** Data format for response. */
1973
+ alt?: string;
1974
+ /** JSONP */
1975
+ callback?: string;
1976
+ /** Required. The resource name for the CaPool in the format `projects/*‍/locations/*‍/caPools/*`. */
1977
+ caPool: string;
1978
+ /** Selector specifying which fields to include in a partial response. */
1979
+ fields?: string;
1980
+ /** 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. */
1981
+ key?: string;
1982
+ /** OAuth 2.0 token for the current user. */
1983
+ oauth_token?: string;
1984
+ /** Returns response with indentations and line breaks. */
1985
+ prettyPrint?: boolean;
1986
+ /** 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. */
1987
+ quotaUser?: string;
1988
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1989
+ upload_protocol?: string;
1990
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1991
+ uploadType?: string;
1992
+ /** Request body */
1993
+ resource: FetchCaCertsRequest;
1994
+ }): Request<FetchCaCertsResponse>;
1995
+ fetchCaCerts(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
+ /** Required. The resource name for the CaPool in the format `projects/*‍/locations/*‍/caPools/*`. */
2005
+ caPool: string;
2006
+ /** Selector specifying which fields to include in a partial response. */
2007
+ fields?: string;
2008
+ /** 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. */
2009
+ key?: string;
2010
+ /** OAuth 2.0 token for the current user. */
2011
+ oauth_token?: string;
2012
+ /** Returns response with indentations and line breaks. */
2013
+ prettyPrint?: boolean;
2014
+ /** 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. */
2015
+ quotaUser?: string;
2016
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2017
+ upload_protocol?: string;
2018
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2019
+ uploadType?: string;
2020
+ },
2021
+ body: FetchCaCertsRequest): Request<FetchCaCertsResponse>;
2022
+ /** Returns a CaPool. */
2023
+ get(request?: {
2024
+ /** V1 error format. */
2025
+ "$.xgafv"?: string;
2026
+ /** OAuth access token. */
2027
+ access_token?: string;
2028
+ /** Data format for response. */
2029
+ alt?: string;
2030
+ /** JSONP */
2031
+ callback?: string;
2032
+ /** Selector specifying which fields to include in a partial response. */
2033
+ fields?: string;
2034
+ /** 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. */
2035
+ key?: string;
2036
+ /** Required. The name of the CaPool to get. */
2037
+ name: string;
2038
+ /** OAuth 2.0 token for the current user. */
2039
+ oauth_token?: string;
2040
+ /** Returns response with indentations and line breaks. */
2041
+ prettyPrint?: boolean;
2042
+ /** 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. */
2043
+ quotaUser?: string;
2044
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2045
+ upload_protocol?: string;
2046
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2047
+ uploadType?: string;
2048
+ }): Request<CaPool>;
2049
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
2050
+ getIamPolicy(request?: {
2051
+ /** V1 error format. */
2052
+ "$.xgafv"?: string;
2053
+ /** OAuth access token. */
2054
+ access_token?: string;
2055
+ /** Data format for response. */
2056
+ alt?: string;
2057
+ /** JSONP */
2058
+ callback?: string;
2059
+ /** Selector specifying which fields to include in a partial response. */
2060
+ fields?: string;
2061
+ /** 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. */
2062
+ key?: string;
2063
+ /** OAuth 2.0 token for the current user. */
2064
+ oauth_token?: string;
2065
+ /**
2066
+ * 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
2067
+ * 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
2068
+ * 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
2069
+ * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
2070
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2071
+ */
2072
+ "options.requestedPolicyVersion"?: number;
2073
+ /** Returns response with indentations and line breaks. */
2074
+ prettyPrint?: boolean;
2075
+ /** 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. */
2076
+ quotaUser?: string;
2077
+ /**
2078
+ * 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
2079
+ * field.
2080
+ */
2081
+ resource: string;
2082
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2083
+ upload_protocol?: string;
2084
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2085
+ uploadType?: string;
2086
+ }): Request<Policy>;
2087
+ /** Lists CaPools. */
2088
+ list(request?: {
2089
+ /** V1 error format. */
2090
+ "$.xgafv"?: string;
2091
+ /** OAuth access token. */
2092
+ access_token?: string;
2093
+ /** Data format for response. */
2094
+ alt?: string;
2095
+ /** JSONP */
2096
+ callback?: string;
2097
+ /** Selector specifying which fields to include in a partial response. */
2098
+ fields?: string;
2099
+ /** Optional. Only include resources that match the filter in the response. */
2100
+ filter?: string;
2101
+ /** 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. */
2102
+ key?: string;
2103
+ /** OAuth 2.0 token for the current user. */
2104
+ oauth_token?: string;
2105
+ /** Optional. Specify how the results should be sorted. */
2106
+ orderBy?: string;
2107
+ /**
2108
+ * Optional. Limit on the number of CaPools to include in the response. Further CaPools can subsequently be obtained by including the ListCaPoolsResponse.next_page_token in a
2109
+ * subsequent request. If unspecified, the server will pick an appropriate default.
2110
+ */
2111
+ pageSize?: number;
2112
+ /** Optional. Pagination token, returned earlier via ListCaPoolsResponse.next_page_token. */
2113
+ pageToken?: string;
2114
+ /** Required. The resource name of the location associated with the CaPools, in the format `projects/*‍/locations/*`. */
2115
+ parent: string;
2116
+ /** Returns response with indentations and line breaks. */
2117
+ prettyPrint?: boolean;
2118
+ /** 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. */
2119
+ quotaUser?: string;
2120
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2121
+ upload_protocol?: string;
2122
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2123
+ uploadType?: string;
2124
+ }): Request<ListCaPoolsResponse>;
2125
+ /** Update a CaPool. */
2126
+ patch(request: {
2127
+ /** V1 error format. */
2128
+ "$.xgafv"?: string;
2129
+ /** OAuth access token. */
2130
+ access_token?: string;
2131
+ /** Data format for response. */
2132
+ alt?: string;
2133
+ /** JSONP */
2134
+ callback?: string;
2135
+ /** Selector specifying which fields to include in a partial response. */
2136
+ fields?: string;
2137
+ /** 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. */
2138
+ key?: string;
2139
+ /** Output only. The resource name for this CaPool in the format `projects/*‍/locations/*‍/caPools/*`. */
2140
+ name: string;
2141
+ /** OAuth 2.0 token for the current user. */
2142
+ oauth_token?: string;
2143
+ /** Returns response with indentations and line breaks. */
2144
+ prettyPrint?: boolean;
2145
+ /** 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. */
2146
+ quotaUser?: string;
2147
+ /**
2148
+ * Optional. An 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
2149
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
2150
+ * 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
2151
+ * 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
2152
+ * (00000000-0000-0000-0000-000000000000).
2153
+ */
2154
+ requestId?: string;
2155
+ /** Required. A list of fields to be updated in this request. */
2156
+ updateMask?: string;
2157
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2158
+ upload_protocol?: string;
2159
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2160
+ uploadType?: string;
2161
+ /** Request body */
2162
+ resource: CaPool;
2163
+ }): Request<Operation>;
2164
+ patch(request: {
2165
+ /** V1 error format. */
2166
+ "$.xgafv"?: string;
2167
+ /** OAuth access token. */
2168
+ access_token?: string;
2169
+ /** Data format for response. */
2170
+ alt?: string;
2171
+ /** JSONP */
2172
+ callback?: string;
2173
+ /** Selector specifying which fields to include in a partial response. */
2174
+ fields?: string;
2175
+ /** 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. */
2176
+ key?: string;
2177
+ /** Output only. The resource name for this CaPool in the format `projects/*‍/locations/*‍/caPools/*`. */
2178
+ name: string;
2179
+ /** OAuth 2.0 token for the current user. */
2180
+ oauth_token?: string;
2181
+ /** Returns response with indentations and line breaks. */
2182
+ prettyPrint?: boolean;
2183
+ /** 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. */
2184
+ quotaUser?: string;
2185
+ /**
2186
+ * Optional. An 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
2187
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
2188
+ * 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
2189
+ * 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
2190
+ * (00000000-0000-0000-0000-000000000000).
2191
+ */
2192
+ requestId?: string;
2193
+ /** Required. A list of fields to be updated in this request. */
2194
+ updateMask?: string;
2195
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2196
+ upload_protocol?: string;
2197
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2198
+ uploadType?: string;
2199
+ },
2200
+ body: CaPool): Request<Operation>;
2201
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2202
+ setIamPolicy(request: {
2203
+ /** V1 error format. */
2204
+ "$.xgafv"?: string;
2205
+ /** OAuth access token. */
2206
+ access_token?: string;
2207
+ /** Data format for response. */
2208
+ alt?: string;
2209
+ /** JSONP */
2210
+ callback?: string;
2211
+ /** Selector specifying which fields to include in a partial response. */
2212
+ fields?: string;
2213
+ /** 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. */
2214
+ key?: string;
2215
+ /** OAuth 2.0 token for the current user. */
2216
+ oauth_token?: string;
2217
+ /** Returns response with indentations and line breaks. */
2218
+ prettyPrint?: boolean;
2219
+ /** 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. */
2220
+ quotaUser?: string;
2221
+ /**
2222
+ * 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
2223
+ * field.
2224
+ */
2225
+ resource: string;
2226
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2227
+ upload_protocol?: string;
2228
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2229
+ uploadType?: string;
2230
+ },
2231
+ body: SetIamPolicyRequest): Request<Policy>;
2232
+ /**
2233
+ * 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
2234
+ * 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.
2235
+ */
2236
+ testIamPermissions(request: {
2237
+ /** V1 error format. */
2238
+ "$.xgafv"?: string;
2239
+ /** OAuth access token. */
2240
+ access_token?: string;
2241
+ /** Data format for response. */
2242
+ alt?: string;
2243
+ /** JSONP */
2244
+ callback?: string;
2245
+ /** Selector specifying which fields to include in a partial response. */
2246
+ fields?: string;
2247
+ /** 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. */
2248
+ key?: string;
2249
+ /** OAuth 2.0 token for the current user. */
2250
+ oauth_token?: string;
2251
+ /** Returns response with indentations and line breaks. */
2252
+ prettyPrint?: boolean;
2253
+ /** 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. */
2254
+ quotaUser?: string;
2255
+ /**
2256
+ * 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
2257
+ * this field.
2258
+ */
2259
+ resource: string;
2260
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2261
+ upload_protocol?: string;
2262
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2263
+ uploadType?: string;
2264
+ },
2265
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2266
+ certificateAuthorities: CertificateAuthoritiesResource;
2267
+ certificates: CertificatesResource;
2268
+ }
2269
+ interface CertificateTemplatesResource {
2270
+ /** Create a new CertificateTemplate in a given Project and Location. */
2271
+ create(request: {
2272
+ /** V1 error format. */
2273
+ "$.xgafv"?: string;
2274
+ /** OAuth access token. */
2275
+ access_token?: string;
2276
+ /** Data format for response. */
2277
+ alt?: string;
2278
+ /** JSONP */
2279
+ callback?: string;
2280
+ /** Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}` */
2281
+ certificateTemplateId?: string;
2282
+ /** Selector specifying which fields to include in a partial response. */
2283
+ fields?: string;
2284
+ /** 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. */
2285
+ key?: string;
2286
+ /** OAuth 2.0 token for the current user. */
2287
+ oauth_token?: string;
2288
+ /** Required. The resource name of the location associated with the CertificateTemplate, in the format `projects/*‍/locations/*`. */
2289
+ parent: string;
2290
+ /** Returns response with indentations and line breaks. */
2291
+ prettyPrint?: boolean;
2292
+ /** 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. */
2293
+ quotaUser?: string;
2294
+ /**
2295
+ * Optional. An 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
2296
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
2297
+ * 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
2298
+ * 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
2299
+ * (00000000-0000-0000-0000-000000000000).
2300
+ */
2301
+ requestId?: string;
2302
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2303
+ upload_protocol?: string;
2304
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2305
+ uploadType?: string;
2306
+ /** Request body */
2307
+ resource: CertificateTemplate;
2308
+ }): Request<Operation>;
2309
+ create(request: {
2310
+ /** V1 error format. */
2311
+ "$.xgafv"?: string;
2312
+ /** OAuth access token. */
2313
+ access_token?: string;
2314
+ /** Data format for response. */
2315
+ alt?: string;
2316
+ /** JSONP */
2317
+ callback?: string;
2318
+ /** Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}` */
2319
+ certificateTemplateId?: string;
2320
+ /** Selector specifying which fields to include in a partial response. */
2321
+ fields?: string;
2322
+ /** 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. */
2323
+ key?: string;
2324
+ /** OAuth 2.0 token for the current user. */
2325
+ oauth_token?: string;
2326
+ /** Required. The resource name of the location associated with the CertificateTemplate, in the format `projects/*‍/locations/*`. */
2327
+ parent: string;
2328
+ /** Returns response with indentations and line breaks. */
2329
+ prettyPrint?: boolean;
2330
+ /** 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. */
2331
+ quotaUser?: string;
2332
+ /**
2333
+ * Optional. An 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
2334
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
2335
+ * 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
2336
+ * 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
2337
+ * (00000000-0000-0000-0000-000000000000).
2338
+ */
2339
+ requestId?: string;
2340
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2341
+ upload_protocol?: string;
2342
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2343
+ uploadType?: string;
2344
+ },
2345
+ body: CertificateTemplate): Request<Operation>;
2346
+ /** DeleteCertificateTemplate deletes a CertificateTemplate. */
2347
+ delete(request?: {
2348
+ /** V1 error format. */
2349
+ "$.xgafv"?: string;
2350
+ /** OAuth access token. */
2351
+ access_token?: string;
2352
+ /** Data format for response. */
2353
+ alt?: string;
2354
+ /** JSONP */
2355
+ callback?: string;
2356
+ /** Selector specifying which fields to include in a partial response. */
2357
+ fields?: string;
2358
+ /** 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. */
2359
+ key?: string;
2360
+ /** Required. The resource name for this CertificateTemplate in the format `projects/*‍/locations/*‍/certificateTemplates/*`. */
2361
+ name: string;
2362
+ /** OAuth 2.0 token for the current user. */
2363
+ oauth_token?: string;
2364
+ /** Returns response with indentations and line breaks. */
2365
+ prettyPrint?: boolean;
2366
+ /** 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. */
2367
+ quotaUser?: string;
2368
+ /**
2369
+ * Optional. An 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
2370
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
2371
+ * 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
2372
+ * 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
2373
+ * (00000000-0000-0000-0000-000000000000).
2374
+ */
2375
+ requestId?: string;
2376
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2377
+ upload_protocol?: string;
2378
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2379
+ uploadType?: string;
2380
+ }): Request<Operation>;
2381
+ /** Returns a CertificateTemplate. */
2382
+ get(request?: {
2383
+ /** V1 error format. */
2384
+ "$.xgafv"?: string;
2385
+ /** OAuth access token. */
2386
+ access_token?: string;
2387
+ /** Data format for response. */
2388
+ alt?: string;
2389
+ /** JSONP */
2390
+ callback?: string;
2391
+ /** Selector specifying which fields to include in a partial response. */
2392
+ fields?: string;
2393
+ /** 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. */
2394
+ key?: string;
2395
+ /** Required. The name of the CertificateTemplate to get. */
2396
+ name: string;
2397
+ /** OAuth 2.0 token for the current user. */
2398
+ oauth_token?: string;
2399
+ /** Returns response with indentations and line breaks. */
2400
+ prettyPrint?: boolean;
2401
+ /** 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. */
2402
+ quotaUser?: string;
2403
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2404
+ upload_protocol?: string;
2405
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2406
+ uploadType?: string;
2407
+ }): Request<CertificateTemplate>;
2408
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
2409
+ getIamPolicy(request?: {
2410
+ /** V1 error format. */
2411
+ "$.xgafv"?: string;
2412
+ /** OAuth access token. */
2413
+ access_token?: string;
2414
+ /** Data format for response. */
2415
+ alt?: string;
2416
+ /** JSONP */
2417
+ callback?: string;
2418
+ /** Selector specifying which fields to include in a partial response. */
2419
+ fields?: string;
2420
+ /** 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. */
2421
+ key?: string;
2422
+ /** OAuth 2.0 token for the current user. */
2423
+ oauth_token?: string;
2424
+ /**
2425
+ * 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
2426
+ * 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
2427
+ * 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
2428
+ * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
2429
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2430
+ */
2431
+ "options.requestedPolicyVersion"?: number;
2432
+ /** Returns response with indentations and line breaks. */
2433
+ prettyPrint?: boolean;
2434
+ /** 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. */
2435
+ quotaUser?: string;
2436
+ /**
2437
+ * 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
2438
+ * field.
2439
+ */
2440
+ resource: string;
2441
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2442
+ upload_protocol?: string;
2443
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2444
+ uploadType?: string;
2445
+ }): Request<Policy>;
2446
+ /** Lists CertificateTemplates. */
2447
+ list(request?: {
2448
+ /** V1 error format. */
2449
+ "$.xgafv"?: string;
2450
+ /** OAuth access token. */
2451
+ access_token?: string;
2452
+ /** Data format for response. */
2453
+ alt?: string;
2454
+ /** JSONP */
2455
+ callback?: string;
2456
+ /** Selector specifying which fields to include in a partial response. */
2457
+ fields?: string;
2458
+ /** Optional. Only include resources that match the filter in the response. */
2459
+ filter?: string;
2460
+ /** 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. */
2461
+ key?: string;
2462
+ /** OAuth 2.0 token for the current user. */
2463
+ oauth_token?: string;
2464
+ /** Optional. Specify how the results should be sorted. */
2465
+ orderBy?: string;
2466
+ /**
2467
+ * Optional. Limit on the number of CertificateTemplates to include in the response. Further CertificateTemplates can subsequently be obtained by including the
2468
+ * ListCertificateTemplatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
2469
+ */
2470
+ pageSize?: number;
2471
+ /** Optional. Pagination token, returned earlier via ListCertificateTemplatesResponse.next_page_token. */
2472
+ pageToken?: string;
2473
+ /** Required. The resource name of the location associated with the CertificateTemplates, in the format `projects/*‍/locations/*`. */
2474
+ parent: string;
2475
+ /** Returns response with indentations and line breaks. */
2476
+ prettyPrint?: boolean;
2477
+ /** 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. */
2478
+ quotaUser?: string;
2479
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2480
+ upload_protocol?: string;
2481
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2482
+ uploadType?: string;
2483
+ }): Request<ListCertificateTemplatesResponse>;
2484
+ /** Update a CertificateTemplate. */
2485
+ patch(request: {
2486
+ /** V1 error format. */
2487
+ "$.xgafv"?: string;
2488
+ /** OAuth access token. */
2489
+ access_token?: string;
2490
+ /** Data format for response. */
2491
+ alt?: string;
2492
+ /** JSONP */
2493
+ callback?: string;
2494
+ /** Selector specifying which fields to include in a partial response. */
2495
+ fields?: string;
2496
+ /** 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. */
2497
+ key?: string;
2498
+ /** Output only. The resource name for this CertificateTemplate in the format `projects/*‍/locations/*‍/certificateTemplates/*`. */
2499
+ name: string;
2500
+ /** OAuth 2.0 token for the current user. */
2501
+ oauth_token?: string;
2502
+ /** Returns response with indentations and line breaks. */
2503
+ prettyPrint?: boolean;
2504
+ /** 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. */
2505
+ quotaUser?: string;
2506
+ /**
2507
+ * Optional. An 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
2508
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
2509
+ * 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
2510
+ * 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
2511
+ * (00000000-0000-0000-0000-000000000000).
2512
+ */
2513
+ requestId?: string;
2514
+ /** Required. A list of fields to be updated in this request. */
2515
+ updateMask?: string;
2516
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2517
+ upload_protocol?: string;
2518
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2519
+ uploadType?: string;
2520
+ /** Request body */
2521
+ resource: CertificateTemplate;
2522
+ }): Request<Operation>;
2523
+ patch(request: {
2524
+ /** V1 error format. */
2525
+ "$.xgafv"?: string;
2526
+ /** OAuth access token. */
2527
+ access_token?: string;
2528
+ /** Data format for response. */
2529
+ alt?: string;
2530
+ /** JSONP */
2531
+ callback?: string;
2532
+ /** Selector specifying which fields to include in a partial response. */
2533
+ fields?: string;
2534
+ /** 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. */
2535
+ key?: string;
2536
+ /** Output only. The resource name for this CertificateTemplate in the format `projects/*‍/locations/*‍/certificateTemplates/*`. */
2537
+ name: string;
2538
+ /** OAuth 2.0 token for the current user. */
2539
+ oauth_token?: string;
2540
+ /** Returns response with indentations and line breaks. */
2541
+ prettyPrint?: boolean;
2542
+ /** 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. */
2543
+ quotaUser?: string;
2544
+ /**
2545
+ * Optional. An 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
2546
+ * completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request
2547
+ * 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
2548
+ * 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
2549
+ * (00000000-0000-0000-0000-000000000000).
2550
+ */
2551
+ requestId?: string;
2552
+ /** Required. A list of fields to be updated in this request. */
2553
+ updateMask?: string;
2554
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2555
+ upload_protocol?: string;
2556
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2557
+ uploadType?: string;
2558
+ },
2559
+ body: CertificateTemplate): Request<Operation>;
2560
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2561
+ setIamPolicy(request: {
2562
+ /** V1 error format. */
2563
+ "$.xgafv"?: string;
2564
+ /** OAuth access token. */
2565
+ access_token?: string;
2566
+ /** Data format for response. */
2567
+ alt?: string;
2568
+ /** JSONP */
2569
+ callback?: string;
2570
+ /** Selector specifying which fields to include in a partial response. */
2571
+ fields?: string;
2572
+ /** 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. */
2573
+ key?: string;
2574
+ /** OAuth 2.0 token for the current user. */
2575
+ oauth_token?: string;
2576
+ /** Returns response with indentations and line breaks. */
2577
+ prettyPrint?: boolean;
2578
+ /** 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. */
2579
+ quotaUser?: string;
2580
+ /**
2581
+ * 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
2582
+ * field.
2583
+ */
2584
+ resource: string;
2585
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2586
+ upload_protocol?: string;
2587
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2588
+ uploadType?: string;
2589
+ },
2590
+ body: SetIamPolicyRequest): Request<Policy>;
2591
+ /**
2592
+ * 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
2593
+ * 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.
2594
+ */
2595
+ testIamPermissions(request: {
2596
+ /** V1 error format. */
2597
+ "$.xgafv"?: string;
2598
+ /** OAuth access token. */
2599
+ access_token?: string;
2600
+ /** Data format for response. */
2601
+ alt?: string;
2602
+ /** JSONP */
2603
+ callback?: string;
2604
+ /** Selector specifying which fields to include in a partial response. */
2605
+ fields?: string;
2606
+ /** 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. */
2607
+ key?: string;
2608
+ /** OAuth 2.0 token for the current user. */
2609
+ oauth_token?: string;
2610
+ /** Returns response with indentations and line breaks. */
2611
+ prettyPrint?: boolean;
2612
+ /** 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. */
2613
+ quotaUser?: string;
2614
+ /**
2615
+ * 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
2616
+ * this field.
2617
+ */
2618
+ resource: string;
2619
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2620
+ upload_protocol?: string;
2621
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2622
+ uploadType?: string;
2623
+ },
2624
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2625
+ }
2626
+ interface OperationsResource {
2627
+ /**
2628
+ * 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
2629
+ * 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
2630
+ * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
2631
+ * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
2632
+ */
2633
+ cancel(request: {
2634
+ /** V1 error format. */
2635
+ "$.xgafv"?: string;
2636
+ /** OAuth access token. */
2637
+ access_token?: string;
2638
+ /** Data format for response. */
2639
+ alt?: string;
2640
+ /** JSONP */
2641
+ callback?: string;
2642
+ /** Selector specifying which fields to include in a partial response. */
2643
+ fields?: string;
2644
+ /** 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. */
2645
+ key?: string;
2646
+ /** The name of the operation resource to be cancelled. */
2647
+ name: string;
2648
+ /** OAuth 2.0 token for the current user. */
2649
+ oauth_token?: string;
2650
+ /** Returns response with indentations and line breaks. */
2651
+ prettyPrint?: boolean;
2652
+ /** 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. */
2653
+ quotaUser?: string;
2654
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2655
+ upload_protocol?: string;
2656
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2657
+ uploadType?: string;
2658
+ /** Request body */
2659
+ resource: CancelOperationRequest;
2660
+ }): Request<{}>;
2661
+ cancel(request: {
2662
+ /** V1 error format. */
2663
+ "$.xgafv"?: string;
2664
+ /** OAuth access token. */
2665
+ access_token?: string;
2666
+ /** Data format for response. */
2667
+ alt?: string;
2668
+ /** JSONP */
2669
+ callback?: string;
2670
+ /** Selector specifying which fields to include in a partial response. */
2671
+ fields?: string;
2672
+ /** 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. */
2673
+ key?: string;
2674
+ /** The name of the operation resource to be cancelled. */
2675
+ name: string;
2676
+ /** OAuth 2.0 token for the current user. */
2677
+ oauth_token?: string;
2678
+ /** Returns response with indentations and line breaks. */
2679
+ prettyPrint?: boolean;
2680
+ /** 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. */
2681
+ quotaUser?: string;
2682
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2683
+ upload_protocol?: string;
2684
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2685
+ uploadType?: string;
2686
+ },
2687
+ body: CancelOperationRequest): Request<{}>;
2688
+ /**
2689
+ * 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
2690
+ * support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2691
+ */
2692
+ delete(request?: {
2693
+ /** V1 error format. */
2694
+ "$.xgafv"?: string;
2695
+ /** OAuth access token. */
2696
+ access_token?: string;
2697
+ /** Data format for response. */
2698
+ alt?: string;
2699
+ /** JSONP */
2700
+ callback?: string;
2701
+ /** Selector specifying which fields to include in a partial response. */
2702
+ fields?: string;
2703
+ /** 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. */
2704
+ key?: string;
2705
+ /** The name of the operation resource to be deleted. */
2706
+ name: string;
2707
+ /** OAuth 2.0 token for the current user. */
2708
+ oauth_token?: string;
2709
+ /** Returns response with indentations and line breaks. */
2710
+ prettyPrint?: boolean;
2711
+ /** 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. */
2712
+ quotaUser?: string;
2713
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2714
+ upload_protocol?: string;
2715
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2716
+ uploadType?: string;
2717
+ }): Request<{}>;
2718
+ /** 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. */
2719
+ get(request?: {
2720
+ /** V1 error format. */
2721
+ "$.xgafv"?: string;
2722
+ /** OAuth access token. */
2723
+ access_token?: string;
2724
+ /** Data format for response. */
2725
+ alt?: string;
2726
+ /** JSONP */
2727
+ callback?: string;
2728
+ /** Selector specifying which fields to include in a partial response. */
2729
+ fields?: string;
2730
+ /** 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. */
2731
+ key?: string;
2732
+ /** The name of the operation resource. */
2733
+ name: string;
2734
+ /** OAuth 2.0 token for the current user. */
2735
+ oauth_token?: string;
2736
+ /** Returns response with indentations and line breaks. */
2737
+ prettyPrint?: boolean;
2738
+ /** 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. */
2739
+ quotaUser?: string;
2740
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2741
+ upload_protocol?: string;
2742
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2743
+ uploadType?: string;
2744
+ }): Request<Operation>;
2745
+ /**
2746
+ * 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
2747
+ * 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
2748
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
2749
+ * ensure the name binding is the parent resource, without the operations collection id.
2750
+ */
2751
+ list(request?: {
2752
+ /** V1 error format. */
2753
+ "$.xgafv"?: string;
2754
+ /** OAuth access token. */
2755
+ access_token?: string;
2756
+ /** Data format for response. */
2757
+ alt?: string;
2758
+ /** JSONP */
2759
+ callback?: string;
2760
+ /** Selector specifying which fields to include in a partial response. */
2761
+ fields?: string;
2762
+ /** The standard list filter. */
2763
+ filter?: string;
2764
+ /** 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. */
2765
+ key?: string;
2766
+ /** The name of the operation's parent resource. */
2767
+ name: string;
2768
+ /** OAuth 2.0 token for the current user. */
2769
+ oauth_token?: string;
2770
+ /** The standard list page size. */
2771
+ pageSize?: number;
2772
+ /** The standard list page token. */
2773
+ pageToken?: string;
2774
+ /** Returns response with indentations and line breaks. */
2775
+ prettyPrint?: boolean;
2776
+ /** 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. */
2777
+ quotaUser?: string;
2778
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2779
+ upload_protocol?: string;
2780
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2781
+ uploadType?: string;
2782
+ }): Request<ListOperationsResponse>;
2783
+ }
2784
+ interface LocationsResource {
2785
+ /** Gets information about a location. */
2786
+ get(request?: {
2787
+ /** V1 error format. */
2788
+ "$.xgafv"?: string;
2789
+ /** OAuth access token. */
2790
+ access_token?: string;
2791
+ /** Data format for response. */
2792
+ alt?: string;
2793
+ /** JSONP */
2794
+ callback?: string;
2795
+ /** Selector specifying which fields to include in a partial response. */
2796
+ fields?: string;
2797
+ /** 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. */
2798
+ key?: string;
2799
+ /** Resource name for the location. */
2800
+ name: string;
2801
+ /** OAuth 2.0 token for the current user. */
2802
+ oauth_token?: string;
2803
+ /** Returns response with indentations and line breaks. */
2804
+ prettyPrint?: boolean;
2805
+ /** 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. */
2806
+ quotaUser?: string;
2807
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2808
+ upload_protocol?: string;
2809
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2810
+ uploadType?: string;
2811
+ }): Request<Location>;
2812
+ /** Lists information about the supported locations for this service. */
2813
+ list(request?: {
2814
+ /** V1 error format. */
2815
+ "$.xgafv"?: string;
2816
+ /** OAuth access token. */
2817
+ access_token?: string;
2818
+ /** Data format for response. */
2819
+ alt?: string;
2820
+ /** JSONP */
2821
+ callback?: string;
2822
+ /** Selector specifying which fields to include in a partial response. */
2823
+ fields?: string;
2824
+ /**
2825
+ * 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
2826
+ * [AIP-160](https://google.aip.dev/160).
2827
+ */
2828
+ filter?: string;
2829
+ /** 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. */
2830
+ key?: string;
2831
+ /** The resource that owns the locations collection, if applicable. */
2832
+ name: string;
2833
+ /** OAuth 2.0 token for the current user. */
2834
+ oauth_token?: string;
2835
+ /** The maximum number of results to return. If not set, the service selects a default. */
2836
+ pageSize?: number;
2837
+ /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
2838
+ pageToken?: string;
2839
+ /** Returns response with indentations and line breaks. */
2840
+ prettyPrint?: boolean;
2841
+ /** 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. */
2842
+ quotaUser?: string;
2843
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2844
+ upload_protocol?: string;
2845
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2846
+ uploadType?: string;
2847
+ }): Request<ListLocationsResponse>;
2848
+ caPools: CaPoolsResource;
2849
+ certificateTemplates: CertificateTemplatesResource;
2850
+ operations: OperationsResource;
2851
+ }
2852
+ interface ProjectsResource {
2853
+ locations: LocationsResource;
2854
+ }
2855
+
2856
+ const projects: ProjectsResource;
2857
+ }
2858
+ }