kubernetes.client.models.v1_api_service_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.v1_api_service_spec.V1APIServiceSpec(*, ca_bundle: Annotated[bytes, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True)])] | None = None, group: Annotated[str, Strict(strict=True)] | None = None, group_priority_minimum: Annotated[int, Strict(strict=True)], insecure_skip_tls_verify: Annotated[bool, Strict(strict=True)] | None = None, service: ApiregistrationV1ServiceReference | None = None, version: Annotated[str, Strict(strict=True)] | None = None, version_priority: Annotated[int, Strict(strict=True)])

Bases: BaseModel

APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.

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]] = {'ca_bundle': 'caBundle', 'group': 'group', 'group_priority_minimum': 'groupPriorityMinimum', 'insecure_skip_tls_verify': 'insecureSkipTLSVerify', 'service': 'service', 'version': 'version', 'version_priority': 'versionPriority'}
ca_bundle: Annotated[bytes, Field(strict=True)] | Annotated[str, Field(strict=True)] | None
classmethod ca_bundle_validate_regular_expression(value)

Validates the regular expression

classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1APIServiceSpec from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1APIServiceSpec from a JSON string

group: StrictStr | None
group_priority_minimum: StrictInt
insecure_skip_tls_verify: StrictBool | 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].

openapi_types: ClassVar[Dict[str, str]] = {'ca_bundle': 'bytes', 'group': 'str', 'group_priority_minimum': 'int', 'insecure_skip_tls_verify': 'bool', 'service': 'ApiregistrationV1ServiceReference', 'version': 'str', 'version_priority': 'int'}
service: ApiregistrationV1ServiceReference | None
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

version: StrictStr | None
version_priority: StrictInt