googleapis
Version:
Google APIs Client Library for Node.js
904 lines • 225 kB
TypeScript
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace privateca_v1beta1 {
export interface Options extends GlobalOptions {
version: 'v1beta1';
}
interface StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
/**
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* 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.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* 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.
*/
quotaUser?: string;
/**
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
upload_protocol?: string;
}
/**
* Certificate Authority API
*
* The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys."
*
* @example
* ```js
* const {google} = require('googleapis');
* const privateca = google.privateca('v1beta1');
* ```
*/
export class Privateca {
context: APIRequestContext;
projects: Resource$Projects;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* URLs where a CertificateAuthority will publish content.
*/
export interface Schema$AccessUrls {
/**
* The URL where this CertificateAuthority's CA certificate is published. This will only be set for CAs that have been activated.
*/
caCertificateAccessUrl?: string | null;
/**
* The URL where this CertificateAuthority's CRLs are published. This will only be set for CAs that have been activated.
*/
crlAccessUrl?: string | null;
}
/**
* Request message for CertificateAuthorityService.ActivateCertificateAuthority.
*/
export interface Schema$ActivateCertificateAuthorityRequest {
/**
* Required. The signed CA certificate issued from FetchCertificateAuthorityCsrResponse.pem_csr.
*/
pemCaCertificate?: string | null;
/**
* 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 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 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 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 (00000000-0000-0000-0000-000000000000).
*/
requestId?: string | null;
/**
* Required. Must include information about the issuer of 'pem_ca_certificate', and any further issuers until the self-signed CA.
*/
subordinateConfig?: Schema$SubordinateConfig;
}
export interface Schema$AllowedConfigList {
/**
* Required. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper. If a ReusableConfigWrapper has an empty field, any value will be allowed for that field.
*/
allowedConfigValues?: Schema$ReusableConfigWrapper[];
}
/**
* AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates.
*/
export interface Schema$AllowedSubjectAltNames {
/**
* Optional. Specifies if to allow custom X509Extension values.
*/
allowCustomSans?: boolean | null;
/**
* Optional. Contains valid, fully-qualified host names. Glob patterns are also supported. To allow an explicit wildcard certificate, escape with backlash (i.e. "\*"). E.g. for globbed entries: '*bar.com' will allow 'foo.bar.com', but not '*.bar.com', unless the allow_globbing_dns_wildcards field is set. E.g. for wildcard entries: '\*.bar.com' will allow '*.bar.com', but not 'foo.bar.com'.
*/
allowedDnsNames?: string[] | null;
/**
* Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also supported.
*/
allowedEmailAddresses?: string[] | null;
/**
* Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6 addresses and subnet ranges. Subnet ranges are specified using the '/' notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns are supported only for ip address entries (i.e. not for subnet ranges).
*/
allowedIps?: string[] | null;
/**
* Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To match across path seperators (i.e. '/') use the double star glob pattern (i.e. '**').
*/
allowedUris?: string[] | null;
/**
* Optional. Specifies if glob patterns used for allowed_dns_names allow wildcard certificates. If this is set, certificate requests with wildcard domains will be permitted to match a glob pattern specified in allowed_dns_names. Otherwise, certificate requests with wildcard domains will be permitted only if allowed_dns_names contains a literal wildcard.
*/
allowGlobbingDnsWildcards?: boolean | null;
}
/**
* Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
*/
export interface Schema$AuditConfig {
/**
* The configuration for logging of each type of permission.
*/
auditLogConfigs?: Schema$AuditLogConfig[];
/**
* 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 services.
*/
service?: string | null;
}
/**
* Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \} ] \} This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
*/
export interface Schema$AuditLogConfig {
/**
* Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
*/
exemptedMembers?: string[] | null;
/**
* The log type that this config enables.
*/
logType?: string | null;
}
/**
* Associates `members` with a `role`.
*/
export interface Schema$Binding {
/**
* 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`, 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 members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
*/
condition?: Schema$Expr;
/**
* Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on 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 account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `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. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service 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 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 the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
*/
members?: string[] | null;
/**
* Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
*/
role?: string | null;
}
/**
* The request message for Operations.CancelOperation.
*/
export interface Schema$CancelOperationRequest {
}
/**
* Describes values that are relevant in a CA certificate.
*/
export interface Schema$CaOptions {
/**
* 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.
*/
isCa?: boolean | null;
/**
* 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 is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the CA certificate.
*/
maxIssuerPathLength?: number | null;
}
/**
* A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority.
*/
export interface Schema$Certificate {
/**
* Output only. A structured description of the issued X.509 certificate.
*/
certificateDescription?: Schema$CertificateDescription;
/**
* Immutable. A description of the certificate and key that does not require X.509 or ASN.1.
*/
config?: Schema$CertificateConfig;
/**
* Output only. The time at which this Certificate was created.
*/
createTime?: string | null;
/**
* Optional. Labels with user-defined metadata.
*/
labels?: {
[key: string]: string;
} | null;
/**
* 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 be truncated if it would extend past the life of any certificate authority in the issuing chain.
*/
lifetime?: string | null;
/**
* Output only. The resource path for this Certificate in the format `projects/x/locations/x/certificateAuthorities/x/certificates/x`.
*/
name?: string | null;
/**
* Output only. The pem-encoded, signed X.509 certificate.
*/
pemCertificate?: string | null;
/**
* 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.
*/
pemCertificateChain?: string[] | null;
/**
* Immutable. A pem-encoded X.509 certificate signing request (CSR).
*/
pemCsr?: string | null;
/**
* Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present.
*/
revocationDetails?: Schema$RevocationDetails;
/**
* Output only. The time at which this Certificate was updated.
*/
updateTime?: string | null;
}
/**
* A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates.
*/
export interface Schema$CertificateAuthority {
/**
* Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.
*/
accessUrls?: Schema$AccessUrls;
/**
* Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root.
*/
caCertificateDescriptions?: Schema$CertificateDescription[];
/**
* Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority.
*/
certificatePolicy?: Schema$CertificateAuthorityPolicy;
/**
* Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
*/
config?: Schema$CertificateConfig;
/**
* Output only. The time at which this CertificateAuthority was created.
*/
createTime?: string | null;
/**
* Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion.
*/
deleteTime?: string | null;
/**
* 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 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 bucket will be created.
*/
gcsBucket?: string | null;
/**
* Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority.
*/
issuingOptions?: Schema$IssuingOptions;
/**
* Required. Immutable. Used when issuing certificates for this CertificateAuthority. If this CertificateAuthority is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.
*/
keySpec?: Schema$KeyVersionSpec;
/**
* Optional. Labels with user-defined metadata.
*/
labels?: {
[key: string]: string;
} | null;
/**
* Required. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.
*/
lifetime?: string | null;
/**
* Output only. The resource name for this CertificateAuthority in the format `projects/x/locations/x/certificateAuthorities/x`.
*/
name?: string | null;
/**
* Output only. This CertificateAuthority's certificate chain, including the current CertificateAuthority's certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current CertificateAuthority's certificate.
*/
pemCaCertificates?: string[] | null;
/**
* Output only. The State for this CertificateAuthority.
*/
state?: string | null;
/**
* 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 CertificateAuthority must continue to validate.
*/
subordinateConfig?: Schema$SubordinateConfig;
/**
* Required. Immutable. The Tier of this CertificateAuthority.
*/
tier?: string | null;
/**
* Required. Immutable. The Type of this CertificateAuthority.
*/
type?: string | null;
/**
* Output only. The time at which this CertificateAuthority was updated.
*/
updateTime?: string | null;
}
/**
* The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy.
*/
export interface Schema$CertificateAuthorityPolicy {
/**
* Optional. If any value is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed value. If no value is specified, all values will be allowed for this fied. Glob patterns are also supported.
*/
allowedCommonNames?: string[] | null;
/**
* Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list.
*/
allowedConfigList?: Schema$AllowedConfigList;
/**
* Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates.
*/
allowedIssuanceModes?: Schema$IssuanceModes;
/**
* Optional. If any Subject is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed Subject. If a Subject has an empty field, any value will be allowed for that field.
*/
allowedLocationsAndOrganizations?: Schema$Subject[];
/**
* Optional. If a AllowedSubjectAltNames is specified here, then all Certificates issued by the CertificateAuthority must match AllowedSubjectAltNames. If no value or an empty value is specified, any value will be allowed for the SubjectAltNames field.
*/
allowedSans?: Schema$AllowedSubjectAltNames;
/**
* Optional. The maximum lifetime allowed by the CertificateAuthority. Note that if the any part if the issuing chain expires before a Certificate's requested maximum_lifetime, the effective lifetime will be explicitly truncated.
*/
maximumLifetime?: string | null;
/**
* Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values.
*/
overwriteConfigValues?: Schema$ReusableConfigWrapper;
}
/**
* A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.
*/
export interface Schema$CertificateConfig {
/**
* 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 CertificateAuthority CSR.
*/
publicKey?: Schema$PublicKey;
/**
* Required. Describes how some of the technical fields in a certificate should be populated.
*/
reusableConfig?: Schema$ReusableConfigWrapper;
/**
* Required. Specifies some of the values in a certificate that are related to the subject.
*/
subjectConfig?: Schema$SubjectConfig;
}
/**
* A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509.
*/
export interface Schema$CertificateDescription {
/**
* Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate.
*/
aiaIssuingCertificateUrls?: string[] | null;
/**
* Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1
*/
authorityKeyId?: Schema$KeyId;
/**
* The hash of the x.509 certificate.
*/
certFingerprint?: Schema$CertificateFingerprint;
/**
* Describes some of the technical fields in a certificate.
*/
configValues?: Schema$ReusableConfigValues;
/**
* 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
*/
crlDistributionPoints?: string[] | null;
/**
* The public key that corresponds to an issued certificate.
*/
publicKey?: Schema$PublicKey;
/**
* Describes some of the values in a certificate that are related to the subject and lifetime.
*/
subjectDescription?: Schema$SubjectDescription;
/**
* Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
*/
subjectKeyId?: Schema$KeyId;
}
/**
* A group of fingerprints for the x509 certificate.
*/
export interface Schema$CertificateFingerprint {
/**
* The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
*/
sha256Hash?: string | null;
}
/**
* A CertificateRevocationList corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.
*/
export interface Schema$CertificateRevocationList {
/**
* Output only. The location where 'pem_crl' can be accessed.
*/
accessUrl?: string | null;
/**
* Output only. The time at which this CertificateRevocationList was created.
*/
createTime?: string | null;
/**
* Optional. Labels with user-defined metadata.
*/
labels?: {
[key: string]: string;
} | null;
/**
* Output only. The resource path for this CertificateRevocationList in the format `projects/x/locations/x/certificateAuthorities/x/ certificateRevocationLists/x`.
*/
name?: string | null;
/**
* Output only. The PEM-encoded X.509 CRL.
*/
pemCrl?: string | null;
/**
* Output only. The revoked serial numbers that appear in pem_crl.
*/
revokedCertificates?: Schema$RevokedCertificate[];
/**
* Output only. The CRL sequence number that appears in pem_crl.
*/
sequenceNumber?: string | null;
/**
* Output only. The State for this CertificateRevocationList.
*/
state?: string | null;
/**
* Output only. The time at which this CertificateRevocationList was updated.
*/
updateTime?: string | null;
}
/**
* Request message for CertificateAuthorityService.DisableCertificateAuthority.
*/
export interface Schema$DisableCertificateAuthorityRequest {
/**
* 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 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 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 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 (00000000-0000-0000-0000-000000000000).
*/
requestId?: string | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
*/
export interface Schema$Empty {
}
/**
* Request message for CertificateAuthorityService.EnableCertificateAuthority.
*/
export interface Schema$EnableCertificateAuthorityRequest {
/**
* 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 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 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 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 (00000000-0000-0000-0000-000000000000).
*/
requestId?: string | null;
}
/**
* Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
*/
export interface Schema$Expr {
/**
* Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
*/
description?: string | null;
/**
* Textual representation of an expression in Common Expression Language syntax.
*/
expression?: string | null;
/**
* Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
*/
location?: string | null;
/**
* 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.
*/
title?: string | null;
}
/**
* KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value.
*/
export interface Schema$ExtendedKeyUsageOptions {
/**
* 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.
*/
clientAuth?: boolean | null;
/**
* Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication".
*/
codeSigning?: boolean | null;
/**
* Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection".
*/
emailProtection?: boolean | null;
/**
* Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses".
*/
ocspSigning?: boolean | null;
/**
* 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.
*/
serverAuth?: boolean | null;
/**
* Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time".
*/
timeStamping?: boolean | null;
}
/**
* Response message for CertificateAuthorityService.FetchCertificateAuthorityCsr.
*/
export interface Schema$FetchCertificateAuthorityCsrResponse {
/**
* Output only. The PEM-encoded signed certificate signing request (CSR).
*/
pemCsr?: string | null;
}
/**
* IssuanceModes specifies the allowed ways in which Certificates may be requested from this CertificateAuthority.
*/
export interface Schema$IssuanceModes {
/**
* Required. When true, allows callers to create Certificates by specifying a CertificateConfig.
*/
allowConfigBasedIssuance?: boolean | null;
/**
* Required. When true, allows callers to create Certificates by specifying a CSR.
*/
allowCsrBasedIssuance?: boolean | null;
}
/**
* Options that affect all certificates issued by a CertificateAuthority.
*/
export interface Schema$IssuingOptions {
/**
* Required. When true, includes a URL to the issuing CA certificate in the "authority information access" X.509 extension.
*/
includeCaCertUrl?: boolean | null;
/**
* Required. When true, includes a URL to the CRL corresponding to certificates issued from a CertificateAuthority. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.
*/
includeCrlAccessUrl?: boolean | null;
}
/**
* A KeyId identifies a specific public key, usually by hashing the public key.
*/
export interface Schema$KeyId {
/**
* Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key.
*/
keyId?: string | null;
}
/**
* A KeyUsage describes key usage values that may appear in an X.509 certificate.
*/
export interface Schema$KeyUsage {
/**
* Describes high-level ways in which a key may be used.
*/
baseKeyUsage?: Schema$KeyUsageOptions;
/**
* Detailed scenarios in which a key may be used.
*/
extendedKeyUsage?: Schema$ExtendedKeyUsageOptions;
/**
* Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
*/
unknownExtendedKeyUsages?: Schema$ObjectId[];
}
/**
* KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
*/
export interface Schema$KeyUsageOptions {
/**
* The key may be used to sign certificates.
*/
certSign?: boolean | null;
/**
* The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".
*/
contentCommitment?: boolean | null;
/**
* The key may be used sign certificate revocation lists.
*/
crlSign?: boolean | null;
/**
* The key may be used to encipher data.
*/
dataEncipherment?: boolean | null;
/**
* The key may be used to decipher only.
*/
decipherOnly?: boolean | null;
/**
* The key may be used for digital signatures.
*/
digitalSignature?: boolean | null;
/**
* The key may be used to encipher only.
*/
encipherOnly?: boolean | null;
/**
* The key may be used in a key agreement protocol.
*/
keyAgreement?: boolean | null;
/**
* The key may be used to encipher other keys.
*/
keyEncipherment?: boolean | null;
}
/**
* A Cloud KMS key configuration that a CertificateAuthority will use.
*/
export interface Schema$KeyVersionSpec {
/**
* Required. 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`.
*/
algorithm?: string | null;
/**
* Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/x/locations/x/keyRings/x/cryptoKeys/x/cryptoKeyVersions/x`. This option enables full flexibility in the key's capabilities and properties.
*/
cloudKmsKeyVersion?: string | null;
}
/**
* Response message for CertificateAuthorityService.ListCertificateAuthorities.
*/
export interface Schema$ListCertificateAuthoritiesResponse {
/**
* The list of CertificateAuthorities.
*/
certificateAuthorities?: Schema$CertificateAuthority[];
/**
* A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of results.
*/
nextPageToken?: string | null;
/**
* A list of locations (e.g. "us-west1") that could not be reached.
*/
unreachable?: string[] | null;
}
/**
* Response message for CertificateAuthorityService.ListCertificateRevocationLists.
*/
export interface Schema$ListCertificateRevocationListsResponse {
/**
* The list of CertificateRevocationLists.
*/
certificateRevocationLists?: Schema$CertificateRevocationList[];
/**
* A token to retrieve next page of results. Pass this value in ListCertificateRevocationListsRequest.next_page_token to retrieve the next page of results.
*/
nextPageToken?: string | null;
/**
* A list of locations (e.g. "us-west1") that could not be reached.
*/
unreachable?: string[] | null;
}
/**
* Response message for CertificateAuthorityService.ListCertificates.
*/
export interface Schema$ListCertificatesResponse {
/**
* The list of Certificates.
*/
certificates?: Schema$Certificate[];
/**
* A token to retrieve next page of results. Pass this value in ListCertificatesRequest.next_page_token to retrieve the next page of results.
*/
nextPageToken?: string | null;
/**
* A list of locations (e.g. "us-west1") that could not be reached.
*/
unreachable?: string[] | null;
}
/**
* The response message for Locations.ListLocations.
*/
export interface Schema$ListLocationsResponse {
/**
* A list of locations that matches the specified filter in the request.
*/
locations?: Schema$Location[];
/**
* The standard List next-page token.
*/
nextPageToken?: string | null;
}
/**
* The response message for Operations.ListOperations.
*/
export interface Schema$ListOperationsResponse {
/**
* The standard List next-page token.
*/
nextPageToken?: string | null;
/**
* A list of operations that matches the specified filter in the request.
*/
operations?: Schema$Operation[];
}
/**
* Response message for CertificateAuthorityService.ListReusableConfigs.
*/
export interface Schema$ListReusableConfigsResponse {
/**
* A token to retrieve next page of results. Pass this value in ListReusableConfigsRequest.next_page_token to retrieve the next page of results.
*/
nextPageToken?: string | null;
/**
* The list of ReusableConfigs.
*/
reusableConfigs?: Schema$ReusableConfig[];
/**
* A list of locations (e.g. "us-west1") that could not be reached.
*/
unreachable?: string[] | null;
}
/**
* A resource that represents Google Cloud Platform location.
*/
export interface Schema$Location {
/**
* The friendly name for this location, typically a nearby city name. For example, "Tokyo".
*/
displayName?: string | null;
/**
* Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"\}
*/
labels?: {
[key: string]: string;
} | null;
/**
* The canonical id for this location. For example: `"us-east1"`.
*/
locationId?: string | null;
/**
* Service-specific metadata. For example the available capacity at the given location.
*/
metadata?: {
[key: string]: any;
} | null;
/**
* Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
*/
name?: string | null;
}
/**
* An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
*/
export interface Schema$ObjectId {
/**
* Required. The parts of an OID path. The most significant parts of the path come first.
*/
objectIdPath?: number[] | null;
}
/**
* This resource represents a long-running operation that is the result of a network API call.
*/
export interface Schema$Operation {
/**
* 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.
*/
done?: boolean | null;
/**
* The error result of the operation in case of failure or cancellation.
*/
error?: Schema$Status;
/**
* 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 metadata. Any method that returns a long-running operation should document the metadata type, if any.
*/
metadata?: {
[key: string]: any;
} | null;
/**
* 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 with `operations/{unique_id\}`.
*/
name?: string | null;
/**
* 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 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 original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*/
response?: {
[key: string]: any;
} | null;
}
/**
* Represents the metadata of the long-running operation.
*/
export interface Schema$OperationMetadata {
/**
* Output only. API version used to start the operation.
*/
apiVersion?: string | null;
/**
* Output only. The time the operation was created.
*/
createTime?: string | null;
/**
* Output only. The time the operation finished running.
*/
endTime?: string | null;
/**
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
*/
requestedCancellation?: boolean | null;
/**
* Output only. Human-readable status of the operation, if any.
*/
statusMessage?: string | null;
/**
* Output only. Server-defined resource path for the target of the operation.
*/
target?: string | null;
/**
* Output only. Name of the verb executed by the operation.
*/
verb?: string | null;
}
/**
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
*/
export interface Schema$Policy {
/**
* Specifies cloud audit logging configuration for this policy.
*/
auditConfigs?: Schema$AuditConfig[];
/**
* Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
*/
bindings?: Schema$Binding[];
/**
* `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 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 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 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` policy, and all of the conditions in the version `3` policy are lost.
*/
etag?: string | null;
/**
* 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 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 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 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` 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 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).
*/
version?: number | null;
}
/**
* A PublicKey describes a public key.
*/
export interface Schema$PublicKey {
/**
* Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key.
*/
key?: string | null;
/**
* Optional. The type of public key. If specified, it must match the public key used for the`key` field.
*/
type?: string | null;
}
/**
* Operation metadata returned by the CLH during resource state reconciliation.
*/
export interface Schema$ReconciliationOperationMetadata {
/**
* If set to TRUE, the resource has to be deleted. When using this bit, the CLH should fail the operation.
*/
deleteResource?: boolean | null;
}
/**
* Request message for CertificateAuthorityService.RestoreCertificateAuthority.
*/
export interface Schema$RestoreCertificateAuthorityRequest {
/**
* 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 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 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 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 (00000000-0000-0000-0000-000000000000).
*/
requestId?: string | null;
}
/**
* A ReusableConfig refers to a managed ReusableConfigValues. Those, in turn, are used to describe c