Skip to content

privateca.v1beta1.privateCACertificateAuthority

Index

Fields

fn new

new(name)

new returns an instance of PrivateCACertificateAuthority

obj metadata

"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."

fn metadata.withAnnotations

withAnnotations(annotations)

"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"

fn metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"

Note: This function appends passed data to existing values

fn metadata.withClusterName

withClusterName(clusterName)

"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."

fn metadata.withCreationTimestamp

withCreationTimestamp(creationTimestamp)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

fn metadata.withDeletionGracePeriodSeconds

withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)

"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."

fn metadata.withDeletionTimestamp

withDeletionTimestamp(deletionTimestamp)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

fn metadata.withFinalizers

withFinalizers(finalizers)

"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."

fn metadata.withFinalizersMixin

withFinalizersMixin(finalizers)

"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."

Note: This function appends passed data to existing values

fn metadata.withGenerateName

withGenerateName(generateName)

"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"

fn metadata.withGeneration

withGeneration(generation)

"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."

fn metadata.withLabels

withLabels(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"

fn metadata.withLabelsMixin

withLabelsMixin(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"

Note: This function appends passed data to existing values

fn metadata.withName

withName(name)

"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"

fn metadata.withNamespace

withNamespace(namespace)

"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"

fn metadata.withOwnerReferences

withOwnerReferences(ownerReferences)

"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."

fn metadata.withOwnerReferencesMixin

withOwnerReferencesMixin(ownerReferences)

"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."

Note: This function appends passed data to existing values

fn metadata.withResourceVersion

withResourceVersion(resourceVersion)

"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"

withSelfLink(selfLink)

"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."

fn metadata.withUid

withUid(uid)

"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"

obj spec

fn spec.withLifetime

withLifetime(lifetime)

"Immutable. 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."

fn spec.withLocation

withLocation(location)

"Immutable. The location for the resource"

fn spec.withResourceID

withResourceID(resourceID)

"Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of metadata.name is used as the default."

fn spec.withType

withType(type)

"Immutable. Required. Immutable. The Type of this CertificateAuthority. Possible values: SELF_SIGNED, SUBORDINATE"

obj spec.caPoolRef

"Immutable."

fn spec.caPoolRef.withExternal

withExternal(external)

"The caPool for the resource\n\nAllowed value: The Google Cloud resource name of a PrivateCACAPool resource (format: projects/{{project}}/locations/{{location}}/caPools/{{name}})."

fn spec.caPoolRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.caPoolRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.config

"Immutable. Required. Immutable. The config used to create a self-signed X.509 certificate or CSR."

obj spec.config.subjectConfig

"Immutable. Required. Specifies some of the values in a certificate that are related to the subject."

obj spec.config.subjectConfig.subject

"Immutable. Required. Contains distinguished name fields such as the common name, location and organization."

fn spec.config.subjectConfig.subject.withCommonName

withCommonName(commonName)

"Immutable. The \"common name\" of the subject."

fn spec.config.subjectConfig.subject.withCountryCode

withCountryCode(countryCode)

"Immutable. The country code of the subject."

fn spec.config.subjectConfig.subject.withLocality

withLocality(locality)

"Immutable. The locality or city of the subject."

fn spec.config.subjectConfig.subject.withOrganization

withOrganization(organization)

"Immutable. The organization of the subject."

fn spec.config.subjectConfig.subject.withOrganizationalUnit

withOrganizationalUnit(organizationalUnit)

"Immutable. The organizational_unit of the subject."

fn spec.config.subjectConfig.subject.withPostalCode

withPostalCode(postalCode)

"Immutable. The postal code of the subject."

fn spec.config.subjectConfig.subject.withProvince

withProvince(province)

"Immutable. The province, territory, or regional state of the subject."

fn spec.config.subjectConfig.subject.withStreetAddress

withStreetAddress(streetAddress)

"Immutable. The street address of the subject."

obj spec.config.subjectConfig.subjectAltName

"Immutable. Optional. The subject alternative name fields."

fn spec.config.subjectConfig.subjectAltName.withCustomSans

withCustomSans(customSans)

"Immutable. Contains additional subject alternative name values."

fn spec.config.subjectConfig.subjectAltName.withCustomSansMixin

withCustomSansMixin(customSans)

"Immutable. Contains additional subject alternative name values."

Note: This function appends passed data to existing values

fn spec.config.subjectConfig.subjectAltName.withDnsNames

withDnsNames(dnsNames)

"Immutable. Contains only valid, fully-qualified host names."

fn spec.config.subjectConfig.subjectAltName.withDnsNamesMixin

withDnsNamesMixin(dnsNames)

"Immutable. Contains only valid, fully-qualified host names."

Note: This function appends passed data to existing values

fn spec.config.subjectConfig.subjectAltName.withEmailAddresses

withEmailAddresses(emailAddresses)

"Immutable. Contains only valid RFC 2822 E-mail addresses."

fn spec.config.subjectConfig.subjectAltName.withEmailAddressesMixin

withEmailAddressesMixin(emailAddresses)

"Immutable. Contains only valid RFC 2822 E-mail addresses."

Note: This function appends passed data to existing values

fn spec.config.subjectConfig.subjectAltName.withIpAddresses

withIpAddresses(ipAddresses)

"Immutable. Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses."

fn spec.config.subjectConfig.subjectAltName.withIpAddressesMixin

withIpAddressesMixin(ipAddresses)

"Immutable. Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses."

Note: This function appends passed data to existing values

fn spec.config.subjectConfig.subjectAltName.withUris

withUris(uris)

"Immutable. Contains only valid RFC 3986 URIs."

fn spec.config.subjectConfig.subjectAltName.withUrisMixin

withUrisMixin(uris)

"Immutable. Contains only valid RFC 3986 URIs."

Note: This function appends passed data to existing values

obj spec.config.subjectConfig.subjectAltName.customSans

"Immutable. Contains additional subject alternative name values."

fn spec.config.subjectConfig.subjectAltName.customSans.withCritical

withCritical(critical)

"Immutable. Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error)."

fn spec.config.subjectConfig.subjectAltName.customSans.withValue

withValue(value)

"Immutable. Required. The value of this X.509 extension."

obj spec.config.subjectConfig.subjectAltName.customSans.objectId

"Immutable. Required. The OID for this X.509 extension."

fn spec.config.subjectConfig.subjectAltName.customSans.objectId.withObjectIdPath

withObjectIdPath(objectIdPath)

"Immutable. Required. The parts of an OID path. The most significant parts of the path come first."

fn spec.config.subjectConfig.subjectAltName.customSans.objectId.withObjectIdPathMixin

withObjectIdPathMixin(objectIdPath)

"Immutable. Required. The parts of an OID path. The most significant parts of the path come first."

Note: This function appends passed data to existing values

obj spec.config.x509Config

"Immutable. Required. Describes how some of the technical X.509 fields in a certificate should be populated."

fn spec.config.x509Config.withAdditionalExtensions

withAdditionalExtensions(additionalExtensions)

"Immutable. Optional. Describes custom X.509 extensions."

fn spec.config.x509Config.withAdditionalExtensionsMixin

withAdditionalExtensionsMixin(additionalExtensions)

"Immutable. Optional. Describes custom X.509 extensions."

Note: This function appends passed data to existing values

fn spec.config.x509Config.withPolicyIds

withPolicyIds(policyIds)

"Immutable. Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4."

fn spec.config.x509Config.withPolicyIdsMixin

withPolicyIdsMixin(policyIds)

"Immutable. Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4."

Note: This function appends passed data to existing values

obj spec.config.x509Config.additionalExtensions

"Immutable. Optional. Describes custom X.509 extensions."

fn spec.config.x509Config.additionalExtensions.withCritical

withCritical(critical)

"Immutable. Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error)."

fn spec.config.x509Config.additionalExtensions.withValue

withValue(value)

"Immutable. Required. The value of this X.509 extension."

obj spec.config.x509Config.additionalExtensions.objectId

"Immutable. Required. The OID for this X.509 extension."

fn spec.config.x509Config.additionalExtensions.objectId.withObjectIdPath

withObjectIdPath(objectIdPath)

"Immutable. Required. The parts of an OID path. The most significant parts of the path come first."

fn spec.config.x509Config.additionalExtensions.objectId.withObjectIdPathMixin

withObjectIdPathMixin(objectIdPath)

"Immutable. Required. The parts of an OID path. The most significant parts of the path come first."

Note: This function appends passed data to existing values

obj spec.config.x509Config.caOptions

"Immutable. Optional. Describes options in this X509Parameters that are relevant in a CA certificate."

fn spec.config.x509Config.caOptions.withIsCa

withIsCa(isCa)

"Immutable. 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."

fn spec.config.x509Config.caOptions.withMaxIssuerPathLength

withMaxIssuerPathLength(maxIssuerPathLength)

"Immutable. 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."

fn spec.config.x509Config.caOptions.withZeroMaxIssuerPathLength

withZeroMaxIssuerPathLength(zeroMaxIssuerPathLength)

"Immutable. Optional. When true, the \"path length constraint\" in Basic Constraints extension will be set to 0. if both max_issuer_path_length and zero_max_issuer_path_length are unset, the max path length will be omitted from the CA certificate."

obj spec.config.x509Config.keyUsage

"Immutable. Optional. Indicates the intended use for keys that correspond to a certificate."

fn spec.config.x509Config.keyUsage.withUnknownExtendedKeyUsages

withUnknownExtendedKeyUsages(unknownExtendedKeyUsages)

"Immutable. Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message."

fn spec.config.x509Config.keyUsage.withUnknownExtendedKeyUsagesMixin

withUnknownExtendedKeyUsagesMixin(unknownExtendedKeyUsages)

"Immutable. Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message."

Note: This function appends passed data to existing values

obj spec.config.x509Config.keyUsage.baseKeyUsage

"Immutable. Describes high-level ways in which a key may be used."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withCertSign

withCertSign(certSign)

"Immutable. The key may be used to sign certificates."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withContentCommitment

withContentCommitment(contentCommitment)

"Immutable. The key may be used for cryptographic commitments. Note that this may also be referred to as \"non-repudiation\"."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withCrlSign

withCrlSign(crlSign)

"Immutable. The key may be used sign certificate revocation lists."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withDataEncipherment

withDataEncipherment(dataEncipherment)

"Immutable. The key may be used to encipher data."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withDecipherOnly

withDecipherOnly(decipherOnly)

"Immutable. The key may be used to decipher only."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withDigitalSignature

withDigitalSignature(digitalSignature)

"Immutable. The key may be used for digital signatures."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withEncipherOnly

withEncipherOnly(encipherOnly)

"Immutable. The key may be used to encipher only."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withKeyAgreement

withKeyAgreement(keyAgreement)

"Immutable. The key may be used in a key agreement protocol."

fn spec.config.x509Config.keyUsage.baseKeyUsage.withKeyEncipherment

withKeyEncipherment(keyEncipherment)

"Immutable. The key may be used to encipher other keys."

obj spec.config.x509Config.keyUsage.extendedKeyUsage

"Immutable. Detailed scenarios in which a key may be used."

fn spec.config.x509Config.keyUsage.extendedKeyUsage.withClientAuth

withClientAuth(clientAuth)

"Immutable. 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."

fn spec.config.x509Config.keyUsage.extendedKeyUsage.withCodeSigning

withCodeSigning(codeSigning)

"Immutable. Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as \"Signing of downloadable executable code client authentication\"."

fn spec.config.x509Config.keyUsage.extendedKeyUsage.withEmailProtection

withEmailProtection(emailProtection)

"Immutable. Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as \"Email protection\"."

fn spec.config.x509Config.keyUsage.extendedKeyUsage.withOcspSigning

withOcspSigning(ocspSigning)

"Immutable. Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as \"Signing OCSP responses\"."

fn spec.config.x509Config.keyUsage.extendedKeyUsage.withServerAuth

withServerAuth(serverAuth)

"Immutable. 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."

fn spec.config.x509Config.keyUsage.extendedKeyUsage.withTimeStamping

withTimeStamping(timeStamping)

"Immutable. Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as \"Binding the hash of an object to a time\"."

obj spec.config.x509Config.keyUsage.unknownExtendedKeyUsages

"Immutable. Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message."

fn spec.config.x509Config.keyUsage.unknownExtendedKeyUsages.withObjectIdPath

withObjectIdPath(objectIdPath)

"Immutable. Required. The parts of an OID path. The most significant parts of the path come first."

fn spec.config.x509Config.keyUsage.unknownExtendedKeyUsages.withObjectIdPathMixin

withObjectIdPathMixin(objectIdPath)

"Immutable. Required. The parts of an OID path. The most significant parts of the path come first."

Note: This function appends passed data to existing values

obj spec.config.x509Config.policyIds

"Immutable. Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4."

fn spec.config.x509Config.policyIds.withObjectIdPath

withObjectIdPath(objectIdPath)

"Immutable. Required. The parts of an OID path. The most significant parts of the path come first."

fn spec.config.x509Config.policyIds.withObjectIdPathMixin

withObjectIdPathMixin(objectIdPath)

"Immutable. Required. The parts of an OID path. The most significant parts of the path come first."

Note: This function appends passed data to existing values

obj spec.gcsBucketRef

"Immutable."

fn spec.gcsBucketRef.withExternal

withExternal(external)

"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.\n\nAllowed value: The Google Cloud resource name of a StorageBucket resource (format: {{name}})."

fn spec.gcsBucketRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.gcsBucketRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.keySpec

"Immutable. 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."

fn spec.keySpec.withAlgorithm

withAlgorithm(algorithm)

"Immutable. 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. Possible values: RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256, RSA_PKCS1_2048_SHA256, RSA_PKCS1_3072_SHA256, RSA_PKCS1_4096_SHA256, EC_P256_SHA256, EC_P384_SHA384"

obj spec.keySpec.cloudKmsKeyVersionRef

"Immutable."

fn spec.keySpec.cloudKmsKeyVersionRef.withExternal

withExternal(external)

"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."

fn spec.keySpec.cloudKmsKeyVersionRef.withName

withName(name)

"[WARNING] KMSCryptoKeyVersion not yet supported in Config Connector, use 'external' field to reference existing resources.\nName of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.keySpec.cloudKmsKeyVersionRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.projectRef

"Immutable. The Project that this resource belongs to."

fn spec.projectRef.withExternal

withExternal(external)

"The project for the resource\n\nAllowed value: The Google Cloud resource name of a Project resource (format: projects/{{name}})."

fn spec.projectRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.projectRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"