# Class IssuancePolicy (1.19.0)

1.19.0 (latest) 1.18.0 1.17.0 1.16.0 1.15.0 1.14.3 1.13.1 1.12.2 1.11.0 1.10.3 1.9.0 1.8.1 1.7.1 1.6.1 1.5.0 1.4.3 1.3.2 1.2.4 1.1.0 1.0.6 0.4.0 0.3.0 0.1.1

    IssuancePolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines controls over all certificate issuance within a
CaPool.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `allowed_key_types` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.CaPool.IssuancePolicy.AllowedKeyType]` Optional. If any AllowedKeyType is specified, then the certificate request's public key must match one of the key types listed here. Otherwise, any key may be used. |
| `backdate_duration` | `google.protobuf.duration_pb2.Duration` Optional. If set, all certificates issued from this CaPool will be backdated by this duration. The 'not_before_time' will be the issuance time minus this backdate_duration, and the 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum duration that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if allow_requester_specified_not_before_time is set. |
| `allow_requester_specified_not_before_time` | `bool` Optional. If set to true, allows requesters to specify the requested_not_before_time field when creating a Certificate. Certificates requested with this option enabled will have a 'not_before_time' equal to the value specified in the request. The 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum time that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if backdate_duration is set. |
| `maximum_lifetime` | `google.protobuf.duration_pb2.Duration` Optional. The maximum lifetime allowed for issued Certificates. Note that if the issuing CertificateAuthority expires before a Certificate resource's requested maximum_lifetime, the effective lifetime will be explicitly truncated to match it. |
| `allowed_issuance_modes` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.CaPool.IssuancePolicy.IssuanceModes` Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates. |
| `baseline_values` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.X509Parameters` Optional. A set of X.509 values that will be applied to all certificates issued through this CaPool. If a certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate request uses a CertificateTemplate that defines conflicting predefined_values for the same properties, the certificate issuance request will fail. |
| `identity_constraints` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.CertificateIdentityConstraints` Optional. Describes constraints on identities that may appear in Certificates issued through this CaPool. If this is omitted, then this CaPool will not add restrictions on a certificate's identity. |
| `passthrough_extensions` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.CertificateExtensionConstraints` Optional. Describes the set of X.509 extensions that may appear in a Certificate issued through this CaPool. If a certificate request sets extensions that don't appear in the passthrough_extensions, those extensions will be dropped. If a certificate request uses a CertificateTemplate with predefined_values that don't appear here, the certificate issuance request will fail. If this is omitted, then this CaPool will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this CaPool's baseline_values. |

## Classes

### AllowedKeyType

    AllowedKeyType(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes a "type" of key that may be used in a
Certificate issued
from a CaPool. Note
that a single
AllowedKeyType
may refer to either a fully-qualified key algorithm, such as RSA
4096, or a family of key algorithms, such as any RSA key.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### IssuanceModes

    IssuanceModes(mapping=None, *, ignore_unknown_fields=False, **kwargs)

IssuanceModes
specifies the allowed ways in which
Certificates may
be requested from this
CaPool.