kubernetes.client.models.v1beta1_pod_certificate_request_spec module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class kubernetes.client.models.v1beta1_pod_certificate_request_spec.V1beta1PodCertificateRequestSpec(*, max_expiration_seconds: Annotated[int, Strict(strict=True)] | None = None, node_name: Annotated[str, Strict(strict=True)], node_uid: Annotated[str, Strict(strict=True)], pkix_public_key: Annotated[bytes, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None, pod_name: Annotated[str, Strict(strict=True)], pod_uid: Annotated[str, Strict(strict=True)], proof_of_possession: Annotated[bytes, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None, service_account_name: Annotated[str, Strict(strict=True)], service_account_uid: Annotated[str, Strict(strict=True)], signer_name: Annotated[str, Strict(strict=True)], stub_pkcs10_request: Annotated[bytes, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])], unverified_user_annotations: Dict[str, Annotated[str, Strict(strict=True)]] | None = None)

Bases: BaseModel

PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.

Attributes:
openapi_types (dict): The key is attribute name

and the value is attribute type.

attribute_map (dict): The key is attribute name

and the value is json key in definition.

attribute_map: ClassVar[Dict[str, str]] = {'max_expiration_seconds': 'maxExpirationSeconds', 'node_name': 'nodeName', 'node_uid': 'nodeUID', 'pkix_public_key': 'pkixPublicKey', 'pod_name': 'podName', 'pod_uid': 'podUID', 'proof_of_possession': 'proofOfPossession', 'service_account_name': 'serviceAccountName', 'service_account_uid': 'serviceAccountUID', 'signer_name': 'signerName', 'stub_pkcs10_request': 'stubPKCS10Request', 'unverified_user_annotations': 'unverifiedUserAnnotations'}
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1beta1PodCertificateRequestSpec from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1beta1PodCertificateRequestSpec from a JSON string

max_expiration_seconds: StrictInt | None
model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_name: StrictStr
node_uid: StrictStr
openapi_types: ClassVar[Dict[str, str]] = {'max_expiration_seconds': 'int', 'node_name': 'str', 'node_uid': 'str', 'pkix_public_key': 'bytes', 'pod_name': 'str', 'pod_uid': 'str', 'proof_of_possession': 'bytes', 'service_account_name': 'str', 'service_account_uid': 'str', 'signer_name': 'str', 'stub_pkcs10_request': 'bytes', 'unverified_user_annotations': 'Dict[str, str]'}
pkix_public_key: Annotated[bytes, Field(strict=True)] | Annotated[str, Field(strict=True)] | None
classmethod pkix_public_key_validate_regular_expression(value)

Validates the regular expression

pod_name: StrictStr
pod_uid: StrictStr
proof_of_possession: Annotated[bytes, Field(strict=True)] | Annotated[str, Field(strict=True)] | None
classmethod proof_of_possession_validate_regular_expression(value)

Validates the regular expression

service_account_name: StrictStr
service_account_uid: StrictStr
signer_name: StrictStr
stub_pkcs10_request: Annotated[bytes, Field(strict=True)] | Annotated[str, Field(strict=True)]
classmethod stub_pkcs10_request_validate_regular_expression(value)

Validates the regular expression

to_dict(serialize: bool = False) Dict[str, Any]

Return all declared model fields using public or wire names.

to_json() str

Returns the JSON representation of the model using alias

to_str() str

Returns the string representation of the model

unverified_user_annotations: Dict[str, StrictStr] | None