1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="privateca_v1beta1.html">Certificate Authority API</a> . <a href="privateca_v1beta1.projects.html">projects</a> . <a href="privateca_v1beta1.projects.locations.html">locations</a> . <a href="privateca_v1beta1.projects.locations.certificateAuthorities.html">certificateAuthorities</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="privateca_v1beta1.projects.locations.certificateAuthorities.certificateRevocationLists.html">certificateRevocationLists()</a></code> 79</p> 80<p class="firstline">Returns the certificateRevocationLists Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="privateca_v1beta1.projects.locations.certificateAuthorities.certificates.html">certificates()</a></code> 84</p> 85<p class="firstline">Returns the certificates Resource.</p> 86 87<p class="toc_element"> 88 <code><a href="#activate">activate(name, body=None, x__xgafv=None)</a></code></p> 89<p class="firstline">Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process.</p> 90<p class="toc_element"> 91 <code><a href="#close">close()</a></code></p> 92<p class="firstline">Close httplib2 connections.</p> 93<p class="toc_element"> 94 <code><a href="#create">create(parent, body=None, certificateAuthorityId=None, requestId=None, x__xgafv=None)</a></code></p> 95<p class="firstline">Create a new CertificateAuthority in a given Project and Location.</p> 96<p class="toc_element"> 97 <code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p> 98<p class="firstline">Disable a CertificateAuthority.</p> 99<p class="toc_element"> 100 <code><a href="#enable">enable(name, body=None, x__xgafv=None)</a></code></p> 101<p class="firstline">Enable a CertificateAuthority.</p> 102<p class="toc_element"> 103 <code><a href="#fetch">fetch(name, x__xgafv=None)</a></code></p> 104<p class="firstline">Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.</p> 105<p class="toc_element"> 106 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 107<p class="firstline">Returns a CertificateAuthority.</p> 108<p class="toc_element"> 109 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p> 110<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p> 111<p class="toc_element"> 112 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 113<p class="firstline">Lists CertificateAuthorities.</p> 114<p class="toc_element"> 115 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 116<p class="firstline">Retrieves the next page of results.</p> 117<p class="toc_element"> 118 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p> 119<p class="firstline">Update a CertificateAuthority.</p> 120<p class="toc_element"> 121 <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p> 122<p class="firstline">Restore a CertificateAuthority that is scheduled for deletion.</p> 123<p class="toc_element"> 124 <code><a href="#scheduleDelete">scheduleDelete(name, body=None, x__xgafv=None)</a></code></p> 125<p class="firstline">Schedule a CertificateAuthority for deletion.</p> 126<p class="toc_element"> 127 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p> 128<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p> 129<p class="toc_element"> 130 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p> 131<p class="firstline">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 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.</p> 132<h3>Method Details</h3> 133<div class="method"> 134 <code class="details" id="activate">activate(name, body=None, x__xgafv=None)</code> 135 <pre>Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process. 136 137Args: 138 name: string, Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. (required) 139 body: object, The request body. 140 The object takes the form of: 141 142{ # Request message for CertificateAuthorityService.ActivateCertificateAuthority. 143 "pemCaCertificate": "A String", # Required. The signed CA certificate issued from FetchCertificateAuthorityCsrResponse.pem_csr. 144 "requestId": "A String", # 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). 145 "subordinateConfig": { # Describes a subordinate CA's issuers. This is either a resource path to a known issuing CertificateAuthority, or a PEM issuer certificate chain. # Required. Must include information about the issuer of 'pem_ca_certificate', and any further issuers until the self-signed CA. 146 "certificateAuthority": "A String", # 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 resource name is in the format `projects/*/locations/*/certificateAuthorities/*`. 147 "pemIssuerChain": { # This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons. # Required. Contains the PEM certificate chain for the issuers of this CertificateAuthority, but not pem certificate for this CA itself. 148 "pemCertificates": [ # Required. Expected to be in leaf-to-root order according to RFC 5246. 149 "A String", 150 ], 151 }, 152 }, 153} 154 155 x__xgafv: string, V1 error format. 156 Allowed values 157 1 - v1 error format 158 2 - v2 error format 159 160Returns: 161 An object of the form: 162 163 { # This resource represents a long-running operation that is the result of a network API call. 164 "done": True or False, # 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. 165 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 166 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 167 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 168 { 169 "a_key": "", # Properties of the object. Contains field @type with type URL. 170 }, 171 ], 172 "message": "A String", # 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 client. 173 }, 174 "metadata": { # 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. 175 "a_key": "", # Properties of the object. Contains field @type with type URL. 176 }, 177 "name": "A String", # 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}`. 178 "response": { # 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`. 179 "a_key": "", # Properties of the object. Contains field @type with type URL. 180 }, 181}</pre> 182</div> 183 184<div class="method"> 185 <code class="details" id="close">close()</code> 186 <pre>Close httplib2 connections.</pre> 187</div> 188 189<div class="method"> 190 <code class="details" id="create">create(parent, body=None, certificateAuthorityId=None, requestId=None, x__xgafv=None)</code> 191 <pre>Create a new CertificateAuthority in a given Project and Location. 192 193Args: 194 parent: string, Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`. (required) 195 body: object, The request body. 196 The object takes the form of: 197 198{ # A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates. 199 "accessUrls": { # URLs where a CertificateAuthority will publish content. # Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs. 200 "caCertificateAccessUrl": "A String", # The URL where this CertificateAuthority's CA certificate is published. This will only be set for CAs that have been activated. 201 "crlAccessUrl": "A String", # The URL where this CertificateAuthority's CRLs are published. This will only be set for CAs that have been activated. 202 }, 203 "caCertificateDescriptions": [ # Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root. 204 { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. 205 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 206 "A String", 207 ], 208 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 209 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 210 }, 211 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 212 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 213 }, 214 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 215 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 216 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 217 "critical": True or False, # Required. 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). 218 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 219 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 220 42, 221 ], 222 }, 223 "value": "A String", # Required. The value of this X.509 extension. 224 }, 225 ], 226 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 227 "A String", 228 ], 229 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 230 "isCa": True or False, # 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. 231 "maxIssuerPathLength": 42, # 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. 232 }, 233 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 234 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 235 "certSign": True or False, # The key may be used to sign certificates. 236 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 237 "crlSign": True or False, # The key may be used sign certificate revocation lists. 238 "dataEncipherment": True or False, # The key may be used to encipher data. 239 "decipherOnly": True or False, # The key may be used to decipher only. 240 "digitalSignature": True or False, # The key may be used for digital signatures. 241 "encipherOnly": True or False, # The key may be used to encipher only. 242 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 243 "keyEncipherment": True or False, # The key may be used to encipher other keys. 244 }, 245 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 246 "clientAuth": True or False, # 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. 247 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 248 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 249 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 250 "serverAuth": True or False, # 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. 251 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 252 }, 253 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 254 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 255 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 256 42, 257 ], 258 }, 259 ], 260 }, 261 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 262 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 263 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 264 42, 265 ], 266 }, 267 ], 268 }, 269 "crlDistributionPoints": [ # 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 270 "A String", 271 ], 272 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 273 "key": "A String", # 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. 274 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 275 }, 276 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 277 "commonName": "A String", # The "common name" of the distinguished name. 278 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 279 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 280 "notAfterTime": "A String", # The time at which the certificate expires. 281 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 282 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 283 "countryCode": "A String", # The country code of the subject. 284 "locality": "A String", # The locality or city of the subject. 285 "organization": "A String", # The organization of the subject. 286 "organizationalUnit": "A String", # The organizational_unit of the subject. 287 "postalCode": "A String", # The postal code of the subject. 288 "province": "A String", # The province, territory, or regional state of the subject. 289 "streetAddress": "A String", # The street address of the subject. 290 }, 291 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 292 "customSans": [ # Contains additional subject alternative name values. 293 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 294 "critical": True or False, # Required. 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). 295 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 296 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 297 42, 298 ], 299 }, 300 "value": "A String", # Required. The value of this X.509 extension. 301 }, 302 ], 303 "dnsNames": [ # Contains only valid, fully-qualified host names. 304 "A String", 305 ], 306 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 307 "A String", 308 ], 309 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 310 "A String", 311 ], 312 "uris": [ # Contains only valid RFC 3986 URIs. 313 "A String", 314 ], 315 }, 316 }, 317 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 318 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 319 }, 320 }, 321 ], 322 "certificatePolicy": { # The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy. # Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority. 323 "allowedCommonNames": [ # 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. 324 "A String", 325 ], 326 "allowedConfigList": { # Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list. 327 "allowedConfigValues": [ # 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. 328 { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. 329 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 330 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 331 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 332 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 333 "critical": True or False, # Required. 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). 334 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 335 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 336 42, 337 ], 338 }, 339 "value": "A String", # Required. The value of this X.509 extension. 340 }, 341 ], 342 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 343 "A String", 344 ], 345 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 346 "isCa": True or False, # 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. 347 "maxIssuerPathLength": 42, # 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. 348 }, 349 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 350 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 351 "certSign": True or False, # The key may be used to sign certificates. 352 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 353 "crlSign": True or False, # The key may be used sign certificate revocation lists. 354 "dataEncipherment": True or False, # The key may be used to encipher data. 355 "decipherOnly": True or False, # The key may be used to decipher only. 356 "digitalSignature": True or False, # The key may be used for digital signatures. 357 "encipherOnly": True or False, # The key may be used to encipher only. 358 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 359 "keyEncipherment": True or False, # The key may be used to encipher other keys. 360 }, 361 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 362 "clientAuth": True or False, # 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. 363 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 364 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 365 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 366 "serverAuth": True or False, # 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. 367 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 368 }, 369 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 370 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 371 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 372 42, 373 ], 374 }, 375 ], 376 }, 377 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 378 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 379 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 380 42, 381 ], 382 }, 383 ], 384 }, 385 }, 386 ], 387 }, 388 "allowedIssuanceModes": { # IssuanceModes specifies the allowed ways in which Certificates may be requested from this CertificateAuthority. # Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates. 389 "allowConfigBasedIssuance": True or False, # Required. When true, allows callers to create Certificates by specifying a CertificateConfig. 390 "allowCsrBasedIssuance": True or False, # Required. When true, allows callers to create Certificates by specifying a CSR. 391 }, 392 "allowedLocationsAndOrganizations": [ # 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. 393 { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. 394 "countryCode": "A String", # The country code of the subject. 395 "locality": "A String", # The locality or city of the subject. 396 "organization": "A String", # The organization of the subject. 397 "organizationalUnit": "A String", # The organizational_unit of the subject. 398 "postalCode": "A String", # The postal code of the subject. 399 "province": "A String", # The province, territory, or regional state of the subject. 400 "streetAddress": "A String", # The street address of the subject. 401 }, 402 ], 403 "allowedSans": { # AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates. # 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. 404 "allowCustomSans": True or False, # Optional. Specifies if to allow custom X509Extension values. 405 "allowGlobbingDnsWildcards": True or False, # 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. 406 "allowedDnsNames": [ # 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`. 407 "A String", 408 ], 409 "allowedEmailAddresses": [ # Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also supported. 410 "A String", 411 ], 412 "allowedIps": [ # 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). 413 "A String", 414 ], 415 "allowedUris": [ # 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. '**'). 416 "A String", 417 ], 418 }, 419 "maximumLifetime": "A String", # 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. 420 "overwriteConfigValues": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values. 421 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 422 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 423 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 424 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 425 "critical": True or False, # Required. 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). 426 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 427 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 428 42, 429 ], 430 }, 431 "value": "A String", # Required. The value of this X.509 extension. 432 }, 433 ], 434 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 435 "A String", 436 ], 437 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 438 "isCa": True or False, # 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. 439 "maxIssuerPathLength": 42, # 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. 440 }, 441 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 442 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 443 "certSign": True or False, # The key may be used to sign certificates. 444 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 445 "crlSign": True or False, # The key may be used sign certificate revocation lists. 446 "dataEncipherment": True or False, # The key may be used to encipher data. 447 "decipherOnly": True or False, # The key may be used to decipher only. 448 "digitalSignature": True or False, # The key may be used for digital signatures. 449 "encipherOnly": True or False, # The key may be used to encipher only. 450 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 451 "keyEncipherment": True or False, # The key may be used to encipher other keys. 452 }, 453 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 454 "clientAuth": True or False, # 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. 455 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 456 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 457 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 458 "serverAuth": True or False, # 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. 459 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 460 }, 461 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 462 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 463 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 464 42, 465 ], 466 }, 467 ], 468 }, 469 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 470 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 471 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 472 42, 473 ], 474 }, 475 ], 476 }, 477 }, 478 }, 479 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Required. Immutable. The config used to create a self-signed X.509 certificate or CSR. 480 "publicKey": { # A PublicKey describes a public key. # 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. 481 "key": "A String", # 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. 482 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 483 }, 484 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 485 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 486 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 487 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 488 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 489 "critical": True or False, # Required. 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). 490 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 491 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 492 42, 493 ], 494 }, 495 "value": "A String", # Required. The value of this X.509 extension. 496 }, 497 ], 498 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 499 "A String", 500 ], 501 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 502 "isCa": True or False, # 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. 503 "maxIssuerPathLength": 42, # 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. 504 }, 505 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 506 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 507 "certSign": True or False, # The key may be used to sign certificates. 508 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 509 "crlSign": True or False, # The key may be used sign certificate revocation lists. 510 "dataEncipherment": True or False, # The key may be used to encipher data. 511 "decipherOnly": True or False, # The key may be used to decipher only. 512 "digitalSignature": True or False, # The key may be used for digital signatures. 513 "encipherOnly": True or False, # The key may be used to encipher only. 514 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 515 "keyEncipherment": True or False, # The key may be used to encipher other keys. 516 }, 517 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 518 "clientAuth": True or False, # 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. 519 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 520 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 521 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 522 "serverAuth": True or False, # 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. 523 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 524 }, 525 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 526 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 527 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 528 42, 529 ], 530 }, 531 ], 532 }, 533 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 534 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 535 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 536 42, 537 ], 538 }, 539 ], 540 }, 541 }, 542 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 543 "commonName": "A String", # Optional. The "common name" of the distinguished name. 544 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 545 "countryCode": "A String", # The country code of the subject. 546 "locality": "A String", # The locality or city of the subject. 547 "organization": "A String", # The organization of the subject. 548 "organizationalUnit": "A String", # The organizational_unit of the subject. 549 "postalCode": "A String", # The postal code of the subject. 550 "province": "A String", # The province, territory, or regional state of the subject. 551 "streetAddress": "A String", # The street address of the subject. 552 }, 553 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 554 "customSans": [ # Contains additional subject alternative name values. 555 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 556 "critical": True or False, # Required. 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). 557 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 558 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 559 42, 560 ], 561 }, 562 "value": "A String", # Required. The value of this X.509 extension. 563 }, 564 ], 565 "dnsNames": [ # Contains only valid, fully-qualified host names. 566 "A String", 567 ], 568 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 569 "A String", 570 ], 571 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 572 "A String", 573 ], 574 "uris": [ # Contains only valid RFC 3986 URIs. 575 "A String", 576 ], 577 }, 578 }, 579 }, 580 "createTime": "A String", # Output only. The time at which this CertificateAuthority was created. 581 "deleteTime": "A String", # Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion. 582 "gcsBucket": "A String", # 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. 583 "issuingOptions": { # Options that affect all certificates issued by a CertificateAuthority. # Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority. 584 "includeCaCertUrl": True or False, # Required. When true, includes a URL to the issuing CA certificate in the "authority information access" X.509 extension. 585 "includeCrlAccessUrl": True or False, # 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. 586 }, 587 "keySpec": { # A Cloud KMS key configuration that a CertificateAuthority will use. # 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. 588 "algorithm": "A String", # 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`. 589 "cloudKmsKeyVersion": "A String", # Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. This option enables full flexibility in the key's capabilities and properties. 590 }, 591 "labels": { # Optional. Labels with user-defined metadata. 592 "a_key": "A String", 593 }, 594 "lifetime": "A String", # 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. 595 "name": "A String", # Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. 596 "pemCaCertificates": [ # 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. 597 "A String", 598 ], 599 "state": "A String", # Output only. The State for this CertificateAuthority. 600 "subordinateConfig": { # Describes a subordinate CA's issuers. This is either a resource path to a known issuing CertificateAuthority, or a PEM issuer certificate chain. # 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. 601 "certificateAuthority": "A String", # 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 resource name is in the format `projects/*/locations/*/certificateAuthorities/*`. 602 "pemIssuerChain": { # This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons. # Required. Contains the PEM certificate chain for the issuers of this CertificateAuthority, but not pem certificate for this CA itself. 603 "pemCertificates": [ # Required. Expected to be in leaf-to-root order according to RFC 5246. 604 "A String", 605 ], 606 }, 607 }, 608 "tier": "A String", # Required. Immutable. The Tier of this CertificateAuthority. 609 "type": "A String", # Required. Immutable. The Type of this CertificateAuthority. 610 "updateTime": "A String", # Output only. The time at which this CertificateAuthority was updated. 611} 612 613 certificateAuthorityId: string, Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}` 614 requestId: string, 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). 615 x__xgafv: string, V1 error format. 616 Allowed values 617 1 - v1 error format 618 2 - v2 error format 619 620Returns: 621 An object of the form: 622 623 { # This resource represents a long-running operation that is the result of a network API call. 624 "done": True or False, # 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. 625 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 626 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 627 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 628 { 629 "a_key": "", # Properties of the object. Contains field @type with type URL. 630 }, 631 ], 632 "message": "A String", # 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 client. 633 }, 634 "metadata": { # 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. 635 "a_key": "", # Properties of the object. Contains field @type with type URL. 636 }, 637 "name": "A String", # 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}`. 638 "response": { # 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`. 639 "a_key": "", # Properties of the object. Contains field @type with type URL. 640 }, 641}</pre> 642</div> 643 644<div class="method"> 645 <code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code> 646 <pre>Disable a CertificateAuthority. 647 648Args: 649 name: string, Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. (required) 650 body: object, The request body. 651 The object takes the form of: 652 653{ # Request message for CertificateAuthorityService.DisableCertificateAuthority. 654 "requestId": "A String", # 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). 655} 656 657 x__xgafv: string, V1 error format. 658 Allowed values 659 1 - v1 error format 660 2 - v2 error format 661 662Returns: 663 An object of the form: 664 665 { # This resource represents a long-running operation that is the result of a network API call. 666 "done": True or False, # 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. 667 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 668 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 669 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 670 { 671 "a_key": "", # Properties of the object. Contains field @type with type URL. 672 }, 673 ], 674 "message": "A String", # 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 client. 675 }, 676 "metadata": { # 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. 677 "a_key": "", # Properties of the object. Contains field @type with type URL. 678 }, 679 "name": "A String", # 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}`. 680 "response": { # 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`. 681 "a_key": "", # Properties of the object. Contains field @type with type URL. 682 }, 683}</pre> 684</div> 685 686<div class="method"> 687 <code class="details" id="enable">enable(name, body=None, x__xgafv=None)</code> 688 <pre>Enable a CertificateAuthority. 689 690Args: 691 name: string, Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. (required) 692 body: object, The request body. 693 The object takes the form of: 694 695{ # Request message for CertificateAuthorityService.EnableCertificateAuthority. 696 "requestId": "A String", # 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). 697} 698 699 x__xgafv: string, V1 error format. 700 Allowed values 701 1 - v1 error format 702 2 - v2 error format 703 704Returns: 705 An object of the form: 706 707 { # This resource represents a long-running operation that is the result of a network API call. 708 "done": True or False, # 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. 709 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 710 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 711 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 712 { 713 "a_key": "", # Properties of the object. Contains field @type with type URL. 714 }, 715 ], 716 "message": "A String", # 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 client. 717 }, 718 "metadata": { # 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. 719 "a_key": "", # Properties of the object. Contains field @type with type URL. 720 }, 721 "name": "A String", # 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}`. 722 "response": { # 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`. 723 "a_key": "", # Properties of the object. Contains field @type with type URL. 724 }, 725}</pre> 726</div> 727 728<div class="method"> 729 <code class="details" id="fetch">fetch(name, x__xgafv=None)</code> 730 <pre>Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority. 731 732Args: 733 name: string, Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. (required) 734 x__xgafv: string, V1 error format. 735 Allowed values 736 1 - v1 error format 737 2 - v2 error format 738 739Returns: 740 An object of the form: 741 742 { # Response message for CertificateAuthorityService.FetchCertificateAuthorityCsr. 743 "pemCsr": "A String", # Output only. The PEM-encoded signed certificate signing request (CSR). 744}</pre> 745</div> 746 747<div class="method"> 748 <code class="details" id="get">get(name, x__xgafv=None)</code> 749 <pre>Returns a CertificateAuthority. 750 751Args: 752 name: string, Required. The name of the CertificateAuthority to get. (required) 753 x__xgafv: string, V1 error format. 754 Allowed values 755 1 - v1 error format 756 2 - v2 error format 757 758Returns: 759 An object of the form: 760 761 { # A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates. 762 "accessUrls": { # URLs where a CertificateAuthority will publish content. # Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs. 763 "caCertificateAccessUrl": "A String", # The URL where this CertificateAuthority's CA certificate is published. This will only be set for CAs that have been activated. 764 "crlAccessUrl": "A String", # The URL where this CertificateAuthority's CRLs are published. This will only be set for CAs that have been activated. 765 }, 766 "caCertificateDescriptions": [ # Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root. 767 { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. 768 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 769 "A String", 770 ], 771 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 772 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 773 }, 774 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 775 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 776 }, 777 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 778 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 779 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 780 "critical": True or False, # Required. 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). 781 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 782 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 783 42, 784 ], 785 }, 786 "value": "A String", # Required. The value of this X.509 extension. 787 }, 788 ], 789 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 790 "A String", 791 ], 792 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 793 "isCa": True or False, # 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. 794 "maxIssuerPathLength": 42, # 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. 795 }, 796 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 797 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 798 "certSign": True or False, # The key may be used to sign certificates. 799 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 800 "crlSign": True or False, # The key may be used sign certificate revocation lists. 801 "dataEncipherment": True or False, # The key may be used to encipher data. 802 "decipherOnly": True or False, # The key may be used to decipher only. 803 "digitalSignature": True or False, # The key may be used for digital signatures. 804 "encipherOnly": True or False, # The key may be used to encipher only. 805 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 806 "keyEncipherment": True or False, # The key may be used to encipher other keys. 807 }, 808 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 809 "clientAuth": True or False, # 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. 810 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 811 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 812 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 813 "serverAuth": True or False, # 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. 814 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 815 }, 816 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 817 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 818 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 819 42, 820 ], 821 }, 822 ], 823 }, 824 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 825 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 826 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 827 42, 828 ], 829 }, 830 ], 831 }, 832 "crlDistributionPoints": [ # 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 833 "A String", 834 ], 835 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 836 "key": "A String", # 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. 837 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 838 }, 839 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 840 "commonName": "A String", # The "common name" of the distinguished name. 841 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 842 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 843 "notAfterTime": "A String", # The time at which the certificate expires. 844 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 845 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 846 "countryCode": "A String", # The country code of the subject. 847 "locality": "A String", # The locality or city of the subject. 848 "organization": "A String", # The organization of the subject. 849 "organizationalUnit": "A String", # The organizational_unit of the subject. 850 "postalCode": "A String", # The postal code of the subject. 851 "province": "A String", # The province, territory, or regional state of the subject. 852 "streetAddress": "A String", # The street address of the subject. 853 }, 854 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 855 "customSans": [ # Contains additional subject alternative name values. 856 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 857 "critical": True or False, # Required. 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). 858 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 859 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 860 42, 861 ], 862 }, 863 "value": "A String", # Required. The value of this X.509 extension. 864 }, 865 ], 866 "dnsNames": [ # Contains only valid, fully-qualified host names. 867 "A String", 868 ], 869 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 870 "A String", 871 ], 872 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 873 "A String", 874 ], 875 "uris": [ # Contains only valid RFC 3986 URIs. 876 "A String", 877 ], 878 }, 879 }, 880 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 881 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 882 }, 883 }, 884 ], 885 "certificatePolicy": { # The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy. # Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority. 886 "allowedCommonNames": [ # 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. 887 "A String", 888 ], 889 "allowedConfigList": { # Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list. 890 "allowedConfigValues": [ # 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. 891 { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. 892 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 893 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 894 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 895 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 896 "critical": True or False, # Required. 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). 897 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 898 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 899 42, 900 ], 901 }, 902 "value": "A String", # Required. The value of this X.509 extension. 903 }, 904 ], 905 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 906 "A String", 907 ], 908 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 909 "isCa": True or False, # 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. 910 "maxIssuerPathLength": 42, # 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. 911 }, 912 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 913 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 914 "certSign": True or False, # The key may be used to sign certificates. 915 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 916 "crlSign": True or False, # The key may be used sign certificate revocation lists. 917 "dataEncipherment": True or False, # The key may be used to encipher data. 918 "decipherOnly": True or False, # The key may be used to decipher only. 919 "digitalSignature": True or False, # The key may be used for digital signatures. 920 "encipherOnly": True or False, # The key may be used to encipher only. 921 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 922 "keyEncipherment": True or False, # The key may be used to encipher other keys. 923 }, 924 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 925 "clientAuth": True or False, # 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. 926 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 927 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 928 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 929 "serverAuth": True or False, # 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. 930 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 931 }, 932 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 933 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 934 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 935 42, 936 ], 937 }, 938 ], 939 }, 940 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 941 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 942 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 943 42, 944 ], 945 }, 946 ], 947 }, 948 }, 949 ], 950 }, 951 "allowedIssuanceModes": { # IssuanceModes specifies the allowed ways in which Certificates may be requested from this CertificateAuthority. # Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates. 952 "allowConfigBasedIssuance": True or False, # Required. When true, allows callers to create Certificates by specifying a CertificateConfig. 953 "allowCsrBasedIssuance": True or False, # Required. When true, allows callers to create Certificates by specifying a CSR. 954 }, 955 "allowedLocationsAndOrganizations": [ # 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. 956 { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. 957 "countryCode": "A String", # The country code of the subject. 958 "locality": "A String", # The locality or city of the subject. 959 "organization": "A String", # The organization of the subject. 960 "organizationalUnit": "A String", # The organizational_unit of the subject. 961 "postalCode": "A String", # The postal code of the subject. 962 "province": "A String", # The province, territory, or regional state of the subject. 963 "streetAddress": "A String", # The street address of the subject. 964 }, 965 ], 966 "allowedSans": { # AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates. # 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. 967 "allowCustomSans": True or False, # Optional. Specifies if to allow custom X509Extension values. 968 "allowGlobbingDnsWildcards": True or False, # 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. 969 "allowedDnsNames": [ # 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`. 970 "A String", 971 ], 972 "allowedEmailAddresses": [ # Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also supported. 973 "A String", 974 ], 975 "allowedIps": [ # 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). 976 "A String", 977 ], 978 "allowedUris": [ # 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. '**'). 979 "A String", 980 ], 981 }, 982 "maximumLifetime": "A String", # 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. 983 "overwriteConfigValues": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values. 984 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 985 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 986 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 987 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 988 "critical": True or False, # Required. 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). 989 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 990 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 991 42, 992 ], 993 }, 994 "value": "A String", # Required. The value of this X.509 extension. 995 }, 996 ], 997 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 998 "A String", 999 ], 1000 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1001 "isCa": True or False, # 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. 1002 "maxIssuerPathLength": 42, # 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. 1003 }, 1004 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1005 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1006 "certSign": True or False, # The key may be used to sign certificates. 1007 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1008 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1009 "dataEncipherment": True or False, # The key may be used to encipher data. 1010 "decipherOnly": True or False, # The key may be used to decipher only. 1011 "digitalSignature": True or False, # The key may be used for digital signatures. 1012 "encipherOnly": True or False, # The key may be used to encipher only. 1013 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1014 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1015 }, 1016 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1017 "clientAuth": True or False, # 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. 1018 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1019 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1020 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1021 "serverAuth": True or False, # 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. 1022 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1023 }, 1024 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1025 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1026 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1027 42, 1028 ], 1029 }, 1030 ], 1031 }, 1032 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1033 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1034 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1035 42, 1036 ], 1037 }, 1038 ], 1039 }, 1040 }, 1041 }, 1042 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Required. Immutable. The config used to create a self-signed X.509 certificate or CSR. 1043 "publicKey": { # A PublicKey describes a public key. # 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. 1044 "key": "A String", # 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. 1045 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1046 }, 1047 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 1048 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1049 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1050 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1051 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1052 "critical": True or False, # Required. 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). 1053 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1054 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1055 42, 1056 ], 1057 }, 1058 "value": "A String", # Required. The value of this X.509 extension. 1059 }, 1060 ], 1061 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1062 "A String", 1063 ], 1064 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1065 "isCa": True or False, # 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. 1066 "maxIssuerPathLength": 42, # 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. 1067 }, 1068 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1069 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1070 "certSign": True or False, # The key may be used to sign certificates. 1071 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1072 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1073 "dataEncipherment": True or False, # The key may be used to encipher data. 1074 "decipherOnly": True or False, # The key may be used to decipher only. 1075 "digitalSignature": True or False, # The key may be used for digital signatures. 1076 "encipherOnly": True or False, # The key may be used to encipher only. 1077 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1078 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1079 }, 1080 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1081 "clientAuth": True or False, # 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. 1082 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1083 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1084 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1085 "serverAuth": True or False, # 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. 1086 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1087 }, 1088 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1089 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1090 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1091 42, 1092 ], 1093 }, 1094 ], 1095 }, 1096 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1097 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1098 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1099 42, 1100 ], 1101 }, 1102 ], 1103 }, 1104 }, 1105 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 1106 "commonName": "A String", # Optional. The "common name" of the distinguished name. 1107 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 1108 "countryCode": "A String", # The country code of the subject. 1109 "locality": "A String", # The locality or city of the subject. 1110 "organization": "A String", # The organization of the subject. 1111 "organizationalUnit": "A String", # The organizational_unit of the subject. 1112 "postalCode": "A String", # The postal code of the subject. 1113 "province": "A String", # The province, territory, or regional state of the subject. 1114 "streetAddress": "A String", # The street address of the subject. 1115 }, 1116 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 1117 "customSans": [ # Contains additional subject alternative name values. 1118 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1119 "critical": True or False, # Required. 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). 1120 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1121 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1122 42, 1123 ], 1124 }, 1125 "value": "A String", # Required. The value of this X.509 extension. 1126 }, 1127 ], 1128 "dnsNames": [ # Contains only valid, fully-qualified host names. 1129 "A String", 1130 ], 1131 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1132 "A String", 1133 ], 1134 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1135 "A String", 1136 ], 1137 "uris": [ # Contains only valid RFC 3986 URIs. 1138 "A String", 1139 ], 1140 }, 1141 }, 1142 }, 1143 "createTime": "A String", # Output only. The time at which this CertificateAuthority was created. 1144 "deleteTime": "A String", # Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion. 1145 "gcsBucket": "A String", # 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. 1146 "issuingOptions": { # Options that affect all certificates issued by a CertificateAuthority. # Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority. 1147 "includeCaCertUrl": True or False, # Required. When true, includes a URL to the issuing CA certificate in the "authority information access" X.509 extension. 1148 "includeCrlAccessUrl": True or False, # 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. 1149 }, 1150 "keySpec": { # A Cloud KMS key configuration that a CertificateAuthority will use. # 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. 1151 "algorithm": "A String", # 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`. 1152 "cloudKmsKeyVersion": "A String", # Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. This option enables full flexibility in the key's capabilities and properties. 1153 }, 1154 "labels": { # Optional. Labels with user-defined metadata. 1155 "a_key": "A String", 1156 }, 1157 "lifetime": "A String", # 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. 1158 "name": "A String", # Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. 1159 "pemCaCertificates": [ # 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. 1160 "A String", 1161 ], 1162 "state": "A String", # Output only. The State for this CertificateAuthority. 1163 "subordinateConfig": { # Describes a subordinate CA's issuers. This is either a resource path to a known issuing CertificateAuthority, or a PEM issuer certificate chain. # 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. 1164 "certificateAuthority": "A String", # 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 resource name is in the format `projects/*/locations/*/certificateAuthorities/*`. 1165 "pemIssuerChain": { # This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons. # Required. Contains the PEM certificate chain for the issuers of this CertificateAuthority, but not pem certificate for this CA itself. 1166 "pemCertificates": [ # Required. Expected to be in leaf-to-root order according to RFC 5246. 1167 "A String", 1168 ], 1169 }, 1170 }, 1171 "tier": "A String", # Required. Immutable. The Tier of this CertificateAuthority. 1172 "type": "A String", # Required. Immutable. The Type of this CertificateAuthority. 1173 "updateTime": "A String", # Output only. The time at which this CertificateAuthority was updated. 1174}</pre> 1175</div> 1176 1177<div class="method"> 1178 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code> 1179 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. 1180 1181Args: 1182 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required) 1183 options_requestedPolicyVersion: integer, 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 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 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 role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 1184 x__xgafv: string, V1 error format. 1185 Allowed values 1186 1 - v1 error format 1187 2 - v2 error format 1188 1189Returns: 1190 An object of the form: 1191 1192 { # 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`, or principals, to a single `role`. Principals 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:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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/). 1193 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 1194 { # 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:[email protected]" ] }, { "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:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 1195 "auditLogConfigs": [ # The configuration for logging of each type of permission. 1196 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 1197 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 1198 "A String", 1199 ], 1200 "logType": "A String", # The log type that this config enables. 1201 }, 1202 ], 1203 "service": "A String", # 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. 1204 }, 1205 ], 1206 "bindings": [ # 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` 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 principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 1207 { # Associates `members`, or principals, with a `role`. 1208 "condition": { # 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. # 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 principals 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). 1209 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 1210 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 1211 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 1212 "title": "A String", # 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. 1213 }, 1214 "members": [ # Specifies the principals 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, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?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`. 1215 "A String", 1216 ], 1217 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 1218 }, 1219 ], 1220 "etag": "A String", # `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. 1221 "version": 42, # 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). 1222}</pre> 1223</div> 1224 1225<div class="method"> 1226 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 1227 <pre>Lists CertificateAuthorities. 1228 1229Args: 1230 parent: string, Required. The resource name of the location associated with the CertificateAuthorities, in the format `projects/*/locations/*`. (required) 1231 filter: string, Optional. Only include resources that match the filter in the response. 1232 orderBy: string, Optional. Specify how the results should be sorted. 1233 pageSize: integer, Optional. Limit on the number of CertificateAuthorities to include in the response. Further CertificateAuthorities can subsequently be obtained by including the ListCertificateAuthoritiesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default. 1234 pageToken: string, Optional. Pagination token, returned earlier via ListCertificateAuthoritiesResponse.next_page_token. 1235 x__xgafv: string, V1 error format. 1236 Allowed values 1237 1 - v1 error format 1238 2 - v2 error format 1239 1240Returns: 1241 An object of the form: 1242 1243 { # Response message for CertificateAuthorityService.ListCertificateAuthorities. 1244 "certificateAuthorities": [ # The list of CertificateAuthorities. 1245 { # A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates. 1246 "accessUrls": { # URLs where a CertificateAuthority will publish content. # Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs. 1247 "caCertificateAccessUrl": "A String", # The URL where this CertificateAuthority's CA certificate is published. This will only be set for CAs that have been activated. 1248 "crlAccessUrl": "A String", # The URL where this CertificateAuthority's CRLs are published. This will only be set for CAs that have been activated. 1249 }, 1250 "caCertificateDescriptions": [ # Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root. 1251 { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. 1252 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 1253 "A String", 1254 ], 1255 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 1256 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1257 }, 1258 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 1259 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 1260 }, 1261 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 1262 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1263 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1264 "critical": True or False, # Required. 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). 1265 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1266 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1267 42, 1268 ], 1269 }, 1270 "value": "A String", # Required. The value of this X.509 extension. 1271 }, 1272 ], 1273 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1274 "A String", 1275 ], 1276 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1277 "isCa": True or False, # 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. 1278 "maxIssuerPathLength": 42, # 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. 1279 }, 1280 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1281 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1282 "certSign": True or False, # The key may be used to sign certificates. 1283 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1284 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1285 "dataEncipherment": True or False, # The key may be used to encipher data. 1286 "decipherOnly": True or False, # The key may be used to decipher only. 1287 "digitalSignature": True or False, # The key may be used for digital signatures. 1288 "encipherOnly": True or False, # The key may be used to encipher only. 1289 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1290 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1291 }, 1292 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1293 "clientAuth": True or False, # 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. 1294 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1295 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1296 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1297 "serverAuth": True or False, # 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. 1298 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1299 }, 1300 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1301 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1302 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1303 42, 1304 ], 1305 }, 1306 ], 1307 }, 1308 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1309 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1310 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1311 42, 1312 ], 1313 }, 1314 ], 1315 }, 1316 "crlDistributionPoints": [ # 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 1317 "A String", 1318 ], 1319 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 1320 "key": "A String", # 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. 1321 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1322 }, 1323 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 1324 "commonName": "A String", # The "common name" of the distinguished name. 1325 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 1326 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 1327 "notAfterTime": "A String", # The time at which the certificate expires. 1328 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 1329 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 1330 "countryCode": "A String", # The country code of the subject. 1331 "locality": "A String", # The locality or city of the subject. 1332 "organization": "A String", # The organization of the subject. 1333 "organizationalUnit": "A String", # The organizational_unit of the subject. 1334 "postalCode": "A String", # The postal code of the subject. 1335 "province": "A String", # The province, territory, or regional state of the subject. 1336 "streetAddress": "A String", # The street address of the subject. 1337 }, 1338 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 1339 "customSans": [ # Contains additional subject alternative name values. 1340 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1341 "critical": True or False, # Required. 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). 1342 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1343 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1344 42, 1345 ], 1346 }, 1347 "value": "A String", # Required. The value of this X.509 extension. 1348 }, 1349 ], 1350 "dnsNames": [ # Contains only valid, fully-qualified host names. 1351 "A String", 1352 ], 1353 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1354 "A String", 1355 ], 1356 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1357 "A String", 1358 ], 1359 "uris": [ # Contains only valid RFC 3986 URIs. 1360 "A String", 1361 ], 1362 }, 1363 }, 1364 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 1365 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1366 }, 1367 }, 1368 ], 1369 "certificatePolicy": { # The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy. # Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority. 1370 "allowedCommonNames": [ # 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. 1371 "A String", 1372 ], 1373 "allowedConfigList": { # Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list. 1374 "allowedConfigValues": [ # 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. 1375 { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. 1376 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1377 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1378 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1379 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1380 "critical": True or False, # Required. 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). 1381 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1382 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1383 42, 1384 ], 1385 }, 1386 "value": "A String", # Required. The value of this X.509 extension. 1387 }, 1388 ], 1389 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1390 "A String", 1391 ], 1392 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1393 "isCa": True or False, # 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. 1394 "maxIssuerPathLength": 42, # 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. 1395 }, 1396 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1397 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1398 "certSign": True or False, # The key may be used to sign certificates. 1399 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1400 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1401 "dataEncipherment": True or False, # The key may be used to encipher data. 1402 "decipherOnly": True or False, # The key may be used to decipher only. 1403 "digitalSignature": True or False, # The key may be used for digital signatures. 1404 "encipherOnly": True or False, # The key may be used to encipher only. 1405 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1406 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1407 }, 1408 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1409 "clientAuth": True or False, # 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. 1410 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1411 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1412 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1413 "serverAuth": True or False, # 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. 1414 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1415 }, 1416 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1417 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1418 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1419 42, 1420 ], 1421 }, 1422 ], 1423 }, 1424 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1425 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1426 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1427 42, 1428 ], 1429 }, 1430 ], 1431 }, 1432 }, 1433 ], 1434 }, 1435 "allowedIssuanceModes": { # IssuanceModes specifies the allowed ways in which Certificates may be requested from this CertificateAuthority. # Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates. 1436 "allowConfigBasedIssuance": True or False, # Required. When true, allows callers to create Certificates by specifying a CertificateConfig. 1437 "allowCsrBasedIssuance": True or False, # Required. When true, allows callers to create Certificates by specifying a CSR. 1438 }, 1439 "allowedLocationsAndOrganizations": [ # 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. 1440 { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. 1441 "countryCode": "A String", # The country code of the subject. 1442 "locality": "A String", # The locality or city of the subject. 1443 "organization": "A String", # The organization of the subject. 1444 "organizationalUnit": "A String", # The organizational_unit of the subject. 1445 "postalCode": "A String", # The postal code of the subject. 1446 "province": "A String", # The province, territory, or regional state of the subject. 1447 "streetAddress": "A String", # The street address of the subject. 1448 }, 1449 ], 1450 "allowedSans": { # AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates. # 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. 1451 "allowCustomSans": True or False, # Optional. Specifies if to allow custom X509Extension values. 1452 "allowGlobbingDnsWildcards": True or False, # 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. 1453 "allowedDnsNames": [ # 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`. 1454 "A String", 1455 ], 1456 "allowedEmailAddresses": [ # Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also supported. 1457 "A String", 1458 ], 1459 "allowedIps": [ # 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). 1460 "A String", 1461 ], 1462 "allowedUris": [ # 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. '**'). 1463 "A String", 1464 ], 1465 }, 1466 "maximumLifetime": "A String", # 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. 1467 "overwriteConfigValues": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values. 1468 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1469 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1470 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1471 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1472 "critical": True or False, # Required. 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). 1473 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1474 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1475 42, 1476 ], 1477 }, 1478 "value": "A String", # Required. The value of this X.509 extension. 1479 }, 1480 ], 1481 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1482 "A String", 1483 ], 1484 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1485 "isCa": True or False, # 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. 1486 "maxIssuerPathLength": 42, # 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. 1487 }, 1488 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1489 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1490 "certSign": True or False, # The key may be used to sign certificates. 1491 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1492 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1493 "dataEncipherment": True or False, # The key may be used to encipher data. 1494 "decipherOnly": True or False, # The key may be used to decipher only. 1495 "digitalSignature": True or False, # The key may be used for digital signatures. 1496 "encipherOnly": True or False, # The key may be used to encipher only. 1497 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1498 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1499 }, 1500 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1501 "clientAuth": True or False, # 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. 1502 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1503 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1504 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1505 "serverAuth": True or False, # 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. 1506 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1507 }, 1508 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1509 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1510 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1511 42, 1512 ], 1513 }, 1514 ], 1515 }, 1516 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1517 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1518 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1519 42, 1520 ], 1521 }, 1522 ], 1523 }, 1524 }, 1525 }, 1526 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Required. Immutable. The config used to create a self-signed X.509 certificate or CSR. 1527 "publicKey": { # A PublicKey describes a public key. # 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. 1528 "key": "A String", # 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. 1529 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1530 }, 1531 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 1532 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1533 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1534 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1535 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1536 "critical": True or False, # Required. 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). 1537 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1538 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1539 42, 1540 ], 1541 }, 1542 "value": "A String", # Required. The value of this X.509 extension. 1543 }, 1544 ], 1545 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1546 "A String", 1547 ], 1548 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1549 "isCa": True or False, # 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. 1550 "maxIssuerPathLength": 42, # 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. 1551 }, 1552 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1553 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1554 "certSign": True or False, # The key may be used to sign certificates. 1555 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1556 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1557 "dataEncipherment": True or False, # The key may be used to encipher data. 1558 "decipherOnly": True or False, # The key may be used to decipher only. 1559 "digitalSignature": True or False, # The key may be used for digital signatures. 1560 "encipherOnly": True or False, # The key may be used to encipher only. 1561 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1562 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1563 }, 1564 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1565 "clientAuth": True or False, # 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. 1566 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1567 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1568 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1569 "serverAuth": True or False, # 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. 1570 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1571 }, 1572 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1573 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1574 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1575 42, 1576 ], 1577 }, 1578 ], 1579 }, 1580 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1581 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1582 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1583 42, 1584 ], 1585 }, 1586 ], 1587 }, 1588 }, 1589 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 1590 "commonName": "A String", # Optional. The "common name" of the distinguished name. 1591 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 1592 "countryCode": "A String", # The country code of the subject. 1593 "locality": "A String", # The locality or city of the subject. 1594 "organization": "A String", # The organization of the subject. 1595 "organizationalUnit": "A String", # The organizational_unit of the subject. 1596 "postalCode": "A String", # The postal code of the subject. 1597 "province": "A String", # The province, territory, or regional state of the subject. 1598 "streetAddress": "A String", # The street address of the subject. 1599 }, 1600 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 1601 "customSans": [ # Contains additional subject alternative name values. 1602 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1603 "critical": True or False, # Required. 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). 1604 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1605 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1606 42, 1607 ], 1608 }, 1609 "value": "A String", # Required. The value of this X.509 extension. 1610 }, 1611 ], 1612 "dnsNames": [ # Contains only valid, fully-qualified host names. 1613 "A String", 1614 ], 1615 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1616 "A String", 1617 ], 1618 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1619 "A String", 1620 ], 1621 "uris": [ # Contains only valid RFC 3986 URIs. 1622 "A String", 1623 ], 1624 }, 1625 }, 1626 }, 1627 "createTime": "A String", # Output only. The time at which this CertificateAuthority was created. 1628 "deleteTime": "A String", # Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion. 1629 "gcsBucket": "A String", # 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. 1630 "issuingOptions": { # Options that affect all certificates issued by a CertificateAuthority. # Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority. 1631 "includeCaCertUrl": True or False, # Required. When true, includes a URL to the issuing CA certificate in the "authority information access" X.509 extension. 1632 "includeCrlAccessUrl": True or False, # 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. 1633 }, 1634 "keySpec": { # A Cloud KMS key configuration that a CertificateAuthority will use. # 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. 1635 "algorithm": "A String", # 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`. 1636 "cloudKmsKeyVersion": "A String", # Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. This option enables full flexibility in the key's capabilities and properties. 1637 }, 1638 "labels": { # Optional. Labels with user-defined metadata. 1639 "a_key": "A String", 1640 }, 1641 "lifetime": "A String", # 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. 1642 "name": "A String", # Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. 1643 "pemCaCertificates": [ # 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. 1644 "A String", 1645 ], 1646 "state": "A String", # Output only. The State for this CertificateAuthority. 1647 "subordinateConfig": { # Describes a subordinate CA's issuers. This is either a resource path to a known issuing CertificateAuthority, or a PEM issuer certificate chain. # 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. 1648 "certificateAuthority": "A String", # 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 resource name is in the format `projects/*/locations/*/certificateAuthorities/*`. 1649 "pemIssuerChain": { # This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons. # Required. Contains the PEM certificate chain for the issuers of this CertificateAuthority, but not pem certificate for this CA itself. 1650 "pemCertificates": [ # Required. Expected to be in leaf-to-root order according to RFC 5246. 1651 "A String", 1652 ], 1653 }, 1654 }, 1655 "tier": "A String", # Required. Immutable. The Tier of this CertificateAuthority. 1656 "type": "A String", # Required. Immutable. The Type of this CertificateAuthority. 1657 "updateTime": "A String", # Output only. The time at which this CertificateAuthority was updated. 1658 }, 1659 ], 1660 "nextPageToken": "A String", # A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of results. 1661 "unreachable": [ # A list of locations (e.g. "us-west1") that could not be reached. 1662 "A String", 1663 ], 1664}</pre> 1665</div> 1666 1667<div class="method"> 1668 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 1669 <pre>Retrieves the next page of results. 1670 1671Args: 1672 previous_request: The request for the previous page. (required) 1673 previous_response: The response from the request for the previous page. (required) 1674 1675Returns: 1676 A request object that you can call 'execute()' on to request the next 1677 page. Returns None if there are no more items in the collection. 1678 </pre> 1679</div> 1680 1681<div class="method"> 1682 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code> 1683 <pre>Update a CertificateAuthority. 1684 1685Args: 1686 name: string, Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. (required) 1687 body: object, The request body. 1688 The object takes the form of: 1689 1690{ # A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates. 1691 "accessUrls": { # URLs where a CertificateAuthority will publish content. # Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs. 1692 "caCertificateAccessUrl": "A String", # The URL where this CertificateAuthority's CA certificate is published. This will only be set for CAs that have been activated. 1693 "crlAccessUrl": "A String", # The URL where this CertificateAuthority's CRLs are published. This will only be set for CAs that have been activated. 1694 }, 1695 "caCertificateDescriptions": [ # Output only. A structured description of this CertificateAuthority's CA certificate and its issuers. Ordered as self-to-root. 1696 { # A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. 1697 "aiaIssuingCertificateUrls": [ # Describes lists of issuer CA certificate URLs that appear in the "Authority Information Access" extension in the certificate. 1698 "A String", 1699 ], 1700 "authorityKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Identifies the subject_key_id of the parent certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 1701 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1702 }, 1703 "certFingerprint": { # A group of fingerprints for the x509 certificate. # The hash of the x.509 certificate. 1704 "sha256Hash": "A String", # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate. 1705 }, 1706 "configValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Describes some of the technical fields in a certificate. 1707 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1708 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1709 "critical": True or False, # Required. 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). 1710 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1711 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1712 42, 1713 ], 1714 }, 1715 "value": "A String", # Required. The value of this X.509 extension. 1716 }, 1717 ], 1718 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1719 "A String", 1720 ], 1721 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1722 "isCa": True or False, # 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. 1723 "maxIssuerPathLength": 42, # 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. 1724 }, 1725 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1726 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1727 "certSign": True or False, # The key may be used to sign certificates. 1728 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1729 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1730 "dataEncipherment": True or False, # The key may be used to encipher data. 1731 "decipherOnly": True or False, # The key may be used to decipher only. 1732 "digitalSignature": True or False, # The key may be used for digital signatures. 1733 "encipherOnly": True or False, # The key may be used to encipher only. 1734 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1735 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1736 }, 1737 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1738 "clientAuth": True or False, # 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. 1739 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1740 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1741 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1742 "serverAuth": True or False, # 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. 1743 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1744 }, 1745 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1746 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1747 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1748 42, 1749 ], 1750 }, 1751 ], 1752 }, 1753 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1754 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1755 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1756 42, 1757 ], 1758 }, 1759 ], 1760 }, 1761 "crlDistributionPoints": [ # 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 1762 "A String", 1763 ], 1764 "publicKey": { # A PublicKey describes a public key. # The public key that corresponds to an issued certificate. 1765 "key": "A String", # 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. 1766 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1767 }, 1768 "subjectDescription": { # These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime. # Describes some of the values in a certificate that are related to the subject and lifetime. 1769 "commonName": "A String", # The "common name" of the distinguished name. 1770 "hexSerialNumber": "A String", # The serial number encoded in lowercase hexadecimal. 1771 "lifetime": "A String", # For convenience, the actual lifetime of an issued certificate. Corresponds to 'not_after_time' - 'not_before_time'. 1772 "notAfterTime": "A String", # The time at which the certificate expires. 1773 "notBeforeTime": "A String", # The time at which the certificate becomes valid. 1774 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Contains distinguished name fields such as the location and organization. 1775 "countryCode": "A String", # The country code of the subject. 1776 "locality": "A String", # The locality or city of the subject. 1777 "organization": "A String", # The organization of the subject. 1778 "organizationalUnit": "A String", # The organizational_unit of the subject. 1779 "postalCode": "A String", # The postal code of the subject. 1780 "province": "A String", # The province, territory, or regional state of the subject. 1781 "streetAddress": "A String", # The street address of the subject. 1782 }, 1783 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # The subject alternative name fields. 1784 "customSans": [ # Contains additional subject alternative name values. 1785 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1786 "critical": True or False, # Required. 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). 1787 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1788 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1789 42, 1790 ], 1791 }, 1792 "value": "A String", # Required. The value of this X.509 extension. 1793 }, 1794 ], 1795 "dnsNames": [ # Contains only valid, fully-qualified host names. 1796 "A String", 1797 ], 1798 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 1799 "A String", 1800 ], 1801 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 1802 "A String", 1803 ], 1804 "uris": [ # Contains only valid RFC 3986 URIs. 1805 "A String", 1806 ], 1807 }, 1808 }, 1809 "subjectKeyId": { # A KeyId identifies a specific public key, usually by hashing the public key. # Provides a means of identifiying certificates that contain a particular public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2. 1810 "keyId": "A String", # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. 1811 }, 1812 }, 1813 ], 1814 "certificatePolicy": { # The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy. # Optional. The CertificateAuthorityPolicy to enforce when issuing Certificates from this CertificateAuthority. 1815 "allowedCommonNames": [ # 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. 1816 "A String", 1817 ], 1818 "allowedConfigList": { # Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list. 1819 "allowedConfigValues": [ # 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. 1820 { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. 1821 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1822 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1823 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1824 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1825 "critical": True or False, # Required. 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). 1826 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1827 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1828 42, 1829 ], 1830 }, 1831 "value": "A String", # Required. The value of this X.509 extension. 1832 }, 1833 ], 1834 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1835 "A String", 1836 ], 1837 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1838 "isCa": True or False, # 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. 1839 "maxIssuerPathLength": 42, # 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. 1840 }, 1841 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1842 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1843 "certSign": True or False, # The key may be used to sign certificates. 1844 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1845 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1846 "dataEncipherment": True or False, # The key may be used to encipher data. 1847 "decipherOnly": True or False, # The key may be used to decipher only. 1848 "digitalSignature": True or False, # The key may be used for digital signatures. 1849 "encipherOnly": True or False, # The key may be used to encipher only. 1850 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1851 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1852 }, 1853 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1854 "clientAuth": True or False, # 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. 1855 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1856 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1857 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1858 "serverAuth": True or False, # 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. 1859 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1860 }, 1861 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1862 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1863 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1864 42, 1865 ], 1866 }, 1867 ], 1868 }, 1869 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1870 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1871 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1872 42, 1873 ], 1874 }, 1875 ], 1876 }, 1877 }, 1878 ], 1879 }, 1880 "allowedIssuanceModes": { # IssuanceModes specifies the allowed ways in which Certificates may be requested from this CertificateAuthority. # Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates. 1881 "allowConfigBasedIssuance": True or False, # Required. When true, allows callers to create Certificates by specifying a CertificateConfig. 1882 "allowCsrBasedIssuance": True or False, # Required. When true, allows callers to create Certificates by specifying a CSR. 1883 }, 1884 "allowedLocationsAndOrganizations": [ # 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. 1885 { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. 1886 "countryCode": "A String", # The country code of the subject. 1887 "locality": "A String", # The locality or city of the subject. 1888 "organization": "A String", # The organization of the subject. 1889 "organizationalUnit": "A String", # The organizational_unit of the subject. 1890 "postalCode": "A String", # The postal code of the subject. 1891 "province": "A String", # The province, territory, or regional state of the subject. 1892 "streetAddress": "A String", # The street address of the subject. 1893 }, 1894 ], 1895 "allowedSans": { # AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates. # 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. 1896 "allowCustomSans": True or False, # Optional. Specifies if to allow custom X509Extension values. 1897 "allowGlobbingDnsWildcards": True or False, # 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. 1898 "allowedDnsNames": [ # 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`. 1899 "A String", 1900 ], 1901 "allowedEmailAddresses": [ # Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also supported. 1902 "A String", 1903 ], 1904 "allowedIps": [ # 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). 1905 "A String", 1906 ], 1907 "allowedUris": [ # 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. '**'). 1908 "A String", 1909 ], 1910 }, 1911 "maximumLifetime": "A String", # 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. 1912 "overwriteConfigValues": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values. 1913 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1914 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1915 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1916 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1917 "critical": True or False, # Required. 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). 1918 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1919 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1920 42, 1921 ], 1922 }, 1923 "value": "A String", # Required. The value of this X.509 extension. 1924 }, 1925 ], 1926 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1927 "A String", 1928 ], 1929 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1930 "isCa": True or False, # 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. 1931 "maxIssuerPathLength": 42, # 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. 1932 }, 1933 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1934 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1935 "certSign": True or False, # The key may be used to sign certificates. 1936 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 1937 "crlSign": True or False, # The key may be used sign certificate revocation lists. 1938 "dataEncipherment": True or False, # The key may be used to encipher data. 1939 "decipherOnly": True or False, # The key may be used to decipher only. 1940 "digitalSignature": True or False, # The key may be used for digital signatures. 1941 "encipherOnly": True or False, # The key may be used to encipher only. 1942 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 1943 "keyEncipherment": True or False, # The key may be used to encipher other keys. 1944 }, 1945 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 1946 "clientAuth": True or False, # 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. 1947 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 1948 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 1949 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 1950 "serverAuth": True or False, # 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. 1951 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 1952 }, 1953 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 1954 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1955 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1956 42, 1957 ], 1958 }, 1959 ], 1960 }, 1961 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 1962 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 1963 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1964 42, 1965 ], 1966 }, 1967 ], 1968 }, 1969 }, 1970 }, 1971 "config": { # A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. # Required. Immutable. The config used to create a self-signed X.509 certificate or CSR. 1972 "publicKey": { # A PublicKey describes a public key. # 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. 1973 "key": "A String", # 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. 1974 "type": "A String", # Optional. The type of public key. If specified, it must match the public key used for the`key` field. 1975 }, 1976 "reusableConfig": { # A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values. # Required. Describes how some of the technical fields in a certificate should be populated. 1977 "reusableConfig": "A String", # Required. A resource path to a ReusableConfig in the format `projects/*/locations/*/reusableConfigs/*`. 1978 "reusableConfigValues": { # A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions. # Required. A user-specified inline ReusableConfigValues. 1979 "additionalExtensions": [ # Optional. Describes custom X.509 extensions. 1980 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 1981 "critical": True or False, # Required. 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). 1982 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 1983 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 1984 42, 1985 ], 1986 }, 1987 "value": "A String", # Required. The value of this X.509 extension. 1988 }, 1989 ], 1990 "aiaOcspServers": [ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. 1991 "A String", 1992 ], 1993 "caOptions": { # Describes values that are relevant in a CA certificate. # Optional. Describes options in this ReusableConfigValues that are relevant in a CA certificate. 1994 "isCa": True or False, # 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. 1995 "maxIssuerPathLength": 42, # 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. 1996 }, 1997 "keyUsage": { # A KeyUsage describes key usage values that may appear in an X.509 certificate. # Optional. Indicates the intended use for keys that correspond to a certificate. 1998 "baseKeyUsage": { # KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3. # Describes high-level ways in which a key may be used. 1999 "certSign": True or False, # The key may be used to sign certificates. 2000 "contentCommitment": True or False, # The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation". 2001 "crlSign": True or False, # The key may be used sign certificate revocation lists. 2002 "dataEncipherment": True or False, # The key may be used to encipher data. 2003 "decipherOnly": True or False, # The key may be used to decipher only. 2004 "digitalSignature": True or False, # The key may be used for digital signatures. 2005 "encipherOnly": True or False, # The key may be used to encipher only. 2006 "keyAgreement": True or False, # The key may be used in a key agreement protocol. 2007 "keyEncipherment": True or False, # The key may be used to encipher other keys. 2008 }, 2009 "extendedKeyUsage": { # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value. # Detailed scenarios in which a key may be used. 2010 "clientAuth": True or False, # 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. 2011 "codeSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of downloadable executable code client authentication". 2012 "emailProtection": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email protection". 2013 "ocspSigning": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP responses". 2014 "serverAuth": True or False, # 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. 2015 "timeStamping": True or False, # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the hash of an object to a time". 2016 }, 2017 "unknownExtendedKeyUsages": [ # Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message. 2018 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 2019 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 2020 42, 2021 ], 2022 }, 2023 ], 2024 }, 2025 "policyIds": [ # Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. 2026 { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. 2027 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 2028 42, 2029 ], 2030 }, 2031 ], 2032 }, 2033 }, 2034 "subjectConfig": { # These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate. # Required. Specifies some of the values in a certificate that are related to the subject. 2035 "commonName": "A String", # Optional. The "common name" of the distinguished name. 2036 "subject": { # Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. # Required. Contains distinguished name fields such as the location and organization. 2037 "countryCode": "A String", # The country code of the subject. 2038 "locality": "A String", # The locality or city of the subject. 2039 "organization": "A String", # The organization of the subject. 2040 "organizationalUnit": "A String", # The organizational_unit of the subject. 2041 "postalCode": "A String", # The postal code of the subject. 2042 "province": "A String", # The province, territory, or regional state of the subject. 2043 "streetAddress": "A String", # The street address of the subject. 2044 }, 2045 "subjectAltName": { # SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name). # Optional. The subject alternative name fields. 2046 "customSans": [ # Contains additional subject alternative name values. 2047 { # An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs. 2048 "critical": True or False, # Required. 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). 2049 "objectId": { # An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. # Required. The OID for this X.509 extension. 2050 "objectIdPath": [ # Required. The parts of an OID path. The most significant parts of the path come first. 2051 42, 2052 ], 2053 }, 2054 "value": "A String", # Required. The value of this X.509 extension. 2055 }, 2056 ], 2057 "dnsNames": [ # Contains only valid, fully-qualified host names. 2058 "A String", 2059 ], 2060 "emailAddresses": [ # Contains only valid RFC 2822 E-mail addresses. 2061 "A String", 2062 ], 2063 "ipAddresses": [ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses. 2064 "A String", 2065 ], 2066 "uris": [ # Contains only valid RFC 3986 URIs. 2067 "A String", 2068 ], 2069 }, 2070 }, 2071 }, 2072 "createTime": "A String", # Output only. The time at which this CertificateAuthority was created. 2073 "deleteTime": "A String", # Output only. The time at which this CertificateAuthority will be deleted, if scheduled for deletion. 2074 "gcsBucket": "A String", # 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. 2075 "issuingOptions": { # Options that affect all certificates issued by a CertificateAuthority. # Optional. The IssuingOptions to follow when issuing Certificates from this CertificateAuthority. 2076 "includeCaCertUrl": True or False, # Required. When true, includes a URL to the issuing CA certificate in the "authority information access" X.509 extension. 2077 "includeCrlAccessUrl": True or False, # 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. 2078 }, 2079 "keySpec": { # A Cloud KMS key configuration that a CertificateAuthority will use. # 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. 2080 "algorithm": "A String", # 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`. 2081 "cloudKmsKeyVersion": "A String", # Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. This option enables full flexibility in the key's capabilities and properties. 2082 }, 2083 "labels": { # Optional. Labels with user-defined metadata. 2084 "a_key": "A String", 2085 }, 2086 "lifetime": "A String", # 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. 2087 "name": "A String", # Output only. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. 2088 "pemCaCertificates": [ # 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. 2089 "A String", 2090 ], 2091 "state": "A String", # Output only. The State for this CertificateAuthority. 2092 "subordinateConfig": { # Describes a subordinate CA's issuers. This is either a resource path to a known issuing CertificateAuthority, or a PEM issuer certificate chain. # 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. 2093 "certificateAuthority": "A String", # 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 resource name is in the format `projects/*/locations/*/certificateAuthorities/*`. 2094 "pemIssuerChain": { # This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons. # Required. Contains the PEM certificate chain for the issuers of this CertificateAuthority, but not pem certificate for this CA itself. 2095 "pemCertificates": [ # Required. Expected to be in leaf-to-root order according to RFC 5246. 2096 "A String", 2097 ], 2098 }, 2099 }, 2100 "tier": "A String", # Required. Immutable. The Tier of this CertificateAuthority. 2101 "type": "A String", # Required. Immutable. The Type of this CertificateAuthority. 2102 "updateTime": "A String", # Output only. The time at which this CertificateAuthority was updated. 2103} 2104 2105 requestId: string, 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). 2106 updateMask: string, Required. A list of fields to be updated in this request. 2107 x__xgafv: string, V1 error format. 2108 Allowed values 2109 1 - v1 error format 2110 2 - v2 error format 2111 2112Returns: 2113 An object of the form: 2114 2115 { # This resource represents a long-running operation that is the result of a network API call. 2116 "done": True or False, # 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. 2117 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 2118 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 2119 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 2120 { 2121 "a_key": "", # Properties of the object. Contains field @type with type URL. 2122 }, 2123 ], 2124 "message": "A String", # 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 client. 2125 }, 2126 "metadata": { # 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. 2127 "a_key": "", # Properties of the object. Contains field @type with type URL. 2128 }, 2129 "name": "A String", # 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}`. 2130 "response": { # 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`. 2131 "a_key": "", # Properties of the object. Contains field @type with type URL. 2132 }, 2133}</pre> 2134</div> 2135 2136<div class="method"> 2137 <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code> 2138 <pre>Restore a CertificateAuthority that is scheduled for deletion. 2139 2140Args: 2141 name: string, Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. (required) 2142 body: object, The request body. 2143 The object takes the form of: 2144 2145{ # Request message for CertificateAuthorityService.RestoreCertificateAuthority. 2146 "requestId": "A String", # 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). 2147} 2148 2149 x__xgafv: string, V1 error format. 2150 Allowed values 2151 1 - v1 error format 2152 2 - v2 error format 2153 2154Returns: 2155 An object of the form: 2156 2157 { # This resource represents a long-running operation that is the result of a network API call. 2158 "done": True or False, # 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. 2159 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 2160 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 2161 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 2162 { 2163 "a_key": "", # Properties of the object. Contains field @type with type URL. 2164 }, 2165 ], 2166 "message": "A String", # 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 client. 2167 }, 2168 "metadata": { # 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. 2169 "a_key": "", # Properties of the object. Contains field @type with type URL. 2170 }, 2171 "name": "A String", # 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}`. 2172 "response": { # 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`. 2173 "a_key": "", # Properties of the object. Contains field @type with type URL. 2174 }, 2175}</pre> 2176</div> 2177 2178<div class="method"> 2179 <code class="details" id="scheduleDelete">scheduleDelete(name, body=None, x__xgafv=None)</code> 2180 <pre>Schedule a CertificateAuthority for deletion. 2181 2182Args: 2183 name: string, Required. The resource name for this CertificateAuthority in the format `projects/*/locations/*/certificateAuthorities/*`. (required) 2184 body: object, The request body. 2185 The object takes the form of: 2186 2187{ # Request message for CertificateAuthorityService.ScheduleDeleteCertificateAuthority. 2188 "ignoreActiveCertificates": True or False, # Optional. This field allows the CA to be scheduled for deletion even if the CA has active certs. Active certs include both unrevoked and unexpired certs. 2189 "requestId": "A String", # 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). 2190} 2191 2192 x__xgafv: string, V1 error format. 2193 Allowed values 2194 1 - v1 error format 2195 2 - v2 error format 2196 2197Returns: 2198 An object of the form: 2199 2200 { # This resource represents a long-running operation that is the result of a network API call. 2201 "done": True or False, # 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. 2202 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 2203 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 2204 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 2205 { 2206 "a_key": "", # Properties of the object. Contains field @type with type URL. 2207 }, 2208 ], 2209 "message": "A String", # 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 client. 2210 }, 2211 "metadata": { # 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. 2212 "a_key": "", # Properties of the object. Contains field @type with type URL. 2213 }, 2214 "name": "A String", # 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}`. 2215 "response": { # 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`. 2216 "a_key": "", # Properties of the object. Contains field @type with type URL. 2217 }, 2218}</pre> 2219</div> 2220 2221<div class="method"> 2222 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code> 2223 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. 2224 2225Args: 2226 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required) 2227 body: object, The request body. 2228 The object takes the form of: 2229 2230{ # Request message for `SetIamPolicy` method. 2231 "policy": { # 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`, or principals, to a single `role`. Principals 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:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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/). # 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 Cloud Platform services (such as Projects) might reject them. 2232 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 2233 { # 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:[email protected]" ] }, { "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:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 2234 "auditLogConfigs": [ # The configuration for logging of each type of permission. 2235 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 2236 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 2237 "A String", 2238 ], 2239 "logType": "A String", # The log type that this config enables. 2240 }, 2241 ], 2242 "service": "A String", # 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. 2243 }, 2244 ], 2245 "bindings": [ # 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` 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 principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 2246 { # Associates `members`, or principals, with a `role`. 2247 "condition": { # 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. # 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 principals 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). 2248 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 2249 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 2250 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 2251 "title": "A String", # 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. 2252 }, 2253 "members": [ # Specifies the principals 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, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?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`. 2254 "A String", 2255 ], 2256 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 2257 }, 2258 ], 2259 "etag": "A String", # `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. 2260 "version": 42, # 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). 2261 }, 2262 "updateMask": "A String", # 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: `paths: "bindings, etag"` 2263} 2264 2265 x__xgafv: string, V1 error format. 2266 Allowed values 2267 1 - v1 error format 2268 2 - v2 error format 2269 2270Returns: 2271 An object of the form: 2272 2273 { # 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`, or principals, to a single `role`. Principals 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:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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/). 2274 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 2275 { # 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:[email protected]" ] }, { "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:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 2276 "auditLogConfigs": [ # The configuration for logging of each type of permission. 2277 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 2278 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 2279 "A String", 2280 ], 2281 "logType": "A String", # The log type that this config enables. 2282 }, 2283 ], 2284 "service": "A String", # 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. 2285 }, 2286 ], 2287 "bindings": [ # 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` 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 principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 2288 { # Associates `members`, or principals, with a `role`. 2289 "condition": { # 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. # 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 principals 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). 2290 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 2291 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 2292 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 2293 "title": "A String", # 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. 2294 }, 2295 "members": [ # Specifies the principals 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, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?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`. 2296 "A String", 2297 ], 2298 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 2299 }, 2300 ], 2301 "etag": "A String", # `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. 2302 "version": 42, # 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). 2303}</pre> 2304</div> 2305 2306<div class="method"> 2307 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code> 2308 <pre>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 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. 2309 2310Args: 2311 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required) 2312 body: object, The request body. 2313 The object takes the form of: 2314 2315{ # Request message for `TestIamPermissions` method. 2316 "permissions": [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). 2317 "A String", 2318 ], 2319} 2320 2321 x__xgafv: string, V1 error format. 2322 Allowed values 2323 1 - v1 error format 2324 2 - v2 error format 2325 2326Returns: 2327 An object of the form: 2328 2329 { # Response message for `TestIamPermissions` method. 2330 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 2331 "A String", 2332 ], 2333}</pre> 2334</div> 2335 2336</body></html>